.
This commit is contained in:
parent
19fab20672
commit
e8d27a8af3
|
@ -24,8 +24,8 @@ public class DiscoveryHistory
|
||||||
@Column(nullable=false)
|
@Column(nullable=false)
|
||||||
private Boolean result;
|
private Boolean result;
|
||||||
|
|
||||||
@Column(nullable=false)
|
|
||||||
@JoinColumn
|
@JoinColumn
|
||||||
|
@OneToOne
|
||||||
private DiscoveryZone zone;
|
private DiscoveryZone zone;
|
||||||
|
|
||||||
public DiscoveryZone getZone() {
|
public DiscoveryZone getZone() {
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class DiscoveryPort {
|
||||||
private long id;
|
private long id;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "HOST_ID", nullable = false)
|
@JoinColumn
|
||||||
private DiscoveryHost host;
|
private DiscoveryHost host;
|
||||||
public DiscoveryHost getHost() {
|
public DiscoveryHost getHost() {
|
||||||
return host;
|
return host;
|
||||||
|
@ -54,12 +54,12 @@ public class DiscoveryPort {
|
||||||
|
|
||||||
public DiscoveryPort() {}
|
public DiscoveryPort() {}
|
||||||
|
|
||||||
public DiscoveryPort(PortType type, short portNumber) {
|
public DiscoveryPort(PortType type, int portNumber) {
|
||||||
this.portType = type;
|
this.portType = type;
|
||||||
this.portNumber = portNumber;
|
this.portNumber = portNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DiscoveryPort(DiscoveryHost host, PortType type, short portNumber) {
|
public DiscoveryPort(DiscoveryHost host, PortType type, int portNumber) {
|
||||||
this.host = host;
|
this.host = host;
|
||||||
this.portType = type;
|
this.portType = type;
|
||||||
this.portNumber = portNumber;
|
this.portNumber = portNumber;
|
||||||
|
|
|
@ -10,7 +10,7 @@ spring.datasource.driver-class-name=org.h2.Driver
|
||||||
|
|
||||||
## Hibernate configuration
|
## Hibernate configuration
|
||||||
spring.jpa.database=h2
|
spring.jpa.database=h2
|
||||||
#spring.jpa.hibernate.ddl-auto=create-drop
|
spring.jpa.hibernate.ddl-auto=create-drop
|
||||||
spring.jpa.hibernate.ddl-auto=update
|
#spring.jpa.hibernate.ddl-auto=update
|
||||||
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy
|
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy
|
||||||
spring.jpa.show-sql=true
|
spring.jpa.show-sql=true
|
Loading…
Reference in New Issue
Block a user