Java Code Examples for javax.persistence.Column

The following examples show how to use javax.persistence.Column. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: youkefu   Source File: WorkTime.java    License: Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example 2
Source Project: pikatimer   Source File: RaceReport.java    License: GNU General Public License v3.0 5 votes vote down vote up
@Id
@GenericGenerator(name="race_outputs_id" , strategy="increment")
@GeneratedValue(generator="race_outputs_id")
@Column(name="ID")
public Integer getID() {
    return IDProperty.getValue(); 
}
 
Example 3
Source Project: pikatimer   Source File: AwardCategory.java    License: GNU General Public License v3.0 5 votes vote down vote up
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(
      name="race_award_category_subdivide_list",
      [email protected](name="ac_id")
)
@Column(name="attribute")
protected Set<String> getSubDivideList(){
    return splitBy;
}
 
Example 4
Source Project: uyuni   Source File: ImageProfile.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * @return the profileId
 */
@Id
@Column(name = "profile_id")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "imgprof_seq")
@SequenceGenerator(name = "imgprof_seq", sequenceName = "suse_imgprof_prid_seq",
                   allocationSize = 1)
public Long getProfileId() {
    return profileId;
}
 
Example 5
@Column
/**
 * @return the result
 */
public boolean isResult()
{
  return result;
}
 
Example 6
Source Project: aws-photosharing-example   Source File: User.java    License: Apache License 2.0 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.TABLE)
@Column(name="user_id")
public Long getId() {return id;}
 
Example 7
Source Project: lemon   Source File: UserBase.java    License: Apache License 2.0 4 votes vote down vote up
/** @return null. */
@Column(name = "SCOPE_ID", length = 50)
public String getScopeId() {
    return this.scopeId;
}
 
Example 8
Source Project: jeewx   Source File: CgformEnhanceJsEntity.java    License: Apache License 2.0 4 votes vote down vote up
/**
 *方法: 取得byte[]
 *@return: byte[]  增强js
 */
@Column(name ="CG_JS",nullable=true,length=65535)
public byte[] getCgJs(){
	return this.cgJs;
}
 
Example 9
Source Project: mycore   Source File: MCRUserAttribute.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Column(name = "name", length = 128, nullable = false)
@XmlAttribute
public String getName() {
    return name;
}
 
Example 10
Source Project: projectforge-webapp   Source File: PFUserDO.java    License: GNU General Public License v3.0 4 votes vote down vote up
/**
 * A deactivated user has no more system access.
 * @return the deactivated
 */
@Column(nullable = false)
public boolean isDeactivated()
{
  return deactivated;
}
 
Example 11
Source Project: lemon   Source File: SysEntry.java    License: Apache License 2.0 4 votes vote down vote up
/** @return 主键. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
    return this.id;
}
 
Example 12
Source Project: zevencourse   Source File: Teacher.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Basic
@Column(name = "gender", nullable = false)
public byte getGender() {
    return gender;
}
 
Example 13
Source Project: lemon   Source File: StoreApp.java    License: Apache License 2.0 4 votes vote down vote up
/** @return null. */
@Column(name = "GROUP_NAME", length = 200)
public String getGroupName() {
    return this.groupName;
}
 
Example 14
Source Project: pikatimer   Source File: TimeOverride.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Column(name="note")
public String getNote() {
    return noteStringProperty.getValueSafe();
}
 
Example 15
Source Project: bamboobsc   Source File: BbKpi.java    License: Apache License 2.0 4 votes vote down vote up
@Column(name="QUASI_RANGE")
public int getQuasiRange() {
	return quasiRange;
}
 
Example 16
Source Project: wangmarket   Source File: SiteColumn.java    License: Apache License 2.0 4 votes vote down vote up
@Column(name = "template_page_view_name")
public String getTemplatePageViewName() {
	return templatePageViewName;
}
 
Example 17
Source Project: lemon   Source File: AssetRequestInfo.java    License: Apache License 2.0 4 votes vote down vote up
/** @return 多租户. */
@Column(name = "TENANT_ID", length = 64)
public String getTenantId() {
    return this.tenantId;
}
 
Example 18
Source Project: wangmarket   Source File: Role.java    License: Apache License 2.0 4 votes vote down vote up
@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "id", unique = true, nullable = false)
public Integer getId() {
	return id;
}
 
Example 19
Source Project: Spring-MVC-Blueprints   Source File: Semester.java    License: MIT License 4 votes vote down vote up
@Id
@Column(name = "semester", unique = true, nullable = false)
public int getSemester() {
	return this.semester;
}
 
Example 20
Source Project: bamboobsc   Source File: TbSysFormMethod.java    License: Apache License 2.0 4 votes vote down vote up
@Column(name="RESULT_TYPE")
public String getResultType() {
	return resultType;
}
 
Example 21
Source Project: jeewx   Source File: JeecgBlobDataEntity.java    License: Apache License 2.0 4 votes vote down vote up
/**
 *方法: 取得java.lang.Object
 *@return: java.lang.Object  note
 */
@Column(name ="NOTE",nullable=true,length=65535)
public java.lang.String getNote(){
	return this.note;
}
 
Example 22
Source Project: lemon   Source File: VehicleTask.java    License: Apache License 2.0 4 votes vote down vote up
/** @return null. */
@Column(name = "TYPE", length = 50)
public String getType() {
    return this.type;
}
 
Example 23
Source Project: lemon   Source File: PimNote.java    License: Apache License 2.0 4 votes vote down vote up
/** @return null. */
@Column(name = "CONTENT", length = 200)
public String getContent() {
    return this.content;
}
 
Example 24
Source Project: jeecg   Source File: JformOrderCustomerEntity.java    License: Apache License 2.0 4 votes vote down vote up
/**
 *方法: 取得java.lang.String
 *@return: java.lang.String  电话
 */

@Column(name ="TELPHONE",nullable=true,length=32)
public java.lang.String getTelphone(){
	return this.telphone;
}
 
Example 25
Source Project: lemon   Source File: ExpenseInfo.java    License: Apache License 2.0 4 votes vote down vote up
/** @return null. */
@Column(name = "HEAD_COUNT")
public Integer getHeadCount() {
    return this.headCount;
}
 
Example 26
Source Project: jeecg   Source File: TSDictTableConfigEntity.java    License: Apache License 2.0 4 votes vote down vote up
/**
 *方法: 取得java.lang.String
 *@return: java.lang.String  创建人登录名称
 */

@Column(name ="CREATE_BY",nullable=true,length=50)
public java.lang.String getCreateBy(){
	return this.createBy;
}
 
Example 27
Source Project: cia   Source File: LanguageData.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * Gets the value of the modelObjectVersion property.
 * 
 */
@Version
@Column(name = "MODEL_OBJECT_VERSION")
public int getModelObjectVersion() {
    return modelObjectVersion;
}
 
Example 28
Source Project: celerio-angular-quickstart   Source File: Book.java    License: Apache License 2.0 4 votes vote down vote up
@NotEmpty
@Size(max = 100)
@Column(name = "TITLE", nullable = false, length = 100)
public String getTitle() {
    return title;
}
 
Example 29
Source Project: Spring-MVC-Blueprints   Source File: CustomerAccount.java    License: MIT License 4 votes vote down vote up
@Column(name = "mobile", nullable = false, length = 45)
public String getMobile() {
	return this.mobile;
}
 
Example 30
Source Project: bamboobsc   Source File: BbKpiOrga.java    License: Apache License 2.0 4 votes vote down vote up
@Override
@Column(name="CUSERID")
public String getCuserid() {
	return this.cuserid;
}