MappedSuperclass support for embeddable types

Description

Tentatively scheduling for 5.4

Hibernate already supports defining inheritance within @Embedddable hierarchies using @MapppedSuperclass. E.g., this works:

In other words, using the mapping above, the `CreditCardPayment` embeddable is understood to contain the `amount` attribute.

However, the following does not currently work:

IMO this should work as well.

Note that there is a "work around":

Activity

Show:

Marco BelladelliMay 16, 2024 at 6:59 AM

This is now supported through discriminator-based inheritance implemented by . The @Embeddable supertype doesn't need to be annotated @MappedSuperclass.

Fixed

Details

Assignee

Reporter

Priority

Created July 10, 2018 at 5:08 PM
Updated May 16, 2024 at 6:59 AM
Resolved May 16, 2024 at 6:59 AM