fix
auto increase id
This commit is contained in:
parent
cc21e6ce6d
commit
217b84ff62
|
@ -16,7 +16,7 @@ public class InfraHost {
|
|||
private Date createDate;
|
||||
|
||||
@Id
|
||||
@Column(name = "ID", nullable = false)
|
||||
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public class InfraMachine {
|
|||
private Date createDate;
|
||||
|
||||
@Id
|
||||
@Column(name = "ID", nullable = false)
|
||||
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ public class InfraOS {
|
|||
private MetaInfraVendor vendor;
|
||||
|
||||
@Id
|
||||
@Column(name = "ID", nullable = false)
|
||||
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public class InfraOSApplication {
|
|||
private Date createDate;
|
||||
|
||||
@Id
|
||||
@Column(name = "ID", nullable = false)
|
||||
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public class InfraOSDaemon {
|
|||
private Date createDate;
|
||||
|
||||
@Id
|
||||
@Column(name = "ID", nullable = false)
|
||||
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ public class InfraOSPort {
|
|||
private boolean tlsType;
|
||||
|
||||
@Id
|
||||
@Column(name = "ID", nullable = false)
|
||||
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ public class InfraService {
|
|||
private boolean tlsType;
|
||||
|
||||
@Id
|
||||
@Column(name = "ID", nullable = false)
|
||||
@GeneratedValue(strategy= GenerationType.IDENTITY)
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user