Hi Felix,
Are you referring to
http://openjpa.apache.org/builds/latest/docs/manual/jpa_overview_meta.html#jpa_overview_meta_embeddable
?
http://openjpa.apache.org/embeddable-samples.html
From the second link, it seems that an extra table is created (not sure).
Did you try to run with @Embeddable and look at the impact on database
tables?
Thx
Eric
On 05/10/11 14:03, Norman Maurer wrote:
Hi there,
I'm not sure either.. Maybe someone else can confirm ?
Bye,
Norman
2011/10/5 Felix Knecht<[email protected]>:
@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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Eric
http://about.echarles.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]