Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0.x
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:
Quote:
I have created a one-to-one bi directional association using foriegn key between two tables and able to get both the tables fields.
Can anyone help me how the saveorUpdate works with this kind of association.I am setting one object(table) into another using set method and passing the object to save.Only one table is getting updated or saved.
How do I update both the tables.Can anyone give me an example of this
Thanks