I have 2 tables (X & Y).with one table(Y) created dynamically based on inserting values in table X.

E.G :Suppose table X has 3 columns(ID(Pk) Name,desc).
So when a value is inserted in table X under these columns,

dynamically a table Y is cretaed with table name as('Name') which is a column name of table X.

(I have alredy implemented the same using normal Java classes,but the same i want to implement in EJB's)

So according to my problem mentioned above, now i have to have 2 Entity beans X & Y.
I am using BorlandAppserver4.5 .
I want to know how will i map this in XML file and what steps shud i follow 2 do the same.

Any suggestions wud be helpful.
Thanks in advance