当前位置: 首页>>代码示例>>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;未经允许,请勿转载。