| Author |
EJB:: ejbPostCreate()
|
Raj Waters
Ranch Hand
Joined: Apr 21, 2002
Posts: 37
|
|
Hi ejbPostCreate() What is the purpose of this method? Any good example which justifies the use of ejbPostCreate()? :roll: yup
|
- Raj<br />[MCSE, SCJP, SCWCD]
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
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).
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
 |
|
|
subject: EJB:: ejbPostCreate()
|
|
|