-->
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 Core 4.2.0.CR1 binary compatibility?
PostPosted: Sun Feb 10, 2013 8:58 pm 
Newbie

Joined: Sun Feb 10, 2013 8:22 pm
Posts: 1
My application was compiled against Hibernate Core 4.1.6.Final. When I run it against hibernate-core-4.2.0.CR1.jar, I get this exception:

Code:
java.lang.NoSuchMethodError: org.hibernate.criterion.Restrictions.eq(Ljava/lang/String;Ljava/lang/Object;)Lorg/hibernate/criterion/SimpleExpression;     
        at org.zanata.dao.AccountRoleDAO.findByName(AccountRoleDAO.java:44) [classes:]                                                                               
        at org.zanata.dao.AccountRoleDAO.roleExists(AccountRoleDAO.java:38) [classes:]                                                                               
        ... 62 more   


The return type of Restrictions.eq has changed from SimpleExpression to Criterion. No doubt the error will fix itself if I compile against 4.2.

Is 4.2 meant to be binary compatible with 4.1?


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.