Java Code Examples for javax.persistence.Column

The following are top voted examples for showing how to use javax.persistence.Column. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: crypto-exchange   File: EntityInfo.java   Source Code and License 5 votes vote down vote up
static String getSqlType(Field f) {
	String t = typeMapping.get(f.getType());
	if (t != null) {
		return t;
	}
	if (f.getType().equals(String.class)) {
		Column c = f.getAnnotation(Column.class);
		int length = c == null ? 255 : c.length();
		return "VARCHAR(" + length + ")";
	}
	throw new IllegalArgumentException("Unsupported type: " + f.getType().getName() + " of field: " + f.getName());
}
 
Example 2
Project: lemon   File: JavamailConfig.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "RECEIVE_PORT", length = 10)
public String getReceivePort() {
    return this.receivePort;
}
 
Example 3
Project: mzzb-server   File: Disc.java   Source Code and License 4 votes vote down vote up
@Column(name = "release_date")
public Date getRelease() {
    return release;
}
 
Example 4
Project: sjk   File: MonApp.java   Source Code and License 4 votes vote down vote up
@Column(name = "ApkId", nullable = false)
public int getApkId() {
    return this.apkId;
}
 
Example 5
Project: lemon   File: PlmCategory.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
 
Example 6
Project: lemon   File: DiskInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "FILE_SIZE")
public Long getFileSize() {
    return this.fileSize;
}
 
Example 7
Project: lemon   File: TemplateInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "TENANT_ID", length = 64)
public String getTenantId() {
    return this.tenantId;
}
 
Example 8
Project: sjk   File: Market.java   Source Code and License 4 votes vote down vote up
@Column(name = "Status", nullable = false, length = 5)
public String getStatus() {
    return this.status;
}
 
Example 9
Project: sjk   File: MarketApp.java   Source Code and License 4 votes vote down vote up
@Column(name = "PathStatus", nullable = false)
public byte getPathStatus() {
    return this.pathStatus;
}
 
Example 10
Project: sbc-qsystem   File: QUser.java   Source Code and License 4 votes vote down vote up
@Column(name = "adress_rs")
public Integer getAdressRS() {
    return adressRS;
}
 
Example 11
Project: sbc-qsystem   File: QCustomer.java   Source Code and License 4 votes vote down vote up
@Column(name = "previous_service", updatable = false, insertable = false)
public LinkedList<QService> getPreviousList() {
    return this.PreviousList;
}
 
Example 12
Project: lemon   File: PlmSprint.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "CODE", length = 50)
public String getCode() {
    return this.code;
}
 
Example 13
Project: sjk   File: App.java   Source Code and License 4 votes vote down vote up
@Column(name = "RealDownload", nullable = false)
public int getRealDownload() {
    return this.realDownload;
}
 
Example 14
Project: lemon   File: PartyEntity.java   Source Code and License 4 votes vote down vote up
/** @return 外部引用. */
@Column(name = "REF", length = 100)
public String getRef() {
    return this.ref;
}
 
Example 15
Project: sjk   File: App.java   Source Code and License 4 votes vote down vote up
@Transient
@Column(name = "LastWeekDownload", nullable = false)
public int getLastWeekDownload() {
    return this.lastWeekDownload;
}
 
Example 16
Project: lemon   File: PimDevice.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "USER_ID", length = 64)
public String getUserId() {
    return this.userId;
}
 
Example 17
Project: sjk   File: Catalog.java   Source Code and License 4 votes vote down vote up
@Column(name = "Keywords", nullable = false, length = 200)
public String getKeywords() {
    return this.keywords;
}
 
Example 18
Project: lemon   File: VoteInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "STATUS", length = 50)
public String getStatus() {
    return this.status;
}
 
Example 19
Project: lemon   File: TaskDefNotification.java   Source Code and License 4 votes vote down vote up
/** @return 模板编号. */
@Column(name = "TEMPLATE_CODE", length = 200)
public String getTemplateCode() {
    return this.templateCode;
}
 
Example 20
Project: lemon   File: VisitorInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "NAME", length = 200)
public String getName() {
    return this.name;
}
 
Example 21
Project: sjk   File: MonUserChannelApp.java   Source Code and License 4 votes vote down vote up
@Column(name = "CoverVersionCode", nullable = false)
public long getCoverVersionCode() {
    return coverVersionCode;
}
 
Example 22
Project: lemon   File: PimPlan.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "TENANT_ID", length = 50)
public String getTenantId() {
    return this.tenantId;
}
 
Example 23
Project: lemon   File: WhitelistService.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "USER_ID", length = 64)
public String getUserId() {
    return this.userId;
}
 
Example 24
Project: lemon   File: PimRemind.java   Source Code and License 4 votes vote down vote up
/** @return 备注. */
@Column(name = "DESCRIPTION", length = 200)
public String getDescription() {
    return this.description;
}
 
Example 25
Project: lemon   File: StampInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "NAME", length = 200)
public String getName() {
    return this.name;
}
 
Example 26
Project: sjk   File: AndroidApp.java   Source Code and License 4 votes vote down vote up
@Column(name = "AuthType")
public Integer getAuthType() {
    return this.authType;
}
 
Example 27
Project: wangmarket   File: Site.java   Source Code and License 4 votes vote down vote up
@Column(name = "company_name")
public String getCompanyName() {
	return companyName;
}
 
