此内容没有您所选择的语言版本。
Chapter 4. Persistent Classes
4.1. About Persistent Classes 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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).