• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

role of ejbSelect methods

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic