Forums Register Login

Entity Beans +BMP Doubt

+Pie Number of slices to send: Send
Hi
Suppose if I have two Tables and I want to Write only one Entity Beans.I want to use Bean Managed Persistence.How do I do this.I am asking this doubt because the getPrimaryKey(),ejbCreate() methods cannot return primary keys for two tables,Right.
Can anyone help me in this regard.
Thanks in advance
With kind Regards
Satheesh.K
+Pie Number of slices to send: Send
Hello satheesh ,

Suppose if I have two Tables and I want to Write only one Entity Beans



Why. Just curious to know the reason. Is it because you want to do some rnd.

Entity beans represent a row in the database. One entity. If you have two tables each having its own primary key then we are talking about two entities and each entity should be represented by a different entity bean instance.

Hope it helps.
This is my favorite show. And this is my favorite tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 692 times.
Similar Threads
Doubt in dbunit
Doubt...
doubt
Doubt on delete of a parent entity
Doubt on doubt
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:13:18.