4.3. Class mapping options

If you check the <hibernate-mapping> and <class> elements in the DTD (or the reference documentation), you'll find a few options we haven't discussed so far:

  • Dynamic generation of CRUD SQL statements

  • Entity mutability control

  • Naming of entities for querying

  • Mapping package names

  • Quoting keywords and reserved database identifiers

  • Implementing database naming conventions

4.3.1. Dynamic SQL generation

By default, Hibernate creates SQL statements for each persistent class on startup. These statements are simple create, read, update, and delete operations for reading a single row, deleting a row, and so on.

How can Hibernate create an UPDATE statement on startup? After all, the columns to be updated aren't known at this time. ...

Get Java Persistence with Hibernate now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.