Hi all
i'm having problems with updating/inserting values in my many-to-many relationship (i have a mapping table for that).
There are 3 tables, TBENUTZER, TPROFILE and a mapping table TBENU_TPROFIL_MATRIX. The mapping table contains only two columns, a foreign-key to TBENUTZER and a foreign key to TPROFILE.
Mapping Files:
Benutzer.hbm.xml
Profil.hbm.xml
In my ManagerCode try to assing a profile to the Benutzer and then save the Benutzer object into the database:
If doing that i get the following error:
The log entries from hibernate look correct to me:
I'm also using Spring with which I configured my Managers...
Does anybody have an idea? Any helo appreciated!
Thanks
Kind Regards
Angela
i'm having problems with updating/inserting values in my many-to-many relationship (i have a mapping table for that).
There are 3 tables, TBENUTZER, TPROFILE and a mapping table TBENU_TPROFIL_MATRIX. The mapping table contains only two columns, a foreign-key to TBENUTZER and a foreign key to TPROFILE.
Mapping Files:
Benutzer.hbm.xml
Profil.hbm.xml
In my ManagerCode try to assing a profile to the Benutzer and then save the Benutzer object into the database:
If doing that i get the following error:
The log entries from hibernate look correct to me:
I'm also using Spring with which I configured my Managers...
Does anybody have an idea? Any helo appreciated!
Thanks
Kind Regards
Angela