Hi,

we have an database design problem on mySQL using JBoss. We are using CMP, 
Autoincrement and InnoDB relationships. The Problem of our design question is the 
following:
As we use EJB as abstaction layer and tranfer data from client to server by DTO, we 
have a "dirty flag" that marks our DTO as modified by the client. Then our serverside 
logic has to create/modify these entities. No problems until here. But when we have 
related data, it is impossible to create the relationship witout getting the database 
table id becaouse of the foreign constraint. Threrfore we allowed to insert data with 
foreign key null which is quite not very nice! Is there any possibility or JBoss 
mechanism to tell the container to create constrained data objects in one operation 
including the correct foreign references. So we would not have to do it unsecure in 
two steps (the foreign key = null way without DB savety or access to the DB layer 
since object abstaction is not any more given in a elegant form).

Thanks for any reply,
Dennis

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839395#3839395

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839395


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to