Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB:: ejbPostCreate()

 
Raj Waters
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
ejbPostCreate()
What is the purpose of this method? Any good example which justifies the use of ejbPostCreate()?
:roll:
yup
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlike the ejbCreate() method, the ejbPostCreate() method can invoke the getPrimaryKey() and getEJBObject() methods of the EntityContext interface. This makes ejbPostCreate() the only place where you can perform initialization requiring the identity of the entity bean, such as bi-directional dependencies (CMR).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic