Refine search
@Entity @Table(name="PRODUCT_OPTION_DESC", schema=SchemaConstant.SALESMANAGER_SCHEMA, uniqueConstraints={ @UniqueConstraint(columnNames={ "PRODUCT_OPTION_ID", private ProductOption productOption; @Column(name="PRODUCT_OPTION_COMMENT") @Type(type = "org.hibernate.type.TextType") private String productOptionComment;
/** * @author Andrea Boriero */ @Entity @Inheritance(strategy = InheritanceType.JOINED) public class Mammal extends Animal { @Column(name = "IS_PREGNANT") @Type(type = "numeric_boolean") private boolean isPregnant; public boolean isPregnant() { return isPregnant; } public void setPregnant(boolean isPregnant) { this.isPregnant = isPregnant; } }
@Column(name = "DESCRIPTION_ID") @TableGenerator(name = "TABLE_GEN", table = "SM_SEQUENCER", pkColumnName = "SEQ_NAME", valueColumnName = "SEQ_COUNT", pkColumnValue = "DESCRIPTION_SEQ_NEXT_VAL") @GeneratedValue(strategy = GenerationType.TABLE, generator = "TABLE_GEN") @Column(name="NAME", nullable = false, length=120) private String name; @Column(name="TITLE", length=100) private String title; @Column(name="DESCRIPTION") @Type(type = "org.hibernate.type.TextType") private String description;
@Entity @Table(name="CUSTOMER_OPTION_DESC", schema=SchemaConstant.SALESMANAGER_SCHEMA, uniqueConstraints={ @UniqueConstraint(columnNames={ "CUSTOMER_OPTION_ID", private CustomerOption customerOption; @Column(name="CUSTOMER_OPTION_COMMENT") @Type(type = "org.hibernate.type.TextType") private String customerOptionComment;
@Entity(name="Mtx") public class Matrix { @Id @GeneratedValue @Column(name="mId") private Integer id; @MapKeyType( @Type(type="integer") ) @ElementCollection @Sort(type = SortType.NATURAL) @Type(type = "float") @MapKeyColumn(nullable = false) private SortedMap<Integer, Float> mvalues = new TreeMap<Integer, Float>();
public class AbstractAuditedEntityAsMillis implements AuditedEntity { @Type(type = "com.thinkbiganalytics.jpa.PersistentDateTimeAsMillisLong") @Column(name = "created_time") private DateTime createdTime; @Type(type = "com.thinkbiganalytics.jpa.PersistentDateTimeAsMillisLong") @Column(name = "modified_time") private DateTime modifiedTime;
@Entity @Table (name="ORDER_STATUS_HISTORY" , schema=SchemaConstant.SALESMANAGER_SCHEMA) public class OrderStatusHistory implements Serializable { private static final long serialVersionUID = 3438730310126102187L; @Column ( name="ORDER_STATUS_HISTORY_ID") @TableGenerator(name = "TABLE_GEN", table = "SM_SEQUENCER", pkColumnName = "SEQ_NAME", valueColumnName = "SEQ_COUNT", pkColumnValue = "STATUS_HIST_ID_NEXT_VALUE") @Column(name = "DATE_ADDED", nullable = false) private Date dateAdded; @Column(name = "CUSTOMER_NOTIFIED") private java.lang.Integer customerNotified; @Column(name = "COMMENTS") @Type(type = "org.hibernate.type.TextType") private String comments;
@Entity @Table( name = "ORDER_TABLE" ) @Cache( usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE ) private static class Order { @Id @GeneratedValue( strategy = GenerationType.AUTO ) Long id; @OneToMany List<Product> products = new ArrayList<>(); @OneToMany List<Tag> tags = new ArrayList<>(); @Basic( fetch = FetchType.LAZY ) @Type( type = "org.hibernate.type.BinaryType" ) byte[] data; }
public class AbstractAuditedEntity implements AuditedEntity { @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime") @Column(name = "created_time") private DateTime createdTime; @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime") @Column(name = "modified_time") private DateTime modifiedTime;
@Entity @EntityListeners(value = AuditListener.class) @Table(name = "MERCHANT_LOG", schema= SchemaConstant.SALESMANAGER_SCHEMA) public class MerchantLog extends SalesManagerEntity<Long, MerchantLog> implements Serializable { @Column(name = "MERCHANT_LOG_ID") @TableGenerator(name = "TABLE_GEN", table = "SM_SEQUENCER", pkColumnName = "SEQ_NAME", valueColumnName = "SEQ_COUNT", pkColumnValue = "MOD_CONF_SEQ_NEXT_VAL") @GeneratedValue(strategy = GenerationType.TABLE, generator = "TABLE_GEN") private MerchantStore store; @Column(name="MODULE", length=25, nullable=true) private String module; @Column(name="LOG") @Type(type = "org.hibernate.type.TextType") private String log;
@Entity @TableGenerator(name="ids_generator", table="IDS") public class Passport { @Id @GeneratedValue @Column(name="passport_id") private Long id; private String name; @CollectionId(columns = @Column(name="COLLECTION_ID"), type=@Type(type="long"), generator = "generator") @TableGenerator(name="generator", table="IDSTAMP") private Collection<Stamp> stamps = new ArrayList(); @CollectionId(columns = @Column(name="COLLECTION_ID"), type=@Type(type="long"), generator = "ids_generator")
@Entity(name = "CorporateUser") public static class CorporateUser { @Id private String userName; @Type(type = "comma-separated-array") private Array emailAddresses = new Array(); public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public Array getEmailAddresses() { return emailAddresses; } }