I dont call the HibernateTemplate directly, I just call the update method of 
the DAO.



I create a new person with the factory from person 
(Person.Factory.newInstance(); ) then create a new Car in a simular way and 

call person.getCars().add(newCar);, then I call personDAO.create(person) to 
store the person in the database.

The person is stored in the DB but the car I added to the car is not.



What do I have to do so the car is stored in the DB when I add a new person 
with a car to the DB or when I update the person after I added a new car to the 
person?



Thanks
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3864#3864
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to