Hi All,

We are using appfuse 1.9.4 webwork version.

Usually on a specific DAO we have something like these...

  public void removePerson(Long id) {
        // object must be loaded before it can be deleted
        getHibernateTemplate().delete(getPerson(id));
    }

Suppose this object is unknowingly reference by other objects and deleting it would throw a hibernate constraint exception.

What would be the best practice for this scenario?

Will it be alright to add a throw clause and catch it in the action?

TIA!
Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to