• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.Criteria: field ROOT_ENTITY not found

 
Mustafa Var
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I have found. answer is on the below link.

http://forum.hibernate.org/viewtopic.php?t=951262&highlight=rootentity
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic