I want to create an annotated class similar to that:
@Entity
@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class SeriesMonitoringPointsTable {
@Id
@Column(name = ID, nullable = false)
private Long id;
public void setId( Long id ) {
this.id = id;
}
}
In this class I would like to create an Id column as clustered index. Is such thing possible with annotations or hibernate at all?
To my knowledge, it’s not possible (although this is the default behavior on the PK with MS SQL Server as reported in issues like HHH-2377 or HHH-3305).