I am to 100% sure what you mean, by q2 but I think you want to look up the section in the
hibernate entityManager docs on event listeners. I think you could set a PrePersist
listener on you keygen component, and this would acomplish what you are after, I am not
sure though.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093764#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...