[ http://jira.jboss.com/jira/browse/JBAS-310?page=history ] Scott M Stark closed JBAS-310: ------------------------------
Assign To: Alexey Loubyansky (was: Scott M Stark) Resolution: Done Fix Version: JBossAS-3.2.6 Final JBossAS-4.0.0 Final > Control time ejbStore > --------------------- > > Key: JBAS-310 > URL: http://jira.jboss.com/jira/browse/JBAS-310 > Project: JBoss Application Server > Type: Feature Request > Components: CMP service > Versions: JBossAS-4.0.0 Final > Reporter: SourceForge User > Assignee: Alexey Loubyansky > Fix For: JBossAS-3.2.6 Final, JBossAS-4.0.0 Final > > > SourceForge Submitter: alvaromota . > I thing that is usual insert element to specify the > precise time at which a new bean that uses RDBMS CMP is > inserted into > the database. By default, the database insert is done > after > ejbPostCreate. > For maximum flexibility, developers should avoid > creating related > beans in their ejbPostCreate method. This may make > delaying the > database insert impossible if database constraints > prevent related > beans from referring to a bean that has not yet been > created. > This is useful when we need to create a child entity > from inside the > ejbPostCreate method of a parent entity. The > foreign-key field on the > child??????s table will try to match an existing key on the > parent, but since it > has not been persisted, a violation error will occur. > To avoid that, and > still use the foreign-key constraint in the child??????s > table, we use the > "ejbCreate" or "commit" value on the tag in the parent > bean??????s descriptor. > Thanks > Alvaro Mota Gon??????alves -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development