Java 类org.hibernate.validator.NotNull 实例源码

项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the country
 */
@ManyToOne
@NotNull
@ForeignKey(name = "registrationrequest_country_fk")
public Country getCountry() {
    return country;
}
项目:caarray    文件:Organism.java   
/**
 * @return the term source to which this organism belongs
 */
@ManyToOne(optional = false)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@NotNull
public TermSource getTermSource() {
    return termSource;
}
项目:caarray    文件:TermBasedFactorValue.java   
/**
 * Gets the term.
 *
 * @return the term
 */
@ManyToOne(optional = false)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@ForeignKey(name = "term_fv_term_fk")
@NotNull
public Term getTerm() {
    return term;
}
项目:caarray    文件:Project.java   
/**
 * Gets the workflow status of this project. Hibernate use only
 *
 * @return the true if this project is in a lock box.
 */
@NotNull
@Column(name = "locked")
@AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME)
public boolean isLocked() {
    return this.locked;
}
项目:caarray    文件:Factor.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@NotNull
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@Index(name = "idx_name")
public String getName() {
    return this.name;
}
项目:caarray    文件:Factor.java   
/**
 * Gets the type.
 *
 * @return the type
 */
@ManyToOne
@Cascade(CascadeType.SAVE_UPDATE)
@ForeignKey(name = "factor_type_fk")
@NotNull
public Term getType() {
    return this.type;
}
项目:caarray    文件:Experiment.java   
/**
 * Gets the title.
 *
 * @return the title
 */
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@NotNull
@Index(name = "idx_title")
@AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME)
public String getTitle() {
    return this.title;
}
项目:caarray    文件:Experiment.java   
/**
 * Gets the organism for this Experiment.
 *
 * @return the organism
 */
@ManyToOne
@ForeignKey(name = "experiment_organism_fk")
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@NotNull
@AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME)
public Organism getOrganism() {
    return this.organism;
}
项目:caarray    文件:ArrayDesign.java   
/**
 * Gets the technologyType.
 * 
 * @return the technologyType
 */
@NotNull
@ManyToOne
@Cascade(CascadeType.SAVE_UPDATE)
@ForeignKey(name = "arraydesign_technology_fk")
public Term getTechnologyType() {
    return this.technologyType;
}
项目:caarray    文件:ArrayDesign.java   
/**
 * Gets the provider.
 * 
 * @return the provider
 */
@NotNull
@ManyToOne
@Cascade(CascadeType.SAVE_UPDATE)
@ForeignKey(name = "arraydesign_provider_fk")
public Organization getProvider() {
    return this.provider;
}
项目:caarray    文件:ArrayDesign.java   
/**
 * @return the designFiles
 */
@NotNull
@Size(min = 1)
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "array_design_design_file", joinColumns = @JoinColumn(name = "array_design"),
    inverseJoinColumns = @JoinColumn(name = "design_file"))
@ForeignKey(name = "array_design_fk", inverseName = "design_file_fk")
@Cascade(org.hibernate.annotations.CascadeType.ALL)
public Set<CaArrayFile> getDesignFiles() {
    return this.designFiles;
}
项目:caarray    文件:ArrayDesign.java   
/**
 * Gets the assay type for this Experiment.
 * 
 * @return the assay type
 */
@ManyToMany(fetch = FetchType.LAZY)
@JoinColumn(name = "array_design")
@ForeignKey(name = "array_design_assaytypes_ad_fk", inverseName = "array_design_assaytypes_at_fk")
@AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME)
@Sort(type = SortType.NATURAL)
@NotNull
@Size(min = 1)
@BatchSize(size = AbstractCaArrayObject.DEFAULT_BATCH_SIZE)
public SortedSet<AssayType> getAssayTypes() {
    return this.assayTypes;
}
项目:caarray    文件:ArrayDesign.java   
/**
 * @return the organism
 */
@NotNull
@ManyToOne
@Cascade(CascadeType.SAVE_UPDATE)
@ForeignKey(name = "arraydesign_organism_fk")
public Organism getOrganism() {
    return this.organism;
}
项目:caarray    文件:Protocol.java   
/**
 * Gets the type.
 *
 * @return the type
 */
@ManyToOne
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@ForeignKey(name = "protocol_type_fk")
@NotNull
public Term getType() {
    return this.type;
}
项目:caarray    文件:Protocol.java   
/**
 * @return the source
 */
@ManyToOne
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@ForeignKey(name = "protocol_term_source_fk")
@NotNull
public TermSource getSource() {
    return this.source;
}
项目:caarray    文件:TermBasedParameterValue.java   
/**
 * Gets the term.
 *
 * @return the term
 */
@ManyToOne(optional = false)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@ForeignKey(name = "term_pv_term_fk")
@NotNull
public Term getTerm() {
    return term;
}
项目:caarray    文件:Parameter.java   
/**
 * @return the protocol
 */
