Hi friends,
I have to query a table something like this:
Code:
Select * from person where id in ('1','2','3')
How do we write a hibernate equivalent for the above?
I have one more problem - I want to insert an id (id of Y) value in a table say x, as soon as a record is entered into a table Y.
I am confused about these.
Any help/suggestion is much appreciated.
Thanks
Vishal
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.1
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html