Forums Register Login

role of ejbSelect methods

+Pie Number of slices to send: Send
Hi,
I am a newcomer to EJB. I have to use CMR on one of my projects.I have a question regarding the use of ejbSelect methods in a CMR. I have two entity beans StudentEJB and CourseEJB which have a M:N relationship with each other with the studentId variable of StudentEJB being related to the courseNo variable of CourseEJB. Can ejbSelect methods be used to determine in such a case the courses that a student is enrolled in instead of using session tracking to track the student's id and then retrieve the courses based on studentId.
Could some please help me in this regard
Thanks,
Vishwak
+Pie Number of slices to send: Send
I didnt get the session tracking part that you referred to.
As long as data is persisted to the repository, you can get all courses for a given student.
If you have an access to the StudentEJb, you dont need a ejbSelect to get all the courses.
She'll be back. I'm just gonna wait here. With this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 579 times.
Similar Threads
sending parameter from one controller to other
question about CMP?
M:N relationship in CMP using 2 entity beans
ClassCastException problem
Error while Deploying BMP bean
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:17:19.