@ManyToOne
@JoinColumn(updatable = false)
@ForeignKey(name = "parameter_protocol_fk")
@NotNull
public Protocol getProtocol() {
    return this.protocol;
}
项目:caarray    文件:AbstractArrayData.java   
/**
 * Gets the dataFile.
 *
 * @return the dataFile
 */
@OneToOne
@JoinColumn(name = "data_file", unique = true)
@NotNull
@Cascade({CascadeType.SAVE_UPDATE, CascadeType.DELETE })
@ForeignKey(name = "arraydata_file_fk")
public CaArrayFile getDataFile() {
    return dataFile;
}
项目:caarray    文件:Term.java   
/**
 * Gets the source.
 *
 * @return the source
 */
@ManyToOne(optional = false)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@NotNull(message = "{term.source.notNull}")
public TermSource getSource() {
    return this.source;
}
项目:caarray    文件:Category.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@NotNull
public String getName() {
    return name;

}
项目:caarray    文件:Category.java   
/**
 * @return the term source to which this category belongs
 */
@ManyToOne(optional = false)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@NotNull
public TermSource getSource() {
    return source;
}
项目:caarray    文件:AuditLogSecurity.java   
/**
 * @return the audit log record to which this security object applies.
 */
@NotNull
@OneToOne
@JoinColumn(name = "record")
@ForeignKey(name = "audit_security_record_fk")
public AuditLogRecord getRecord() {
    return record;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the firstName
 */
 @Column(length = FIRST_NAME_FIELD_LENGTH)
 @NotNull
 @Length(min = 1, max = FIRST_NAME_FIELD_LENGTH)
public String getFirstName() {
    return firstName;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the lastName
 */
@Column(length = LAST_NAME_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = LAST_NAME_FIELD_LENGTH)
public String getLastName() {
    return lastName;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the emaiId
 */
@Column(length = EMAIL_FIELD_LENGTH)
@NotNull
@Email
@Length(min = 1, max = EMAIL_FIELD_LENGTH)
public String getEmail() {
    return email;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the phone
 */
@Column(length = PHONE_NUMBER_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = PHONE_NUMBER_FIELD_LENGTH)
@Pattern(regex = "(\\+)?([-\\._\\(\\) ]?[\\d]{3,20}[-\\._\\(\\) ]?){2,10}")
public String getPhone() {
    return phone;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the organization
 */
@Column(length = ORGANIZATION_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = ORGANIZATION_FIELD_LENGTH)
public String getOrganization() {
    return organization;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the address1
 */
@Column(length = ADDRESS1_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = ADDRESS1_FIELD_LENGTH)
public String getAddress1() {
    return address1;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the city
 */
@Column(length = CITY_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = CITY_FIELD_LENGTH)
public String getCity() {
    return city;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the zip
 */
@Column(length = ZIP_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = ZIP_FIELD_LENGTH)
public String getZip() {
    return zip;
}
项目:caarray    文件:AbstractBioMaterial.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@NotNull
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@Index(name = "idx_name")
public String getName() {
    return this.name;
}
项目:caarray    文件:AbstractCharacteristic.java   
/**
 * @return the category for this characteristic
 */
@ManyToOne(optional = false)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@NotNull
public Category getCategory() {
    return category;
}
项目:caarray    文件:TermBasedCharacteristic.java   
/**
 * Gets the term.
 *
 * @return the term
 */
@ManyToOne(optional = false, fetch = FetchType.LAZY)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@ForeignKey(name = "characteristic_term_term_fk")
@NotNull
public Term getTerm() {
    return term;
}
项目:caarray    文件:CaArrayFile.java   
/**
 * @return the dataHandle
 */
@Column(length = DEFAULT_STRING_COLUMN_SIZE)
@NotNull
@Index(name = "idx_handle")
@Type(type = "uri")
public URI getDataHandle() {
    return this.dataHandle;
}
项目:windup    文件:Booking.java   
@NotNull(message="Credit card number is required")
@Length(min=16, max=16, message="Credit card number must 16 digits long")
@Pattern(regex="^\\d*$", message="Credit card number must be numeric")
public String getCreditCard()
{
   return creditCard;
}
项目:windup-rulesets    文件:ShipAction.java   
@NotNull
@Length(min=4,max=10)
public String getTrack() {
    return track;
}
项目:TransitDataFeeder    文件:UserAccount.java   
@NotNull
@UserPrincipal
public String getUsername() {
    return username;
}
项目:spring-rich-client    文件:ExceptionHandlingView.java   
@NotNull
public String getName() {
    return name;
}
项目:spring-richclient    文件:ExceptionHandlingView.java   
@NotNull
public String getName() {
    return name;
}
项目:caarray    文件:Organism.java   
/**
 * @return the scientificName
 */
@NotNull
@Length(min = 1, max = AbstractCaArrayObject.DEFAULT_STRING_COLUMN_SIZE)
public String getScientificName() {
    return scientificName;
}