Patches item #630707, was opened at 2002-10-29 12:57
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=630707&group_id=22866

Category: JBossCMP
Group: v4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Boynes (jboynes)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow insert after ejbPostCreate

Initial Comment:
Patch allowing the INSERT operation to be delayed until
after ejbPostCreate has been called. This is intended
to allow CMR to be used with mandatory FK relationships
(where the FK column is NOT NULL), similar to the hack
in WebLogic.

The patch adds a postCreateEntity method to
EntityPersistenceStore which is invoked by
CMPPersistenceManager to notify the store that
ejbPostCreate has been invoked.

In the JDBCStoreManager implementation this invokes a
new JDBCPostCreateEntityCommand which may perform the
insert. In other store implementations,
postCreateEntity is empty.

The JDBCCreateEntityCommand and JDBCPostCreateEntity
commands read a delay-insert flag from the entity
metadata to determine which should perform the insert.
Default behaviour is to INSERT after ejbCreate as per
the spec..

Tested with a pair of beans in a 1<->N relationship.
Couldn't run the full testsuite - it seems to be broken
right now.

First submission, please be gentle :-)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=630707&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to