You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by er...@apache.org on 2011/08/17 16:58:15 UTC

svn commit: r1158756 - /james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml

Author: eric
Date: Wed Aug 17 14:58:15 2011
New Revision: 1158756

URL: http://svn.apache.org/viewvc?rev=1158756&view=rev
Log:
Update persistence.xml to latest model (MAILBOX-76)

Modified:
    james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml

Modified: james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml?rev=1158756&r1=1158755&r2=1158756&view=diff
==============================================================================
--- james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml (original)
+++ james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml Wed Aug 17 14:58:15 2011
@@ -24,14 +24,15 @@
     version="2.0">
 
     <persistence-unit name="James" transaction-type="RESOURCE_LOCAL">
-
-        <class>org.apache.james.mailbox.jpa.mail.model.JPAHeader</class>
         <class>org.apache.james.mailbox.jpa.mail.model.JPAMailbox</class>
         <class>org.apache.james.mailbox.jpa.mail.model.JPAUserFlag</class>
         <class>org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage</class>
         <class>org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage</class>
         <class>org.apache.james.mailbox.jpa.mail.model.JPAProperty</class>
         <class>org.apache.james.mailbox.jpa.user.model.JPASubscription</class>
+        <class>org.apache.james.domainlist.jpa.model.JPADomain</class>
+        <class>org.apache.james.user.jpa.model.JPAUser</class>
+        <class>org.apache.james.rrt.jpa.model.JPARecipientRewrite</class>
         <properties>
             <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
             <property name="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=cascade, JoinForeignKeyDeleteAction=cascade"/>



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: svn commit: r1158756 - /james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml

Posted by Eric Charles <er...@apache.org>.
Finally, I removed the unneeded definition in persistence.xml in 
mailbox-spring.

The persistence.xml in app simply 'override' (first on class loader) it.

The alternative was multiple persistence files [1], but a bit overkill.


[1] 
http://ancientprogramming.blogspot.com/2007/05/multiple-persistencexml-files-and.html

On 17/08/11 18:07, Eric Charles wrote:
> True. Thx :)
> I'm now trying to let the stuff work (dependencies...), and will
> configure spring for a multiple persistence.xml loading.
>
> Eric
>
> On 17/08/11 17:57, Norman Maurer wrote:
>> I think the JPADomainList stuff etc does not belong in here.. as it is
>> not related to mailbox at all...
>>
>> Bye,
>> Norman
>>
>>
>> 2011/8/17<er...@apache.org>:
>>> Author: eric
>>> Date: Wed Aug 17 14:58:15 2011
>>> New Revision: 1158756
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1158756&view=rev
>>> Log:
>>> Update persistence.xml to latest model (MAILBOX-76)
>>>
>>> Modified:
>>> james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml
>>>
>>> Modified:
>>> james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml
>>> URL:
>>> http://svn.apache.org/viewvc/james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml?rev=1158756&r1=1158755&r2=1158756&view=diff
>>>
>>> ==============================================================================
>>>
>>> ---
>>> james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml (original)
>>>
>>> +++
>>> james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml Wed
>>> Aug 17 14:58:15 2011
>>> @@ -24,14 +24,15 @@
>>> version="2.0">
>>>
>>> <persistence-unit name="James" transaction-type="RESOURCE_LOCAL">
>>> -
>>> -<class>org.apache.james.mailbox.jpa.mail.model.JPAHeader</class>
>>> <class>org.apache.james.mailbox.jpa.mail.model.JPAMailbox</class>
>>> <class>org.apache.james.mailbox.jpa.mail.model.JPAUserFlag</class>
>>> <class>org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage</class>
>>>
>>> <class>org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage</class>
>>>
>>> <class>org.apache.james.mailbox.jpa.mail.model.JPAProperty</class>
>>> <class>org.apache.james.mailbox.jpa.user.model.JPASubscription</class>
>>> +<class>org.apache.james.domainlist.jpa.model.JPADomain</class>
>>> +<class>org.apache.james.user.jpa.model.JPAUser</class>
>>> +<class>org.apache.james.rrt.jpa.model.JPARecipientRewrite</class>
>>> <properties>
>>> <property name="openjpa.jdbc.SynchronizeMappings"
>>> value="buildSchema(ForeignKeys=true)"/>
>>> <property name="openjpa.jdbc.MappingDefaults"
>>> value="ForeignKeyDeleteAction=cascade,
>>> JoinForeignKeyDeleteAction=cascade"/>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-dev-help@james.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-dev-help@james.apache.org
>>
>

