[jboss-user] [Beginner's Corner] - Re: Persisting java.util.Map with custom class as key and value

Wolf-Dieter Fink do-not-reply at jboss.com
Sun Apr 17 14:22:54 EDT 2011


Wolf-Dieter Fink [http://community.jboss.org/people/wdfink] created the discussion

"Re: Persisting java.util.Map with custom class as key and value"

To view the discussion, visit: http://community.jboss.org/message/600490#600490

--------------------------------------------------------------
Mmmh,
you are right, @ElementCollection is a EJB3.1 annotation (ähm a JPA2.0 which is part of EJB3.1).
ATM I have this options:
- store as a BLOB (MAP and its elements must be serializable)
- write your own mapper to store (and respect the EJB3.1 structure to port later  :)  )
- use a table with relation to store it
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/600490#600490]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110417/633c3372/attachment.html 


More information about the jboss-user mailing list