This commit is contained in:
crusader
2018-06-12 14:13:58 +09:00
parent 8ba84132f7
commit a6112e0725
5 changed files with 2 additions and 5 deletions

View File

@@ -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() {

View File

@@ -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() {

View File

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

View File

@@ -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() {