Skip to Main Content
Java Persistence with Hibernate
book

Java Persistence with Hibernate

by Gavin King, Christian Bauer
October 2006
Intermediate to advanced content levelIntermediate to advanced
880 pages
22h 11m
English
Manning Publications
Content preview from Java Persistence with Hibernate

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. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Persistence with Hibernate, Second Edition

Java Persistence with Hibernate, Second Edition

Christian Bauer, Gary Gregory
Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs

Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs

Mike Keith, Merrick Schincariol, Massimo Nardone
Beginning Hibernate 6: Java Persistence from Beginner to Pro

Beginning Hibernate 6: Java Persistence from Beginner to Pro

Joseph B. Ottinger, Jeff Linwood, Dave Minter

Publisher Resources

ISBN: 9781932394887Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link