Feature Requests item #558869, was opened at 2002-05-21 21:11
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376688&aid=558869&group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Priority: 5
Submitted By: Tim Fox (timfox)
Assigned to: Nobody/Anonymous (nobody)
Summary: Delay insert until after ejbPostCreate

Initial Comment:
jboss3.0rc3

I have two entity beans (CMP) with a one-many 
mapping between them - the relation is handled with 
CMR.

The child object has a foreign key column indentifying 
the parent id.

There is referential integrity enforce on the foreign key 
column (not null) in the database.

If I create a new instance of the child class in the 
database, then, since the cmr field representing the 
parent id is not set until the subsequent update query, 
the insert fails.

Net result is unable (or at least very difficult) to use 
CMR currently  in databases with referential integrity.

Since most serious databases will have referential 
integrity enforced this appears a very serious limitation.

Possible solution: to delay insert until after 
ejbPostCreate().

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376688&aid=558869&group_id=22866

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to