• Post Reply Bookmark Topic Watch Topic
  • New Topic

self reference in CMP  RSS feed

 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ritesh Gupta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!