|
Hi,
Hibernate version: 3.0.5
I want to activate "hibernate.order_updates" setting. However, I have a user type where the underlying property value does not implement Comparable. When sorting the actions, Hibernate tries to cast the value to Comparable which fails.
I can't make the property value implement Comparable. Is there any known solution?
In future releases, wouldn't it be a good idea to have CustomType override AbstractType#compare(Object, Object, EntityMode) and delegate to the user type? For this to work, UserType interface would need to add a comparison method.
Thanx
olaf
|