[jboss-user] [EJB 3.0] - Re: primary and secondry table insertion
ALRubinger
do-not-reply at jboss.com
Thu Aug 16 11:37:50 EDT 2007
If you're using Entity Beans, you can attach a Hibernate Event Listener or JPA Event Annotations (ie http://java.sun.com/javaee/5/docs/api/javax/persistence/PrePersist.html, checking that when a row is added for your "table1" bean, the logic you'd like done is performed...
This keeps your logic at the application level, rather than relying upon DB triggers (as a matter of my personal preference).
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074898#4074898
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074898
More information about the jboss-user
mailing list