문제

Is it possible for Embeddables to inherit Basic , Transient , OneToOne etc attributes from MappedSuperClass ?

도움이 되었습니까?

해결책

No. A MappedSuperClass designates a class whose mapping information is applied to the entities that inherit from it. Embeddables are not entities.

Also, The JPA specification does not define inheritance for Embeddable objects

The EclipseLink JPA implementation does support inheritance for embeddables (see here for details). Of course, using this functionality is not be portable across JPA implementations.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top