Granularity refers to the relative size of object you’re working with
In object-relational mapping products, the ability to directly manipulate data stored in a relational database using an object programming language is called transparent persistence
Properties can be configured using either file,i.e. hibernate.cfg.xml or hibernate.properties.If the same properties are specified in both the files the xml will take precedence
The five core interfaces are used in every Hibernate application.Using these interfaces, one can store and retrieve persistent objects and control transaction
The five core interfaces are used in every Hibernate application.Using these interfaces, one can store and retrieve persistent objects and control transaction
Persistent classes are classes in an application that implement the entities of the business problem (e.g. Customer and Order in an E-commerce application)
Transient instances may be made persistent by calling save(), persist() or saveOrUpdate(). Persistent instances may be made transient by calling delete(). Any instance returned by a get() or load() method is persistent. Detached instances may be made persistent by calling update(), saveOrUpdate(), lock() or replicate(). The state of a transient or detached instance may also be made persistent as a new persistent instance by calling merge(). save() and persist() result in an SQL INSERT, delete() in an SQL DELETE and update() or merge() in an SQL UPDATE. Changes to persistent instances are detected at flush time and also result in an SQL UPDATE. saveOrUpdate() and replicate() result in either an INSERT or an UPDATE
A polymorphic association is an association that may refer to instances of a subclass of the class that was explicitly specified in the mapping metadata. E.g. There could be a one to many relationship between a User and BillDetail entity, where BillDetail is an abstract class having subclasses CreditCard or Cheque