1) Database auto-increment : You don't experiment this yet because as you says, the TransTypes are predefined (so you do not create records in this table) but the transaction table have the same problem. As I understand, you don't suuceed to create a new transaction record. But if you says that it works anyway for you, it's OK for me.
2) CMR field not CMP : This is correct. You don't have to create the CMP field tr_type. The CMR field is sufficient. Then you can set it in ejbPostCreate passing the TransType class. In addition, in your case, naming both the CMP and the CMR can occurs in a conflict for the getters and the setters. 3) If you experiment a "cannot insert null value" or "explict value" for the primary key creating your Transation record, remember that database auto-incrementted keys are handling through unknown-pk, without declaring teh CMP field for the primary key id. Pascal View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830043#3830043 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830043 ------------------------------------------------------- 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
