Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.1
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Is there a way to find out if an object is attached to some other object? When I intend to delete an object that is attached to an other object I get an exception, but I need to find out this befor to initiate deletion. Also I'm not able to find out this thru HQL or Criteria because at runtime I don't know the class on which my object can be attached.
thanks