Hello everyone!
I was wondering of generic MappedSuperclasses are supported. I saw an old post saying they were not but it was from 10 years ago so I was wondering if that changed.
What I am trying to do:
I have this MappedSuperclass
@MappedSuperclass
public abstract class LongIDTimestampedEntity<I> extends TimestampedEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false, updatable = false)
private Long underlyingId;
@Convert(converter = LongIDAttributeConverter.class)
@Column(name = "id", nullable = false, insertable = false, updatable = false)
private LongID<I> id;
But when I try to use it like this:
@Entity
@Table(name = Constants.TableNames.SELECTION_ENGINE_CONTEXT)
public class EntitySelectionEngineContext
extends LongIDTimestampedEntity<SelectionEngineContext>
implements SelectionEngineContext {
The generated query entity is trying to import I instead of using SelectionEngineContext.
So is this supported? If so, what am I doing wrong? If not, are there any plans to support it in the future?
Thank you in advance!