ing
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user