http://www.sys-con.com/java/index2.html
See JDJ Daniel O'Connor (June 2000, Volume 5, issue 6)
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, August 10, 2000 9:43 AM
To: [EMAIL PROTECTED]
Subject: Simple EJB 2.0 Design question
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".
===========================================================================
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".