I am using Spring and Hibernate in combination .
How can i handle the situation where i need to manually throw an exception inside the DAO Layer .
say for example if a Record already exists i need to throw RecordAlreadyExistsException .
I am using Spring and Hibernate in combination .
How can i handle the situation where i need to manually throw an exception inside the DAO Layer .
say for example if a Record already exists i need to throw RecordAlreadyExistsException .