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()); }
/** @return null. */ @Column(name = "RECEIVE_PORT", length = 10) public String getReceivePort() { return this.receivePort; }
@Column(name = "release_date") public Date getRelease() { return release; }
@Column(name = "ApkId", nullable = false) public int getApkId() { return this.apkId; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "CREATE_TIME", length = 26) public Date getCreateTime() { return this.createTime; }
/** @return null. */ @Column(name = "FILE_SIZE") public Long getFileSize() { return this.fileSize; }
/** @return null. */ @Column(name = "TENANT_ID", length = 64) public String getTenantId() { return this.tenantId; }
@Column(name = "Status", nullable = false, length = 5) public String getStatus() { return this.status; }
@Column(name = "PathStatus", nullable = false) public byte getPathStatus() { return this.pathStatus; }
@Column(name = "adress_rs") public Integer getAdressRS() { return adressRS; }
@Column(name = "previous_service", updatable = false, insertable = false) public LinkedList<QService> getPreviousList() { return this.PreviousList; }
/** @return null. */ @Column(name = "CODE", length = 50) public String getCode() { return this.code; }
@Column(name = "RealDownload", nullable = false) public int getRealDownload() { return this.realDownload; }
/** @return 外部引用. */ @Column(name = "REF", length = 100) public String getRef() { return this.ref; }
@Transient @Column(name = "LastWeekDownload", nullable = false) public int getLastWeekDownload() { return this.lastWeekDownload; }
/** @return null. */ @Column(name = "USER_ID", length = 64) public String getUserId() { return this.userId; }
@Column(name = "Keywords", nullable = false, length = 200) public String getKeywords() { return this.keywords; }
/** @return null. */ @Column(name = "STATUS", length = 50) public String getStatus() { return this.status; }
/** @return 模板编号. */ @Column(name = "TEMPLATE_CODE", length = 200) public String getTemplateCode() { return this.templateCode; }
/** @return null. */ @Column(name = "NAME", length = 200) public String getName() { return this.name; }
@Column(name = "CoverVersionCode", nullable = false) public long getCoverVersionCode() { return coverVersionCode; }
/** @return null. */ @Column(name = "TENANT_ID", length = 50) public String getTenantId() { return this.tenantId; }
/** @return 备注. */ @Column(name = "DESCRIPTION", length = 200) public String getDescription() { return this.description; }
@Column(name = "AuthType") public Integer getAuthType() { return this.authType; }
@Column(name = "company_name") public String getCompanyName() { return companyName; }
/** @return 状态. */ @Column(name = "STATUS", length = 50) public String getStatus() { return this.status; }
/** @return 主键. */ @Id @Column(name = "ID", unique = true, nullable = false) public Long getId() { return this.id; }
@Column(name = "oss_price") public Integer getOssPrice() { return ossPrice; }
/** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "END_TIME", length = 26) public Date getEndTime() { return this.endTime; }
/** @return null. */ @Column(name = "TYPE", length = 50) public String getType() { return this.type; }
@Column(name="territory", nullable=false, length=10) public String getTerritory() { return this.territory; }
@Column(name = "EnumStatus", nullable = false, length = 6) public String getEnumStatus() { return this.enumStatus; }
/** @return null. */ @Column(name = "NAME", length = 50) public String getName() { return this.name; }
@Column(name = "Name", length = 200) public String getName() { return this.name; }