當前位置: 首頁>>代碼示例>>Java>>正文


Java Column類代碼示例

本文整理匯總了Java中javax.persistence.Column的典型用法代碼示例。如果您正苦於以下問題:Java Column類的具體用法?Java Column怎麽用?Java Column使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Column類屬於javax.persistence包,在下文中一共展示了Column類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getSqlType

import javax.persistence.Column; //導入依賴的package包/類
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());
}
 
開發者ID:michaelliao,項目名稱:crypto-exchange,代碼行數:13,代碼來源:EntityInfo.java

示例2: getReceivePort

import javax.persistence.Column; //導入依賴的package包/類
/** @return null. */
@Column(name = "RECEIVE_PORT", length = 10)
public String getReceivePort() {
    return this.receivePort;
}
 
開發者ID:zhaojunfei,項目名稱:lemon,代碼行數:6,代碼來源:JavamailConfig.java

示例3: getRelease

import javax.persistence.Column; //導入依賴的package包/類
@Column(name = "release_date")
public Date getRelease() {
    return release;
}
 
開發者ID:mingzuozhibi,項目名稱:mzzb-server,代碼行數:5,代碼來源:Disc.java

示例4: getApkId

import javax.persistence.Column; //導入依賴的package包/類
@Column(name = "ApkId", nullable = false)
public int getApkId() {
    return this.apkId;
}
 
開發者ID:zhaoxi1988,項目名稱:sjk,代碼行數:5,代碼來源:MonApp.java

示例5: getCreateTime

import javax.persistence.Column; //導入依賴的package包/類
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
    return this.createTime;
}
 
開發者ID:zhaojunfei,項目名稱:lemon,代碼行數:7,代碼來源:PlmCategory.java

示例6: getFileSize

import javax.persistence.Column; //導入依賴的package包/類
/** @return null. */
@Column(name = "FILE_SIZE")
public Long getFileSize() {
    return this.fileSize;
}
 
開發者ID:zhaojunfei,項目名稱:lemon,代碼行數:6,代碼來源:DiskInfo.java

示例7: getTenantId

import javax.persistence.Column; //導入依賴的package包/類
/** @return null. */
@Column(name = "TENANT_ID", length = 64)
public String getTenantId() {
    return this.tenantId;
}
 
開發者ID:zhaojunfei,項目名稱:lemon,代碼行數:6,代碼來源:TemplateInfo.java

示例8: getStatus

import javax.persistence.Column; //導入依賴的package包/類
@Column(name = "Status", nullable = false, length = 5)
public String getStatus() {
    return this.status;
}
 
開發者ID:zhaoxi1988,項目名稱:sjk,代碼行數:5,代碼來源:Market.java

示例9: getPathStatus

import javax.persistence.Column; //導入依賴的package包/類
@Column(name = "PathStatus", nullable = false)
public byte getPathStatus() {
    return this.pathStatus;
}
 
開發者ID:zhaoxi1988,項目名稱:sjk,代碼行數:5,代碼來源:MarketApp.java

示例10: getAdressRS

import javax.persistence.Column; //導入依賴的package包/類
@Column(name = "adress_rs")
public Integer getAdressRS() {
    return adressRS;
}
 
開發者ID:bcgov,項目名稱:sbc-qsystem,代碼行數:5,代碼來源:QUser.java

示例11: getPreviousList

import javax.persistence.Column; //導入依賴的package包/類
@Column(name = "previous_service", updatable = false, insertable = false)
public LinkedList<QService> getPreviousList() {
    return this.PreviousList;
}
 
開發者ID:bcgov,項目名稱:sbc-qsystem,代碼行數:5,代碼來源:QCustomer.java

示例12: getCode

import javax.persistence.Column; //導入依賴的package包/類
/** @return null. */
@Column(name = "CODE", length = 50)
public String getCode() {
    return this.code;
}
 
開發者ID:zhaojunfei,項目名稱:lemon,代碼行數:6,代碼來源:PlmSprint.java

示例13: getRealDownload

import javax.persistence.Column; //導入依賴的package包/類
@Column(name = "RealDownload", nullable = false)
public int getRealDownload() {
    return this.realDownload;
}
 
開發者ID:zhaoxi1988,項目名稱:sjk,代碼行數:5,代碼來源:App.java

示例14: getRef

import javax.persistence.Column; //導入依賴的package包/類
/** @return 外部引用. */
@Column(name = "REF", length = 100)
public String getRef() {
    return this.ref;
}
 
開發者ID:zhaojunfei,項目名稱:lemon,代碼行數:6,代碼來源:PartyEntity.java

示例15: getLastWeekDownload

import javax.persistence.Column; //導入依賴的package包/類
@Transient
@Column(name = "LastWeekDownload", nullable = false)
public int getLastWeekDownload() {
    return this.lastWeekDownload;
}
 
開發者ID:zhaoxi1988,項目名稱:sjk,代碼行數:6,代碼來源:App.java


注:本文中的javax.persistence.Column類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。