Simple question for Hibernate Gurus
I have two associated objects i.e. DeviceType and Role. The relationship is uni-directional and Many-To-Many. That means DeviceType can have multiple Roles.
Now my question is
" Is it possble to persist object data (i.e. DeviceType) to associated database tables"
For example if i have
hibernateTemplate.save(DeviceType dt);
then i expect the following insert statements to happen
1)insert into DeviceType(Id, Name, Desc) values(?,?,?)
2)insert into DeviceType_Roles(DeviceType_Id,Role_Id) values(?,?)
If you think its possible to do this in Hibernate 3.1.2 then please take few minutes to look at the posting
http://forum.hibernate.org/viewtopic.ph ... highlight=
P.S. I have looked at Hibernate Documentation & lots of example . Nothing helps hence the posting on forum
Regards
Bansi