Hello again!

I am glad (and surprised) that my first post in this list created so much
traffic. It was indeed very helpful..

I have the following design question:

* I have a relational database that has a table called APPLE. Each apple has
a primary key which in my case is an integer.

* I have an entity bean called AppleBean which has a primary key class
called ApplePK which has an integer (holding my relational database integer
primary key).

* I have a session bean called AppleSupplier which sells apples.

* I have a client (an apple consumer?) that will "BUY" apples from the
AppleSupplier.

The question is: Should my AppleConsumer know about ApplePK and use this to
buy apples? or should my AppleConsumer use integers (as in the database) to
request apples from the supplier (who will then create ApplePKs and deal
with the apples)?

I hope this was not too confusing,

Michael

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
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".

Reply via email to