Hi
I am working with JPA(Netbeans/glassfish/mysql) example for Student
Apllication
case: " Any student can go to any class" So ManyToMany mapping between
Student and CLasses entity classes
in database it is creating 3 tables
1. Student
2.Classes
3.student_classes
the 3rd one is because of Collection i used as it is manytomany
student table have fields as ID , NAME
Classes have fileds as classID , NAMe
student_classes have studentID and CLassID as fileds
now after saving of each student it should update student_Classes table
also . Please tell me how to do this?
do i have to insert mannually for that 3rd table? then how to write
insert query ?
SASKEN BUSINESS DISCLAIMER
-------------------------
This message may contain confidential, proprietary or legally privileged information. In
case you are not the original intended Recipient of the message, you must not, directly or
indirectly, use, Disclose, distribute, print, or copy any part of this message and you are
requested to delete it and inform the sender. Any views expressed in this message are
those of the individual sender unless otherwise stated. Nothing contained in this message
shall be construed as an offer or acceptance of any offer by Sasken Communication
Technologies Limited ("Sasken") unless sent with that express intent and with due
authority of Sasken. Sasken has taken enough precautions to prevent the spread of
viruses. However the company accepts no liability for any damage caused by any virus
transmitted by this email