-- 
Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: svn commit: r1158756 - /james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml

Posted by Eric Charles <er...@apache.org>.
True. Thx :)
I'm now trying to let the stuff work (dependencies...), and will 
configure spring for a multiple persistence.xml loading.

Eric

On 17/08/11 17:57, Norman Maurer wrote:
> I think the JPADomainList stuff etc does not belong in here.. as it is
> not related to mailbox at all...
>
> Bye,
> Norman
>
>
> 2011/8/17<er...@apache.org>:
>> Author: eric
>> Date: Wed Aug 17 14:58:15 2011
>> New Revision: 1158756
>>
>> URL: http://svn.apache.org/viewvc?rev=1158756&view=rev
>> Log:
>> Update persistence.xml to latest model (MAILBOX-76)
>>
>> Modified:
>>     james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml
>>
>> Modified: james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml
>> URL: http://svn.apache.org/viewvc/james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml?rev=1158756&r1=1158755&r2=1158756&view=diff
>> ==============================================================================
>> --- james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml (original)
>> +++ james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml Wed Aug 17 14:58:15 2011
>> @@ -24,14 +24,15 @@
>>      version="2.0">
>>
>>      <persistence-unit name="James" transaction-type="RESOURCE_LOCAL">
>> -
>> -<class>org.apache.james.mailbox.jpa.mail.model.JPAHeader</class>
>>          <class>org.apache.james.mailbox.jpa.mail.model.JPAMailbox</class>
>>          <class>org.apache.james.mailbox.jpa.mail.model.JPAUserFlag</class>
>>          <class>org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage</class>
>>          <class>org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage</class>
>>          <class>org.apache.james.mailbox.jpa.mail.model.JPAProperty</class>
>>          <class>org.apache.james.mailbox.jpa.user.model.JPASubscription</class>
>> +<class>org.apache.james.domainlist.jpa.model.JPADomain</class>
>> +<class>org.apache.james.user.jpa.model.JPAUser</class>
>> +<class>org.apache.james.rrt.jpa.model.JPARecipientRewrite</class>
>>          <properties>
>>              <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
>>              <property name="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=cascade, JoinForeignKeyDeleteAction=cascade"/>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-dev-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>

-- 
Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: svn commit: r1158756 - /james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml

Posted by Norman Maurer <no...@googlemail.com>.
I think the JPADomainList stuff etc does not belong in here.. as it is
not related to mailbox at all...

Bye,
Norman


2011/8/17  <er...@apache.org>:
> Author: eric
> Date: Wed Aug 17 14:58:15 2011
> New Revision: 1158756
>
> URL: http://svn.apache.org/viewvc?rev=1158756&view=rev
> Log:
> Update persistence.xml to latest model (MAILBOX-76)
>
> Modified:
>    james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml
>
> Modified: james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml
> URL: http://svn.apache.org/viewvc/james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml?rev=1158756&r1=1158755&r2=1158756&view=diff
> ==============================================================================
> --- james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml (original)
> +++ james/mailbox/trunk/spring/src/main/resources/META-INF/persistence.xml Wed Aug 17 14:58:15 2011
> @@ -24,14 +24,15 @@
>     version="2.0">
>
>     <persistence-unit name="James" transaction-type="RESOURCE_LOCAL">
> -
> -        <class>org.apache.james.mailbox.jpa.mail.model.JPAHeader</class>
>         <class>org.apache.james.mailbox.jpa.mail.model.JPAMailbox</class>
>         <class>org.apache.james.mailbox.jpa.mail.model.JPAUserFlag</class>
>         <class>org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage</class>
>         <class>org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage</class>
>         <class>org.apache.james.mailbox.jpa.mail.model.JPAProperty</class>
>         <class>org.apache.james.mailbox.jpa.user.model.JPASubscription</class>
> +        <class>org.apache.james.domainlist.jpa.model.JPADomain</class>
> +        <class>org.apache.james.user.jpa.model.JPAUser</class>
> +        <class>org.apache.james.rrt.jpa.model.JPARecipientRewrite</class>
>         <properties>
>             <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
>             <property name="openjpa.jdbc.MappingDefaults" value="ForeignKeyDeleteAction=cascade, JoinForeignKeyDeleteAction=cascade"/>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org