[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
Thu Apr 21 04:32:36 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/601345#601345

--------------------------------------------------------------
In that case you have to write a hibernate mapper for this:
1)
Add annotation to your field => @org.hibernate.annotations.Type(type = "my.MapTypeBlobUserType")

2)
Write the mapper class my.MapTypeBlobUserType
implementing  => org.hibernate.usertype.UserType
--------------------------------------------------------------

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

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/20110421/80152529/attachment-0001.html 


More information about the jboss-user mailing list