This content has been marked as final.
Show 3 replies
-
1. Re: How to generate Primary Key (CMP 2.0, PSQL, JB 3.0.3)
ronr Dec 12, 2002 6:33 PM (in response to berserksangr)I have a similar problem.
I am using MSSQLServer 2000 and am using an identity primary key.
I am getting "Cannot insert explicit value for identity column" on ejbCreate even though I left the column blank.
I can not find out how to tell JBoss how to use the identity column and not try to insert.
Please help,
Ron -
2. Re: How to generate Primary Key (CMP 2.0, PSQL, JB 3.0.3)
jboynes Dec 13, 2002 12:39 AM (in response to berserksangr)Support for different types of key generator (including JDBC3 getGeneratedKeys) has been added to 3.2
I'm afraid there's no pure-CMP solution for 3.0 -
3. Re: How to generate Primary Key (CMP 2.0, PSQL, JB 3.0.3)
rainbow_ua Dec 15, 2002 4:35 AM (in response to berserksangr)"EJB Design Patterns" book describes some approaches to solve this problem:
http://www2.theserverside.com/books/EJBDesignPatterns/index.jsp