Simple EJB 2.0 Design question
I am new the EJB and trying to design a simple app.
Products table
Id
Name
Description
Parts table
Id
Name
Description
Manufacturer
ProductId
Relational view : One-to-many relationship from Product to Parts
Object view : no static association; Before EJB, I would have a product
class with Id, name and description, and a getParts method and a Part class
with Id, name, description, manufacturer and NO product id. I would also
have a class ProductList and a class PartList.
One application deals with part only (To buy) one application deals with
Product only (Sells) and one needs with both(construction).
I'm mixed up with the finder methods. Do I always have to carry a list of
parts in by products entity bean? If I have a getParts, where is it? or do I
use a findByProductId???
Thanks
===========================================================================
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".