Este conteúdo não está disponível no idioma selecionado.
Chapter 4. Persistent Classes
4.1. About Persistent Classes Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
Persistent classes are classes in an application that implement the entities of the business problem (e.g. Customer and Order in an E-commerce application). Not all instances of a persistent class are considered to be in the persistent state. For example, an instance can instead be transient or detached.
Hibernate works best if these classes follow some simple rules, also known as the Plain Old Java Object (POJO) programming model. However, none of these rules are hard requirements. Indeed, Hibernate3 assumes very little about the nature of your persistent objects. You can express a domain model in other ways (using trees of
Map
instances, for example).