[GitHub] tomee pull request #239: exemple-mvc-cxf

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] tomee pull request #239: exemple-mvc-cxf

cesarhernandezgt
GitHub user Daniel-Dos opened a pull request:

    https://github.com/apache/tomee/pull/239

    exemple-mvc-cxf

    I made a simple example with MVC 1.0 using Apache CXF as it was discussed in the email list that it would be interesting to have one.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Daniel-Dos/tomee example-mvc-cxf

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tomee/pull/239.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #239
   
----
commit 25afb966f2dbfbee411f2ca7afda4ffde38e5e11
Author: Daniel Dias <daniel.dias.analistati@...>
Date:   2018-12-05T13:17:30Z

    exemple-mvc-cxf

----


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] tomee issue #239: TOMEE-2321-exemple-mvc-cxf

cesarhernandezgt
Github user jgallimore commented on the issue:

    https://github.com/apache/tomee/pull/239
 
    I'm just looking through this now. Thanks for the contribution @Daniel-Dos !! Could you add the ASL headers to the new files?
   



---
Reply | Threaded
Open this post in threaded view
|

[GitHub] tomee issue #239: TOMEE-2321-exemple-mvc-cxf

cesarhernandezgt
In reply to this post by cesarhernandezgt
Github user Daniel-Dos commented on the issue:

    https://github.com/apache/tomee/pull/239
 
    I can add yes.
    thank you.


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] tomee pull request #239: TOMEE-2321-exemple-mvc-cxf

cesarhernandezgt
In reply to this post by cesarhernandezgt
Github user jgallimore commented on a diff in the pull request:

    https://github.com/apache/tomee/pull/239#discussion_r239267154
 
    --- Diff: examples/mvc-cxf/src/main/resources/META-INF/persistence.xml ---
    @@ -0,0 +1,22 @@
    +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    +<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    +             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    +             version="2.0"
    +             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
    +             http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    +
    +    <persistence-unit name="mvc-demo" transaction-type="RESOURCE_LOCAL">
    +
    +      <non-jta-data-source>mvc-demo</non-jta-data-source>
    +
    +      <class>org.superbiz.model.Address</class>
    +      <class>org.superbiz.model.Person</class>
    +
    +      <properties>
    +          <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.H2Platform"/>
    +          <property name="eclipselink.ddl-generation" value="create-tables"/>
    +          <property name="eclipselink.ddl-generation.output-mode" value="database"/>
    +      </properties>
    --- End diff --
   
    Can you try adding this:
   
    `<property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true, Indexes=false, IgnoreErrors=true)"/>`
   
    That should enable schema generation on OpenJPA (Webprofile and Plus) as well as EclipseLink (Plume).


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] tomee pull request #239: TOMEE-2321-exemple-mvc-cxf

cesarhernandezgt
In reply to this post by cesarhernandezgt
Github user Daniel-Dos commented on a diff in the pull request:

    https://github.com/apache/tomee/pull/239#discussion_r239626946
 
    --- Diff: examples/mvc-cxf/src/main/resources/META-INF/persistence.xml ---
    @@ -0,0 +1,22 @@
    +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    +<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    +             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    +             version="2.0"
    +             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
    +             http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
    +
    +    <persistence-unit name="mvc-demo" transaction-type="RESOURCE_LOCAL">
    +
    +      <non-jta-data-source>mvc-demo</non-jta-data-source>
    +
    +      <class>org.superbiz.model.Address</class>
    +      <class>org.superbiz.model.Person</class>
    +
    +      <properties>
    +          <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.H2Platform"/>
    +          <property name="eclipselink.ddl-generation" value="create-tables"/>
    +          <property name="eclipselink.ddl-generation.output-mode" value="database"/>
    +      </properties>
    --- End diff --
   
    done .


---
Reply | Threaded
Open this post in threaded view
|

[GitHub] tomee pull request #239: TOMEE-2321-exemple-mvc-cxf

cesarhernandezgt
In reply to this post by cesarhernandezgt
Github user asfgit closed the pull request at:

    https://github.com/apache/tomee/pull/239


---