An embeddable type is another form of value type, and its lifecycle is bound to a parent entity type, therefore inheriting the attribute access(see Access strategies) from its parent

旧版 Hibernate 将 embeddable types 称为 components, JPA 称为 embeddables

Embeddable types can be made up of basic values as well as associations, with the caveat that, when used as collection elements, they cannot define collections themselves.

embeddable types 可以由 basic value 以及 associations 组成。如果用作 collection elements 则不能定义 collections (Embeddable types can be made up of basic values as well as associations, with the caveat that, when used as collection elements, they cannot define collections themselves.)

results matching ""

    No results matching ""