In the broadest sense, Hibernate categorizes types into two groups:
Value types
Entity types
2.1.1. Value types
Value types are further classified into three sub-categories:
Basic type 基本类型
in mapping the Contact
table, all attributes except for name would be basic types. Basic types are discussed in detail in Basic Types
Embeddable types 对象/包装类型
the name attribute is an example of an embeddable type, which is discussed in details in Embeddable Types
Collection types 集合类型
although not featured in the aforementioned example, collection types are also a distinct category among value types. Collection types are further discussed in Collections
Hibernate ORM 5.1 User Guide
原文地址:http://www.cnblogs.com/rocker-pg/p/7719620.html