Forums Register Login

self reference in CMP

+Pie Number of slices to send: Send
I have just started using CMPs.
I have a field in my table that references the same table back.
S'd i be using a Link table to reflect this OR can i specify the same in the CMR itself that am actually referring to the same bean?
i just wanted to get a few ideas b4 starting implementation.
+Pie Number of slices to send: Send
Hi Karthik,
You should not need to create a link table If your container vendor supports EJBs to reference themselves you can directly mark the beans to reference themselves.
Regards,
Ritesh
+Pie Number of slices to send: Send
thanks Ritesh,
yeah could get it work.
Lots of learning though especially the Collection based relationship. I didn't know that they may be accessed only within a single transaction
What kind of corn soldier are you? And don't say "kernel" - that's only for this 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 563 times.
Similar Threads
Space not releasing on toggle of divs
copy data between two different servers
m:m relationship producer_id, producer_id
Color Rows of a Table
Polymorphism with JPA and Hibernate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:39:55.