Mapping Inheritance Hierarchies in Hibernate with JPA Annotations
MappedSuperclass Strategy
The @MappedSuperclass annotation allows you to map common properties to a base class without creating a corresponding table for the base class itself. The parent class attributes are not persisted directly.
package com.example.entity;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class P ...
Posted on Sun, 01 Nov 2026 16:27:10 +0000 by soshea