Why Can’t I Call the SetXXX Method For a cmr-field During EjbCreate

Question: Why Can’t I Call the SetXXX Method For a CMR-field During EjbCreate?

Answer: This is disallowed by the EJB 2.0 specification because the primary key of the current bean isn’t necessarily known during ejbCreate and it may be needed depending on how the relationship is mapped to the underlying DBMS.

Car-field setters should be called during ejbPostCreate instead of ejbCreate if relationships need to be set up during creation of a bean. (E learning portal)

Note: Browse latest  Weblogic interview questions and  Weblogic tutorial. Here you can check  Weblogic Training details and  Weblogic training videos for self learning. Contact +91 988 502 2027 for more information.

All Weblogic Interview Questions

Weblogic Videos

Duration: 20-25 Hours | Version: 12c, 11g | Admin
  • Experienced Faculty
  • Real-time Scenarios
  • Free Bundle Access
  • Course Future Updates
  • Sample CV/Resume
  • Interview Q&A
  • Complimentary Materials

Weblogic Tutorial Videos

up to 90% Off

Min 60%