ing
This commit is contained in:
parent
5de7e2423a
commit
063e04675d
2
pom.xml
2
pom.xml
|
@ -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.49-SNAPSHOT</version>
|
<version>1.0.50-SNAPSHOT</version>
|
||||||
<name>com.loafle.overflow.commons-java</name>
|
<name>com.loafle.overflow.commons-java</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -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 = "TARGET_TYPE", discriminatorType = DiscriminatorType.INTEGER)
|
@DiscriminatorColumn(name = "META_INFRA_TYPE_ID", discriminatorType = DiscriminatorType.INTEGER)
|
||||||
public abstract class MetaTargetType {
|
public abstract class MetaTargetType {
|
||||||
private Integer id;
|
private Integer id;
|
||||||
private MetaInfraType metaInfraType;
|
private MetaInfraType metaInfraType;
|
||||||
|
@ -29,7 +29,7 @@ public abstract class MetaTargetType {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "META_INFRA_TYPE_ID")
|
@JoinColumn(name = "META_INFRA_TYPE_ID", insertable = true, updatable = false)
|
||||||
public MetaInfraType getMetaInfraType() {
|
public MetaInfraType getMetaInfraType() {
|
||||||
return metaInfraType;
|
return metaInfraType;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user