Hy all!
I would like to know the (easiest) way to make an Object reference with
an EJB application, I would like to maintain two objects (2 beans...),
for example:
an object called Account (accno, customer, balance)
and another object called Person for example which contains a reference
to my first Object (Account), like:
Person (perno, name, city,..., myAccount(ref Account))
I know I probably have to implement both objects as Entity Beans (or
Session), but I don't know how to declare in my EJB Java classes and the
xml deployment description that kind of reference, I will probably
create my database tables like this way:
CREATE TABLE accountsample (
accno int PRIMARY KEY,
customer VARCHAR(30),
balance double
);
CREATE TABLE personsample (
perno int PRIMARY KEY,
name VARCHAR(30),
city VARCHAR(30),
my_account_no int, -- joins to accountample.accno
...);
Thanks for ur responses...
Best regards.
--
RIEGERT Julien
--------------------
*** DESS MBDS - C.E.R.A.M Sophia-Antipolis ***
Mastère en Multimédia, Bases de Données
et Intégration de Systèmes
Phone: 06.12.49.16.44 - #ICQ: 75111998
Email: [EMAIL PROTECTED]
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".