Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: Hibernate Tools 3.2 Beta 7
Name and version of the database you are using: HSQLDB 1.8.1
I'am using eclipse 3.2 with hibernate tools 3.2 beta 7 to generate domain code and DAO code. The domain classes are flawless. However, the generated DAO classes (*Home.java) produce errors saying,
Code:
The method get(String, Serializable) in the type Session is not applicable for the arguments (String, int)".
Sample code is below.
Code:
ProductHome.java
Product instance = (Product) sessionFactory.getCurrentSession().get("org.hibernate.test.Product", id);
Code:
InvoiceHome.java
Invoice instance = (Invoice) sessionFactory.getCurrentSession().get("org.hibernate.test.Invoice", id);
I don't know why I'm getting this since the code is auto-generated.
Please advice. Thanks