These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate.order_updates setting and user type not Comparable
PostPosted: Mon Aug 21, 2006 5:08 pm 
Newbie

Joined: Mon Aug 21, 2006 4:48 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.