1

我想创建一个类似的带注释的类:

@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;
    }

}

在这个类中,我想创建一个 Id 列作为聚集索引。注释或休眠是否有可能?

4

1 回答 1

2

据我所知,这是不可能的(尽管这是在HHH-2377HHH-3305等问题中报告的带有 MS SQL Server 的 PK 上的默认行为)。

于 2010-10-12T07:51:06.207 回答