Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Handeling one-to-many relation manualy in EJB1.1.  RSS feed

Nayyer Kamran
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How we can handel one-to-many relation in EJB1.1, if both table are CMP beans.
if A(one side bean) and B(many side bean) are two beans then can we call the bhome.create() or create of B many times, while we are remains in the create method of A. is it possible.
There are two things should be consider
1:A has yet not created in Database as it is still in its create method. and in database we could have the Foreign key constraint.
2:A and B are of the part of different transaction. What container haults the A's tracation and starts B's trasaction.
does making them the part of the same transaction would do the magic.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!