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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to