wood burning stoves 2.0*
The moose likes JDBC and the fly likes DB errors + hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB errors + hibernate" Watch "DB errors + hibernate" New topic

DB errors + hibernate

Vadim javasd

Joined: Sep 16, 2011
Posts: 1
I create desktop application. I work with database using hibernate and Netbeans. For example method which delete object from database.

Tell me please how to handle errors when working with a database to display user messages like: "The object has already been removed" or "Record already exists" or "No database connection".

P.S. Sorry for my English.
It is sorta covered in the JavaRanch Style Guide.
subject: DB errors + hibernate
Similar Threads
Object doesn't equal proxy, I think
How to persist objects having circular references using Hibernate
Confusion on equals() method
Hibernate: long-lived session
okay what am i doing wrong?