[hibernate-dev] Problem with Properties of Embeddable Classes and Type Registry

Chris Pheby chris at jadira.co.uk
Tue May 1 06:02:07 EDT 2012


Hello,

The new type registry capability in Hibernate 4 and above is really useful. I have implemented an integrator that autoregisters some types, however what I have found is that whilst this works perfectly, the registered types are not being resolved correctly when they are used within @Embeddable classes.

Is this the expected behaviour?

I have tried debugging through the sources and it looks like the SessionFactory's TypeResolver is not used in the case of properties of such classes. See the comments at http://blog.jadira.co.uk/blog/2012/1/19/release-jadira-usertype-300cr1-with-support-for-joda-money-0.html#comments.

Thanks Chris




More information about the hibernate-dev mailing list