Bauyrzhan Matyganov

Greenhorn
+ Follow
since May 18, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bauyrzhan Matyganov

*********************************************************
how to write a setter and getter methods for Student and Course fields in Enrolment class?





Marcin Mogiela wrote:Hi Pradeepta,

I did something like below, though it may not be the optimal solution.

If anybody had better solution for this problem or found any flaw in the problem itself I would highly appreciate any suggestions.

First of all I introduced the join class Enrollment.



From Enrollment.hbm.xml


From Course.hbm.xml


From Student.hbm.xml


From Grade.hbm.xml