This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes org.hibernate.Criteria: field ROOT_ENTITY not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.Criteria: field ROOT_ENTITY not found" Watch "org.hibernate.Criteria: field ROOT_ENTITY not found" New topic
Author

org.hibernate.Criteria: field ROOT_ENTITY not found

Mustafa Var
Greenhorn

Joined: Mar 28, 2006
Posts: 8
Hello,
we are developing a web project using hibernate and struts on WebSphere 5.0.

today i wanted to use hibernate Criteria api but i have faced with an error that i couldnt find anything like on google

it says "org.hibernate.Criteria: field ROOT_ENTITY not found"

trace is like below

[org.hibernate.Criteria: field ROOT_ENTITY not found]: java.lang.NoSuchFieldError: org.hibernate.Criteria: field ROOT_ENTITY not found
at org.hibernate.impl.CriteriaImpl.<init>(CriteriaImpl.java:61)
at org.hibernate.impl.CriteriaImpl.<init>(CriteriaImpl.java:67)
at org.hibernate.impl.SessionImpl.createCriteria(SessionImpl.java:1493)

the error line is


Criteria crit = hibernateSession.createCriteria(MyItem.class);



help me


Mustafa VAR<br />Computer Engineer
Mustafa Var
Greenhorn

Joined: Mar 28, 2006
Posts: 8
Ok I have found. answer is on the below link.

http://forum.hibernate.org/viewtopic.php?t=951262&highlight=rootentity
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: org.hibernate.Criteria: field ROOT_ENTITY not found
 
Similar Threads
ClassCastException Hibernate
I need help with Hibernate
FBN: criteriaFind(String criteria) method; is this ok ?
Joining tables
Criteria Qurey for Composite key table