I have created an abstract RevisionEntity with @GeneratedValue depends on sequence
@MappedSuperclass
public class MyDefaultRevisionEntity implements Serializable {
private static final long serialVersionUID = -8404582037485802857L;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "idgen")
@RevisionNumber
private int id;
I want created specif subclass how determinate the sequencegenerator (in specific schema)
@Entity
@RevisionEntity
@Table(name = "revinfo", schema = "revision")
@SequenceGenerator(name = "idgen", sequenceName = "revinfo_sequence", schema = "revision")
public class SampleRevisionEntity extends MyDefaultRevisionEntity {
But the hibernate schema update create the sequence into "public" schema but not into "revision" schema.
|