This commit is contained in:
crusader 2018-06-14 17:46:01 +09:00
parent 6d6709ee12
commit 57567d6842
3 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@
<groupId>com.loafle.overflow</groupId> <groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId> <artifactId>commons-java</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.0.62-SNAPSHOT</version> <version>1.0.63-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name> <name>com.loafle.overflow.commons-java</name>
<properties> <properties>

View File

@ -11,7 +11,7 @@ import java.util.Date;
@Entity @Entity
@Table(name = "INFRA", schema = "public") @Table(name = "INFRA", schema = "public")
@Inheritance(strategy = InheritanceType.JOINED) @Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name = "META_INFRA_TYPE_ID", discriminatorType = DiscriminatorType.INTEGER) @DiscriminatorColumn(name = "INFRA_TYPE", discriminatorType = DiscriminatorType.INTEGER)
public abstract class Infra { public abstract class Infra {
private Long id; private Long id;
private MetaInfraType metaInfraType; private MetaInfraType metaInfraType;
@ -47,7 +47,7 @@ public abstract class Infra {
} }
@ManyToOne @ManyToOne
@JoinColumn(name = "PROBE_ID", nullable = true) @JoinColumn(name = "PROBE_ID", nullable = false)
public Probe getProbe() { public Probe getProbe() {
return probe; return probe;
} }

View File

@ -10,7 +10,7 @@ import java.util.Date;
@Entity @Entity
@Table(name = "META_TARGET_TYPE", schema = "public") @Table(name = "META_TARGET_TYPE", schema = "public")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE) @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "META_INFRA_TYPE_ID", discriminatorType = DiscriminatorType.INTEGER) @DiscriminatorColumn(name = "INFRA_TYPE", discriminatorType = DiscriminatorType.INTEGER)
public abstract class MetaTargetType { public abstract class MetaTargetType {
private Integer id; private Integer id;
private MetaInfraType metaInfraType; private MetaInfraType metaInfraType;