135 lines
2.7 KiB
Java
135 lines
2.7 KiB
Java
package com.vxnet.pms.domain;
|
|
|
|
import jakarta.persistence.*;
|
|
import jakarta.validation.constraints.NotNull;
|
|
import jakarta.validation.constraints.Size;
|
|
import java.io.Serializable;
|
|
import java.time.Instant;
|
|
|
|
@Entity
|
|
@Table(name = "jhi_company")
|
|
public class Company implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
@NotNull
|
|
@Size(max = 50)
|
|
@Column(name = "number", length = 50, nullable = false, unique = true)
|
|
private String number;
|
|
|
|
@NotNull
|
|
@Size(max = 100)
|
|
@Column(name = "name", length = 100, nullable = false)
|
|
private String name;
|
|
|
|
@Size(max = 200)
|
|
@Column(name = "address", length = 200)
|
|
private String address;
|
|
|
|
@Size(max = 50)
|
|
@Column(name = "license_no", length = 50)
|
|
private String licenseNo;
|
|
|
|
@Column(name = "license_expire")
|
|
private Instant licenseExpire;
|
|
|
|
@Column(name = "createtime")
|
|
private Instant createtime;
|
|
|
|
@Column(name = "updatetime")
|
|
private Instant updatetime;
|
|
|
|
@Size(max = 50)
|
|
@Column(name = "lastmodby", length = 50)
|
|
private String lastmodby;
|
|
|
|
@Version
|
|
@Column(name = "version")
|
|
private Integer version;
|
|
|
|
// Getters and Setters
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getNumber() {
|
|
return number;
|
|
}
|
|
|
|
public void setNumber(String number) {
|
|
this.number = number;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getAddress() {
|
|
return address;
|
|
}
|
|
|
|
public void setAddress(String address) {
|
|
this.address = address;
|
|
}
|
|
|
|
public String getLicenseNo() {
|
|
return licenseNo;
|
|
}
|
|
|
|
public void setLicenseNo(String licenseNo) {
|
|
this.licenseNo = licenseNo;
|
|
}
|
|
|
|
public Instant getLicenseExpire() {
|
|
return licenseExpire;
|
|
}
|
|
|
|
public void setLicenseExpire(Instant licenseExpire) {
|
|
this.licenseExpire = licenseExpire;
|
|
}
|
|
|
|
public Instant getCreatetime() {
|
|
return createtime;
|
|
}
|
|
|
|
public void setCreatetime(Instant createtime) {
|
|
this.createtime = createtime;
|
|
}
|
|
|
|
public Instant getUpdatetime() {
|
|
return updatetime;
|
|
}
|
|
|
|
public void setUpdatetime(Instant updatetime) {
|
|
this.updatetime = updatetime;
|
|
}
|
|
|
|
public String getLastmodby() {
|
|
return lastmodby;
|
|
}
|
|
|
|
public void setLastmodby(String lastmodby) {
|
|
this.lastmodby = lastmodby;
|
|
}
|
|
|
|
public Integer getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(Integer version) {
|
|
this.version = version;
|
|
}
|
|
}
|