| Hibernate version: 3.2.6.ga 
 Hi,
 in many part of my application I need to check if an entity has referring children without cascade delete before remove it, but doing all these check manually require a lot of code (also because not all parent-child association are mapped on both associations ends), so I was looking for a way to do these checks automatically with hibernate without use integrity constraing on DB.
 
 I was thinking to use some sort of Interceptor technique, but i was worrying if there is a better and simpler way to achieve the same result.
 
 Someone can help me?
 
 Thanks!
 Luca.
 
 
 |