posted 13 years ago
I'm creating application who contains two model class Student and Grade and using org.springframework.orm.hibernate3.LocalSessionFactoryBean to persist them
The two model class and the relation between them is:
I've manage to persist the two classes separable with out the relation between(the composition in Student class)
I'm wondering is there something like
that like a state to put it in the hibernate-mapping and make the persistence with the corresponding relation.
I'm not using JPA Annotation in the model and my tables in the database are
Student table:
Grade table: