/** * * @author Francesco Cina' * * 26/ago/2011 */ public class AutoId { @Id @Generator(generatorType = GeneratorType.AUTOGENERATED, name="", ifValueIn= {-1}) private int id = -1; private String value; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
/** * * @author Francesco Cina' * * 26/ago/2011 */ public class AutoId { @Id @Generator(generatorType = GeneratorType.AUTOGENERATED_FALLBACK_SEQUENCE, name="seq_auto_id") private int id = -1; private String value; public int getId() { return id; } public void setId(final int id) { this.id = id; } public String getValue() { return value; } public void setValue(final String value) { this.value = value; } }
/** * * @author Francesco Cina' * * 26/ago/2011 */ public class AutoId { @Id @Generator(generatorType = GeneratorType.AUTOGENERATED, name="", ifValueIn= {-1}) private int id = -1; private String value; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
/** * * @author Francesco Cina' * * Apr 1, 2012 */ public class BeanWithValuesGenerator { @Id @Generator(generatorType = GeneratorType.SEQUENCE, name = "SEQ_BLOBCLOB", ifValueIn={12l,15l}) @Column(name = "ID") long index; }
/** * * @author Francesco Cina' * * Apr 1, 2012 */ public class BeanWithValuesGenerator { @Id @Generator(generatorType = GeneratorType.SEQUENCE, name = "SEQ_BLOBCLOB", ifValueIn={12l,15l}) @Column(name = "ID") long index; }
@Table(tableName="USER_COUNTRY") public class UserCountry { @Id @Generator(generatorType=GeneratorType.AUTOGENERATED_FALLBACK_SEQUENCE, name="SEQ_USER_COUNTRY") private Long id; private String name; public String getName() { return name; } public void setName(final String name) { this.name = name; } public Long getId() { return id; } public void setId(final Long id) { this.id = id; } }
/** * * @author Francesco Cina' * * 26/ago/2011 */ @Table(tableName="AUTO_ID") public class AutoIdInteger { @Id //NOTE: do not add the ifValueIn for this object!! That could produce false test results!! @Generator(generatorType = GeneratorType.AUTOGENERATED, name="") private Integer id; private String value; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
@Generator(generatorType = GeneratorType.SEQUENCE, name = "SEQ_BLOBCLOB") private long id;
/** * * @author Francesco Cina' * * 26/ago/2011 */ @Table(tableName="AUTO_ID") public class AutoIdInteger { @Id @Generator(generatorType = GeneratorType.AUTOGENERATED_FALLBACK_SEQUENCE, name="seq_auto_id") private Integer id; private String value; public Integer getId() { return id; } public void setId(final Integer id) { this.id = id; } public String getValue() { return value; } public void setValue(final String value) { this.value = value; } }
/** * * @author Francesco Cina' * * 26/ago/2011 */ @Table(name="AUTO_ID") public class AutoIdInteger { @Id //NOTE: do not add the ifValueIn for this object!! That could produce false test results!! @Generator(generatorType = GeneratorType.AUTOGENERATED, name="") private Integer id; private String value; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
@Generator(generatorType = GeneratorType.AUTOGENERATED, name="") private int id; private String data;
@Generator(generatorType = GeneratorType.SEQUENCE, name = "SEQ_BLOBCLOB") private long id;
@Generator(generatorType = GeneratorType.SEQUENCE, name = "SEQ_BLOBCLOB") private long id;
@Generator(generatorType=GeneratorType.AUTOGENERATED_FALLBACK_SEQUENCE, name="SEQ_USER_JOB_TASK") private Long id; @FK(references=UserJob.class)
@Generator(generatorType = GeneratorType.SEQUENCE, name = "SEQ_BLOBCLOB") @Column(name = "ID") private long index;
@Generator(generatorType = GeneratorType.SEQUENCE, name = "SEQ_BLOBCLOB") @Column(name = "ID") private long index;
@Generator(generatorType = GeneratorType.AUTOGENERATED, name="") private int id; private String data;
@Generator(generatorType = GeneratorType.AUTOGENERATED, name="") private int id; private String data;
@Generator(generatorType = GeneratorType.AUTOGENERATED_FALLBACK_SEQUENCE, name="seq_data_version_int") private int id = -1; private String data;
@Generator(generatorType = GeneratorType.SEQUENCE_FALLBACK_AUTOGENERATED, name = "SEQ_BLOBCLOB") private long id = -1l;