在Hiberante中添加sequence

终于搞定了Hibernate中添加sequence
@Id
@SequenceGenerator(name="SS.SEQ_BASE_LANGUAGE",sequenceName="SS.SEQ_BASE_LANGUAGE",allocationSize=1)
@GeneratedValue(strategy = GenerationType.SEQUENCE,generator="SS.SEQ_BASE_LANGUAGE")
    @Column(name = "ROWID", unique = true, nullable = false)
    public Long getRowid() {
        return this.rowid;
    }

你可能感兴趣的:(Hibernate,职场,sequence,休闲)