Saturday, August 20, 2016

HIBERNATE: Hibernate.cfg.xml Correct Settings

Click to Zoom In


  • show_sql decides whether or not to display the SQL queries inside console during execution. Possible values are create and update.
  • If set to create, that will drop the previous schema every time the program is executed. If set to update, the previous schema will be completely ignored in case the entity has changed or if no changes, then will simply use the same schema for CRUD operations.
  • Also, it is necessary to mention all the entity classes here as done in the last block. These mapping are necessary to keep track of the entities.

No comments:

Post a Comment