[jboss-user] [EJB 3.0] - Re: EJB 3.0 - PK Generation with GenerationType

2006-09-13 Thread wikijuarezjunior
Hi ablevine1, Thanks a lot for you reply. I will check those Hibernate extensions and give them a try. BR, Juarez Jr View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971264#3971264 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [EJB 3.0] - Re: EJB 3.0 - PK Generation with GenerationType

2006-09-12 Thread ablevine1
There is no way to do this that is ejb3-spec compliant, however, you can use some hibernate extensions to accomplish this. 1. You need create an id genretor class that implements org.hibernate.id.IdentifierGenerator implementing the generate method to return your custom generated pk. 2. Annota