[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Automatic generation of primary key

2006-06-02 Thread Lauri
I don't know what it could be then :(. As far as i understand, general idea of pk generation is to tell EJB engine what type (class) of pk it will be, and tell details to jboss personally. Something about integer type should be mentioned in ejb-jar.xml and particular instructions in jbosscmp-jd

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Automatic generation of primary key

2006-06-02 Thread iraten
Thank you for your reply. I've tried your solution using and Unfortunatly, it doesn't solve my problem (I still get a null primary key). Did you do something else in order to find this class?(maybe adding a jar or a reference to a jar)? Thank you again View the original post : http:

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Automatic generation of primary key

2006-06-01 Thread iraten
Thank you for your answer. It was the way I found. I use | | HiLoKeyGeneratorFactory | | | Unfortunatly, I get a ClassCastException because it generates a Long and I need an Integer. Do you now the name of an appropriate factory? Thank you View the original post : http:/

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Automatic generation of primary key

2006-05-31 Thread lafr
Look for auto-increment and entity-command. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948201#3948201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948201 --- A