Category Archives: Hibernate

About Hibernate inverse=”true” or inverse=”false” attribute

Java  Parent.java package javafiles;   import java.util.Set;   publicclass Parent { privateintid; private String name; private Set children; publicint getId() { returnid; } publicvoid setId(int id) { this.id = id; } public String getName() { returnname; } publicvoid setName(String name) … Continue reading

Posted in Hibernate | Leave a comment

HIBERNATE flush(), commit(), clear() methods

  About Hibenate flush(), commit() and clear() methods The flush process synchronizes database state with session state by detecting state changes and executing SQL statements. flush() sends SQL instructions to the database like INSERT, UPDATE etc. It will not send … Continue reading

Posted in Hibernate | Leave a comment