Example 28
Project: lemon   File: PimDevice.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
 
Example 29
Project: lemon   File: TaskDefUser.java   Source Code and License 4 votes vote down vote up
/** @return 状态. */
@Column(name = "STATUS", length = 50)
public String getStatus() {
    return this.status;
}
 
Example 30
Project: lemon   File: RoleDef.java   Source Code and License 4 votes vote down vote up
/** @return 主键. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
    return this.id;
}
 
Example 31
Project: wangmarket   File: Agency.java   Source Code and License 4 votes vote down vote up
@Column(name = "oss_price")
public Integer getOssPrice() {
	return ossPrice;
}
 
Example 32
Project: lemon   File: MeetingAttendee.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "TENANT_ID", length = 64)
public String getTenantId() {
    return this.tenantId;
}
 
Example 33
Project: lemon   File: AccountAvatar.java   Source Code and License 4 votes vote down vote up
/** @return 主键. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
    return this.id;
}
 
Example 34
Project: lemon   File: ContractInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "END_TIME", length = 26)
public Date getEndTime() {
    return this.endTime;
}
 
Example 35
Project: lemon   File: ContractInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "TYPE", length = 50)
public String getType() {
    return this.type;
}
 
Example 36
Project: GitHub   File: Office.java   Source Code and License 4 votes vote down vote up
@Column(name="territory", nullable=false, length=10)
public String getTerritory() {
    return this.territory;
}
 
Example 37
Project: sjk   File: App.java   Source Code and License 4 votes vote down vote up
@Column(name = "EnumStatus", nullable = false, length = 6)
public String getEnumStatus() {
    return this.enumStatus;
}
 
Example 38
Project: lemon   File: AuditExtra.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "TENANT_ID", length = 64)
public String getTenantId() {
    return this.tenantId;
}
 
Example 39
Project: lemon   File: FormSchema.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "NAME", length = 50)
public String getName() {
    return this.name;
}
 
Example 40
Project: sjk   File: AndroidApp.java   Source Code and License 4 votes vote down vote up
@Column(name = "Name", length = 200)
public String getName() {
    return this.name;
}
 
Example 41
Project: lemon   File: VoteItem.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "HEAD_COUNT")
public Integer getHeadCount() {
    return this.headCount;
}
 
Example 42
Project: lemon   File: ModelField.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
    return this.id;
}
 
Example 43
Project: tianti   File: Role.java   Source Code and License 4 votes vote down vote up
@Column(length = 100)
public String getName() {
	return name;
}
 
Example 44
Project: lemon   File: OfficesupplyInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
    return this.id;
}
 
Example 45
Project: lemon   File: FormTemplate.java   Source Code and License 4 votes vote down vote up
/** @return 用户. */
@Column(name = "USER_ID", length = 64)
public String getUserId() {
    return this.userId;
}
 
Example 46
Project: lemon   File: CmsComment.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "CONTENT", length = 200)
public String getContent() {
    return this.content;
}
 
Example 47
Project: sjk   File: Catalog.java   Source Code and License 4 votes vote down vote up
@Column(name = "Description")
public String getDescription() {
    return this.description;
}
 
Example 48
Project: lemon   File: AccountAlias.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "TYPE", length = 50)
public String getType() {
    return this.type;
}
 
Example 49
Project: lemon   File: BookBorrow.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "RENEW", length = 50)
public String getRenew() {
    return this.renew;
}
 
Example 50
Project: lemon   File: JobGrade.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "NAME", length = 50)
public String getName() {
    return this.name;
}
 
Example 51
Project: xsharing-services-router   File: MBPlaceEntity.java   Source Code and License 4 votes vote down vote up
@Basic
@Column(name = "available_vehicles")
public Integer getAvailableVehicles() {
    return availableVehicles;
}
 
Example 52
Project: lemon   File: PurchaseInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "NAME", length = 200)
public String getName() {
    return this.name;
}
 
Example 53
Project: wangmarket   File: Area.java   Source Code and License 4 votes vote down vote up
@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "id", unique = true, nullable = false)
public Integer getId() {
	return id;
}
 
Example 54
Project: sjk   File: MarketApp.java   Source Code and License 4 votes vote down vote up
@Column(name = "AdActionTypes", length = 45)
public String getAdActionTypes() {
    return this.adActionTypes;
}
 
Example 55
Project: lemon   File: BpmSequence.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Id
@Column(name = "ID", unique = true, nullable = false)
public Long getId() {
    return this.id;
}
 
Example 56
Project: lemon   File: WhitelistInfo.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
 
Example 57
Project: lemon   File: BpmConfForm.java   Source Code and License 4 votes vote down vote up
/** @return 状态. */
@Column(name = "STATUS")
public Integer getStatus() {
    return this.status;
}
 
Example 58
Project: sjk   File: AppDetail.java   Source Code and License 4 votes vote down vote up
@Column(name = "Supportpad", nullable = false)
public short getSupportpad() {
    return this.supportpad;
}
 
Example 59
Project: lemon   File: PimTask.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "STYLE", length = 50)
public String getStyle() {
    return this.style;
}
 
Example 60
Project: lemon   File: JavamailMessage.java   Source Code and License 4 votes vote down vote up
/** @return null. */
@Column(name = "BCC", length = 200)
public String getBcc() {
    return this.bcc;
}