本文整理汇总了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());
}
示例2: getReceivePort
import javax.persistence.Column; //导入依赖的package包/类
/** @return null. */
@Column(name = "RECEIVE_PORT", length = 10)
public String getReceivePort() {
return this.receivePort;
}
示例3: getRelease
import javax.persistence.Column; //导入依赖的package包/类
@Column(name = "release_date")
public Date getRelease() {
return release;
}
示例4: getApkId
import javax.persistence.Column; //导入依赖的package包/类
@Column(name = "ApkId", nullable = false)
public int getApkId() {
return this.apkId;
}
示例5: getCreateTime
import javax.persistence.Column; //导入依赖的package包/类
/** @return null. */
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_TIME", length = 26)
public Date getCreateTime() {
return this.createTime;
}
示例6: getFileSize
import javax.persistence.Column; //导入依赖的package包/类
/** @return null. */
@Column(name = "FILE_SIZE")
public Long getFileSize() {
return this.fileSize;
}
示例7: getTenantId
import javax.persistence.Column; //导入依赖的package包/类
/** @return null. */
@Column(name = "TENANT_ID", length = 64)
public String getTenantId() {
return this.tenantId;
}
示例8: getStatus
import javax.persistence.Column; //导入依赖的package包/类
@Column(name = "Status", nullable = false, length = 5)
public String getStatus() {
return this.status;
}
示例9: getPathStatus
import javax.persistence.Column; //导入依赖的package包/类
@Column(name = "PathStatus", nullable = false)
public byte getPathStatus() {
return this.pathStatus;
}
示例10: getAdressRS
import javax.persistence.Column; //导入依赖的package包/类
@Column(name = "adress_rs")
public Integer getAdressRS() {
return adressRS;
}
示例11: getPreviousList
import javax.persistence.Column; //导入依赖的package包/类
@Column(name = "previous_service", updatable = false, insertable = false)
public LinkedList<QService> getPreviousList() {
return this.PreviousList;
}
示例12: getCode
import javax.persistence.Column; //导入依赖的package包/类
/** @return null. */
@Column(name = "CODE", length = 50)
public String getCode() {
return this.code;
}
示例13: getRealDownload
import javax.persistence.Column; //导入依赖的package包/类
@Column(name = "RealDownload", nullable = false)
public int getRealDownload() {
return this.realDownload;
}
示例14: getRef
import javax.persistence.Column; //导入依赖的package包/类
/** @return 外部引用. */
@Column(name = "REF", length = 100)
public String getRef() {
return this.ref;
}
示例15: getLastWeekDownload
import javax.persistence.Column; //导入依赖的package包/类
@Transient
@Column(name = "LastWeekDownload", nullable = false)
public int getLastWeekDownload() {
return this.lastWeekDownload;
}