-->
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.  [ 2 posts ] 
Author Message
 Post subject: Replacing Criteria.getCriteriaClass() for 3.0 upgrade...
PostPosted: Wed Apr 06, 2005 8:13 pm 
Newbie

Joined: Wed Apr 06, 2005 8:01 pm
Posts: 2
Hey guys,

I'm pretty new to Hibernate and am upgrading our app from Hibernate 2.0 to Hibernate 3.0, so there may be a solution to this so obvious that no one bothered to even list in in the Newbie FAQ. If this is the case, remember, patience and understanding for our ignorant friends is a virtue. ;)

Question:
I noticed in the changeover from Hibernate 2.0 to Hibernate 3.0 that Criteria.getCriteriaClass() method has been nuked. Is there replacement functionality in Hibernate 3.0 or some sort of workaround?

Thanks!
DeAngelo Lampkin

P.S. Lakers season tickets to the first person to answer! What? No takers? Awww....

Hibernate version: 3.0


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 07, 2005 2:54 pm 
Newbie

Joined: Wed Apr 06, 2005 8:01 pm
Posts: 2
Found the solution. Sorta. It's of the workaround variety (as opposed to the built-in kind). Just use aliases everywhere and use getAlias() for your "type checking". I suspect the ease of this varies from codebase to codebase, but for us it wasn't that bad.

I guess I'll be keeping those nonplayoff bound Lakers tickets after all.


-DeAngelo Lampkin


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

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.