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

Entity Beans with Foreign Keys  RSS feed

 
rez sam
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I understand we are not supposed to call getters and setters for CMR
fields. If we have a foreign key with not null constrain in database then where we are going to set this foreign key for the entity bean?
We can't call setter for the foreign key in ejbCreate and in ejbPostCreate it's after the insert operation and already late.

thanks
[ February 17, 2007: Message edited by: rez sam ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!