auto increase id
This commit is contained in:
snoop 2017-06-27 13:42:30 +09:00
parent cc21e6ce6d
commit 217b84ff62
7 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}