Pages

Converters in hibernate

Converters in hibernate

If you want to map a java.lang.Integer type property of a class with VARCHAR SQL type That time you have to write a custom mapping types using hibenrate. These are called converters.

Now, hibernate have provided some basic interface for converters which are as follows:

(1) org.hibernate.usertype.UserType
(2) org.hibernate.usertype.CompositeUserType
(3) org.hibernate.usertype.UserCollectionType
(4) org.hibernate.usertype.EnhancedUserType
(5) org.hibernate.usertype.UserVersionType
(6) org.hibernate.usertype.ParameterizedType








2 comments: