[jboss-user] [Beginners Corner] - Re: New table fild with primary key in CMP Entity EJB

AlexKomlev do-not-reply at jboss.com
Thu Apr 26 15:12:58 EDT 2007


The answer it has appeared simple.
In a file jbosscmp-jdbc.xml it is necessary to add two strings.
<auto-increment/> in cmp description primary key
and 
<entity-command name="postgresql-fetch-seq"/>
to the end of entity declaration

PS

JDBC 2 - don't work
JDBC 3 - work
JDBC 4 - ?

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

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



More information about the jboss-user mailing list