Let's say you have to two entity beans representing a manay-to-many
relationship in the database. In my case we have Courses and Students. Where
is the best place to implement a "get courses by student"?
I could add a finder to Course - .findByStudent(). However, this doesn't
seem like the clear choice since Student isn't a dependent entity of Course.
Would I be better off creating a Session bean that had a method
.getCoursesByStudent and made the JDBC call directly?
In the latter case, I could could just extract the data and not instantiate
any Entity Beans - this seems to be the trend.
Any comments?
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".