-
1. Re: How to prevent writting primary key
joe_k Oct 26, 2002 6:21 AM (in response to benkarsa)Hi Sascha,
JBoss3.0.x does not support primary keys auto generated by the database for CMP. Maybe this feature will be implemented in a future version but currently it is not supported. If this is an option, try to implement your own PK generation strategy. If you are not sure on how to do this, see http://www2.theserverside.com/books/EJBDesignPatterns/index.jsp (Part1, Chapter5).
Greetings,
Jürgen -
2. Re: How to prevent writting primary key
joe_k Oct 26, 2002 6:30 AM (in response to benkarsa)Hi Sascha,
JBoss3.0.x does not support primary keys auto generated by the database for CMP. Maybe this feature will be implemented in future versions but currently it is not possible to do so. If this is an option, try to implement your own pk generation strategy. If you are not sure about how to do this, see http://www2.theserverside.com/books/EJBDesignPatterns/index.jsp (Part1, Chapter5 for possible design patterns and the appendix for a sample implemention of the sequence blocks pattern).
Greetings,
Jürgen