/** * * @author Francesco Cina * * 08/giu/2011 */ @Table( schemaName = "SCHEMA_NAME") public class AnnotationBean2 { @Id private String index; public long columnNotAnnotated; @Id protected Object columnNotAnnotated2; public String getIndex() { return this.index; } public void setIndex(final String index) { this.index = index; } }
/** * * @author Francesco Cina * * 08/giu/2011 */ @Schema( name = "SCHEMA_NAME") public class AnnotationBean2 { @Id private String index; public long columnNotAnnotated; @Id protected Object columnNotAnnotated2; public String getIndex() { return index; } public void setIndex(String index) { this.index = index; } }
/** * * @author Francesco Cina * * 08/giu/2011 */ @Table(tableName = "ANNOTATION_TABLE_NAME" , schemaName = "SCHEMA_NAME") public class AnnotationBean3 { @Id private String index; public long columnNotAnnotated; @Id @Column(name = "ANNOTATION_COLUMN_NAME") Object columnAnnotated; public String getIndex() { return this.index; } public void setIndex(final String index) { this.index = index; } }
/** * * @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; }
/** * * @author Francesco Cina * * 08/giu/2011 */ @Table(name = "ANNOTATION_TABLE_NAME") @Schema( name = "SCHEMA_NAME") public class AnnotationBean3 { @Id private String index; public long columnNotAnnotated; @Id @Column(name = "ANNOTATION_COLUMN_NAME") Object columnAnnotated; public String getIndex() { return index; } public void setIndex(String index) { this.index = 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 * * 08/giu/2011 */ @Table(tableName = "ANNOTATION_TABLE_NAME") public class AnnotationBean1 { @Id private String index; public long columnNotAnnotated; @Column(name = "ANNOTATION_COLUMN_NAME") Object columnAnnotated; public String getIndex() { return this.index; } public void setIndex(final String index) { this.index = index; } }
/** * * @author Francesco Cina * * 08/giu/2011 */ @Table(name = "ANNOTATION_TABLE_NAME") public class AnnotationBean1 { @Id private String index; public long columnNotAnnotated; @Column(name = "ANNOTATION_COLUMN_NAME") Object columnAnnotated; public String getIndex() { return index; } public void setIndex(String index) { this.index = index; } }
/** * * @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; } }
/** * * @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; } }
private String clob; @Id @Generator(generatorType = GeneratorType.SEQUENCE, name = "SEQ_BLOBCLOB") private long id;
/** * * @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; } }
public class DataVersionWithoutGenerator { @Id private int id; private String data;
public class DataVersionJodaDatetime { @Id @Generator(generatorType = GeneratorType.AUTOGENERATED, name="") private int id;
public class UserJobTask { @Id @Generator(generatorType=GeneratorType.AUTOGENERATED_FALLBACK_SEQUENCE, name="SEQ_USER_JOB_TASK") private Long id;
private Reader clobReader; @Id @Generator(generatorType = GeneratorType.SEQUENCE_FALLBACK_AUTOGENERATED, name = "SEQ_BLOBCLOB") private long id = -1l;