This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.hibernate.Criteria: field ROOT_ENTITY not found
 
Similar Threads
I need help with Hibernate
ClassCastException Hibernate
FBN: criteriaFind(String criteria) method; is this ok ?
Joining tables
Criteria Qurey for Composite key table