Saving Object by using Hibernate API:
If you are using Hibernate's proprietary API, you'll need the
hibernate.cfg.xml. If you are using JPA i.e. Hibernate EntityManager,
you'll need the persistence.xml.
Retrieving Objects using session.get
Use annotation @GeneratedValue
Embbeded Object
Saving Collections
Configuring Collections and adding primary key
Eager or Lazy fetch type.
Merge remote-tracking branch 'choose_remote_name/master'