Object/relational mapping metadata

You now have persistent classes that meet Hibernate requirements for persistence. To do its job, Hibernate (or any other object/relational mapping tool) needs information about the persistent classes and the target database tables in which the objects are persisted. It needs detailed information about the mapping of object properties to and from table columns, and of Java types to and from SQL types. It may require additional information about establishing foreign keys when the persistent class is associated with other(s). This is typical information that object/relational mapping tools need. Moreover, Hibernate provides features, such as lazy loading, cascading, caching, and others, that must be configured. ...

Get Spring Persistence with Hibernate now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.