Saturday, 27 August 2016

How hibernate works


Or what it can do? Hibernate, residing on the application layer, supporting business logic.
  • Mapping Java classes (Entity) with Tables in database. 
  • Mapping entity instances within table entries. 
  • Mapping an entity property within table fields
  • Implementing persistence crude operations, and hiding complexity of SQL.  
  • Maintain transactions
  • Maintain dirty checking
Hibernate  manages how database connected, and data persisted via Entity manager. So for setting/configuring hibernate, "persistence.xml" is critical, which tells database URL, name, password, and mapping classes, and it may describe more than one database connection. One entity manager corresponds to one persistence unit. 




No comments:

Can Jackson Deserialize Java Time ZonedDateTime

Yes, but must include JSR310. Thus ZonedDateTime can be deserialized directly from JSON response to POJO field. <dependency> <g...