[jboss-user] [JBoss Eclipse IDE (users)] - MS Sqlserver Identity not set for autogenerated column with

ponobhayedo do-not-reply at jboss.com
Mon Sep 11 06:37:28 EDT 2006


I used the following tags in my CMP entity class to generate jbosscmp deployment descriptor file.

@jboss.unknown-pk
* auto-increment = "true"
* column-name = "ID"
* filed-name="id"
* class = "java.lang.Integer"
* jdbc-type = "INTEGER"
* sql-type = "INTEGER" 

It seems to generate fine and when deployed also generates the required table. However, the primary key which is suppose to have the identity attribute is not set to yes. Hence my code breaks down because NULL value is  being inserted into the ID column by the code since it expects it to be an IDENTITY column.

Any help on how to get jboss to generate the original table with IDENTITY set to yes on MS SQLServer is highly appreciated.

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

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



More information about the jboss-user mailing list