exception « DAO « JPA Q&A





1. throwing meaningful exceptions from hibernate DAO implementation    stackoverflow.com

In my web application(jsp+hibernate+hsqldb on tomcat) code, I am using couple of Dao implementations.The base class Dao implementation contains all the session open,close logic.A number of domain specific Dao classes extend ...

2. Exceptions catching in DAO    forum.hibernate.org

I have a table MOVIE in my database. I have made Movie class which implements serializable and Movie.hbm.xml. I have defined 2 exceptions: InfrastructureException (for Hiberante Session Layer) and DAOException (for DAO Layer). I have build the HibernateSession class in the same way as the caveatemptor example. I am throwing the Infrastructure exception whenever an excpetion is caught in it. Now ...