Refine search
@Entity @Table(name="PRODUCT_OPTION_DESC", schema=SchemaConstant.SALESMANAGER_SCHEMA, uniqueConstraints={ @UniqueConstraint(columnNames={ "PRODUCT_OPTION_ID", @JoinColumn(name = "PRODUCT_OPTION_ID", nullable = false) private ProductOption productOption; @Column(name="PRODUCT_OPTION_COMMENT") @Type(type = "org.hibernate.type.TextType") private String productOptionComment;
public void setExplicitType(Type typeAnn) { if ( typeAnn != null ) { explicitType = typeAnn.type(); typeParameters.clear(); for ( Parameter param : typeAnn.parameters() ) { typeParameters.setProperty( param.name(), param.value() ); } } }
/** * @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; } }
@Type(type = "caster") public String getSmallText() { return smallText; }
simpleValue.setColumns( idColumns ); Type typeAnn = collectionIdAnn.type(); if ( typeAnn != null && !BinderHelper.isEmptyAnnotationValue( typeAnn.type() ) ) { simpleValue.setExplicitType( typeAnn );
@org.hibernate.annotations.Type(type="serializable_image") public Dog getDog() { return dog; }
simpleValue.setColumns( idColumns ); Type typeAnn = collectionIdAnn.type(); if ( typeAnn != null && !BinderHelper.isDefault( typeAnn.type() ) ) { simpleValue.setExplicitType( typeAnn );
@Entity @Table(name="CUSTOMER_OPTION_DESC", schema=SchemaConstant.SALESMANAGER_SCHEMA, uniqueConstraints={ @UniqueConstraint(columnNames={ "CUSTOMER_OPTION_ID", @JoinColumn(name = "CUSTOMER_OPTION_ID", nullable = false) private CustomerOption customerOption; @Column(name="CUSTOMER_OPTION_COMMENT") @Type(type = "org.hibernate.type.TextType") private String customerOptionComment;
@org.hibernate.annotations.Type(type="wrapped_image") public Byte[] getPicByteArray() { return picByteArray; }
public void setExplicitType(Type typeAnn) { if ( typeAnn != null ) { explicitType = typeAnn.type(); typeParameters.clear(); for (Parameter param : typeAnn.parameters()) { typeParameters.setProperty( param.name(), param.value() ); } } }
/** * @see org.projectforge.continuousdb.TableAttributeHook#determineType(java.lang.reflect.AccessibleObject) */ @Override public TableAttributeType determineType(final AccessibleObject annotatedFieldOrMethod) { if (annotatedFieldOrMethod.isAnnotationPresent(org.hibernate.annotations.Type.class)) { final org.hibernate.annotations.Type annotation = annotatedFieldOrMethod.getAnnotation(org.hibernate.annotations.Type.class); final String typePropertyValue = annotation.type(); if ("binary".equals(typePropertyValue) == true) { return TableAttributeType.BINARY; } else if ("org.jadira.usertype.dateandtime.joda.PersistentPeriodAsString".equals(typePropertyValue) == true) { return TableAttributeType.VARCHAR; } else if ("org.jadira.usertype.dateandtime.joda.PersistentDateTime".equals(typePropertyValue) == true) { return TableAttributeType.TIMESTAMP; } } return null; } }
@Entity @Table (name="ORDER_STATUS_HISTORY" , schema=SchemaConstant.SALESMANAGER_SCHEMA) public class OrderStatusHistory implements Serializable { private static final long serialVersionUID = 3438730310126102187L; @Id @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") @JoinColumn(name = "ORDER_ID", nullable = false) private Order order; @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(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; } }
@org.hibernate.annotations.Type(type="image") public byte[] getLongByteArray() { return longByteArray; }
public void setExplicitType(Type typeAnn) { if ( typeAnn != null ) { explicitType = typeAnn.type(); typeParameters.clear(); for ( Parameter param : typeAnn.parameters() ) { typeParameters.setProperty( param.name(), param.value() ); } } }
if (mapKeyAnn != null && ! BinderHelper.isDefault( mapKeyAnn.type().type() ) ) { elementBinder.setExplicitType( mapKeyAnn.type() );