"qwidjibo" wrote : Your example seems to have just added <auto-increment/> to 
the jbosscmp-jdbc.xml file, does this work? If so,  I'd appreciate it if you 
could post a copy of the working xml files. 
  | 
Yes, that's almost all I've to do to get auto pk generation.
I used these two xdoclet tags to the class comments:


  | @jboss.persistence pk-constraint="false"
  | @jboss.entity-command name="hsqldb-fetch-key"
  | 

and this one to the getter method of the pk


  | @jboss.persistence auto-increment="true"
  | 

That's all. (remember to include all the deployment descriptors in the correct 
archives)


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

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


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to