JBoss Community

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

created by Wolf-Dieter Fink in Beginner's Corner - View the full discussion

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

Start a new discussion in Beginner's Corner at Community