Error added: 2007-10-27T18:33:22Z
whenever u map nay database table into java class file u need 2 use name of d class as table name and variables of the class as table fields e.g. database table is bank with field bank_id java class file is Bank with variable bank_id den ur query stmt should be Query q = session.createQuery(\"from Bank as bank where bank.bankID = \'10101\'\");
3
org.hibernate.hql.ast.QuerySyntaxException: TBEE is not mapped
In hibernate.cfg.xml: <mapping resource=\"package/User.hbm.xml\"/>
Check the imports of your \'@Entity\' annotations in your beans If it is: org.hibernate.annotations.Entity; Then change it to: import javax.persistence.Entity; and life will be sweet. http://billcomer.blogspot.com/2008/04/hibernate3-hibernatequeryexception.html
If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people
struggling with this too.
If you want to be notified via email when this is solved, enter your email address here: