diff --git a/pom.xml b/pom.xml index 7edb694..003437d 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.loafle.overflow commons-java jar - 1.0.47-SNAPSHOT + 1.0.48-SNAPSHOT com.loafle.overflow.commons-java diff --git a/src/main/java/com/loafle/overflow/model/meta/MetaTargetHostType.java b/src/main/java/com/loafle/overflow/model/meta/MetaTargetHostType.java index cbf5fc8..011f697 100644 --- a/src/main/java/com/loafle/overflow/model/meta/MetaTargetHostType.java +++ b/src/main/java/com/loafle/overflow/model/meta/MetaTargetHostType.java @@ -6,7 +6,6 @@ import javax.persistence.*; * Created by root on 17. 6. 22. */ @Entity -@Table(name = "META_TARGET_HOST_TYPE", schema = "public") @DiscriminatorValue("2") public class MetaTargetHostType extends MetaTargetType { public MetaTargetHostType() { diff --git a/src/main/java/com/loafle/overflow/model/meta/MetaTargetServiceType.java b/src/main/java/com/loafle/overflow/model/meta/MetaTargetServiceType.java index b441bad..346ff54 100644 --- a/src/main/java/com/loafle/overflow/model/meta/MetaTargetServiceType.java +++ b/src/main/java/com/loafle/overflow/model/meta/MetaTargetServiceType.java @@ -6,7 +6,6 @@ import javax.persistence.*; * Created by root on 17. 6. 22. */ @Entity -@Table(name = "META_TARGET_SERVICE_TYPE", schema = "public") @DiscriminatorValue("3") public class MetaTargetServiceType extends MetaTargetType { public MetaTargetServiceType() { diff --git a/src/main/java/com/loafle/overflow/model/meta/MetaTargetType.java b/src/main/java/com/loafle/overflow/model/meta/MetaTargetType.java index 7c3a785..3949667 100644 --- a/src/main/java/com/loafle/overflow/model/meta/MetaTargetType.java +++ b/src/main/java/com/loafle/overflow/model/meta/MetaTargetType.java @@ -9,7 +9,7 @@ import java.util.Date; */ @Entity @Table(name = "META_TARGET_TYPE", schema = "public") -@Inheritance(strategy = InheritanceType.JOINED) +@Inheritance(strategy = InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name = "META_INFRA_TYPE_ID", discriminatorType = DiscriminatorType.INTEGER) public abstract class MetaTargetType { private Integer id; diff --git a/src/main/java/com/loafle/overflow/model/meta/MetaTargetZoneType.java b/src/main/java/com/loafle/overflow/model/meta/MetaTargetZoneType.java index 9816b04..ff7afdf 100644 --- a/src/main/java/com/loafle/overflow/model/meta/MetaTargetZoneType.java +++ b/src/main/java/com/loafle/overflow/model/meta/MetaTargetZoneType.java @@ -6,7 +6,6 @@ import javax.persistence.*; * Created by root on 17. 6. 22. */ @Entity -@Table(name = "META_TARGET_ZONE_TYPE", schema = "public") @DiscriminatorValue("1") public class MetaTargetZoneType extends MetaTargetType { public MetaTargetZoneType() {