Hi,

Can you post the exact error log you have because I don't really understand your 
problem:

1 : If your tables must have the primary key auto incremented by the database, you 
must declared an <unknown-pk> tag for each table
2 : The CMR fields (the foreign key) must be set in ejbPostCreate, not in ejbCreate, 
and you set the CMR field not the foreign CMP field
3 : JBoss is buggeg with database auto-incremented key. So you must set the CMP field 
tr_type in ejbCreate with setTr_type(tr_type.getId()), the sets the CMR field tr_type 
in ejbPostCreate.

In your description (ejb-jar and jbosscmp-jdbc), you are not in database 
auto-incremented configuration. If this is right, you can delete the CMP field 
tr_type, you don't need it. Just work with the CMR field.
Also, in your case, you should experiment problems naming the CMP and CMR field 
tr_type and Tr_Type because the getters will have the same name getTr_type();





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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to