-->
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: which hibernate class will support jpa CriteriaBuilder?
PostPosted: Thu Jan 13, 2011 9:19 am 
Newbie

Joined: Tue Nov 02, 2010 10:55 am
Posts: 17
Hi All
We sucessfully implementedSpring , hibernate +jpa in our application with Xa transcation.but we trying to implement criteria in our application we are facing one error that ,
Quote:
java.lang.NoSuchMethodError: javax.persistence.EntityManager.getCriteriaBuilder()


so could you tel which implementation class you are using in hybernate for javax.persistence.criteria.CriteriaBuilder interface
listed few jar file we are using ,
Quote:
hibernate 3.3
jpa 2.0
and spring-orm 3.0.2 for entitymanager

suggestions will be appreciated.
thank you so much


Top
 Profile  
 
 Post subject: Re: which hibernate class will support jpa CriteriaBuilder?
PostPosted: Thu Jan 13, 2011 11:56 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
JPA v.1 doesn't support criterias. Hibernate 3.3 provides a JPA(1) implementation, and in addition to it it also supports criteria API but these are not exposed via the old JPA interface. So either you switch to use the org.hibernate API, or update to JPA v2, implemented by Hibernate >3.5 (latest stable is 3.6.0)

_________________
Sanne
http://in.relation.to/


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.