james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Mailbox-Jpa
Date Wed, 05 Oct 2011 11:36:45 GMT
@Norman

Hi Norman

I think the MailboxIdUidKey should be embeddable but I'm not absolutely 
sure. Can you please verify this?

Thanks and regards
Felix

### Eclipse Workspace Patch 1.0
#P apache-james-mailbox-jpa
Index: 
src/main/java/org/apache/james/mailbox/jpa/mail/model/openjpa/AbstractJPAMessage.java
===================================================================
--- 
src/main/java/org/apache/james/mailbox/jpa/mail/model/openjpa/AbstractJPAMessage.java 
(revision 1178736)
+++ 
src/main/java/org/apache/james/mailbox/jpa/mail/model/openjpa/AbstractJPAMessage.java 
(working copy)
@@ -27,6 +27,7 @@
  import javax.persistence.Basic;
  import javax.persistence.CascadeType;
  import javax.persistence.Column;
+import javax.persistence.Embeddable;
  import javax.persistence.FetchType;
  import javax.persistence.Id;
  import javax.persistence.IdClass;
@@ -105,6 +106,7 @@
      private static final String TOSTRING_SEPARATOR = " ";

      /** Identifies composite key */
+    @Embeddable
      public static class MailboxIdUidKey implements Serializable {

          private static final long serialVersionUID = 7847632032426660997L;

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


Mime
View raw message