Schema annotaions in code
This commit is contained in:
@@ -15,7 +15,6 @@ import java.io.Serializable;
|
|||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.GregorianCalendar;
|
import java.util.GregorianCalendar;
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
@EqualsAndHashCode
|
@EqualsAndHashCode
|
||||||
@@ -42,7 +41,6 @@ public class Addrobj implements Serializable {
|
|||||||
//@Type(type="uuid-char")
|
//@Type(type="uuid-char")
|
||||||
@Column(name = "aoid")
|
@Column(name = "aoid")
|
||||||
@XmlAttribute(name = "AOID", required = true)
|
@XmlAttribute(name = "AOID", required = true)
|
||||||
@ManyToMany
|
|
||||||
public UUID aoid;
|
public UUID aoid;
|
||||||
|
|
||||||
//@Type(type="uuid-char")
|
//@Type(type="uuid-char")
|
||||||
|
|||||||
@@ -43,9 +43,9 @@ public class House implements Serializable {
|
|||||||
//@Type(type="uuid-char")
|
//@Type(type="uuid-char")
|
||||||
@XmlAttribute(name = "AOGUID", required = true)
|
@XmlAttribute(name = "AOGUID", required = true)
|
||||||
//@Column(name = "aoguid")
|
//@Column(name = "aoguid")
|
||||||
@ManyToMany
|
@ManyToOne(targetEntity = Addrobj.class)
|
||||||
@JoinColumn(name = "aoguid")
|
@JoinColumn(name = "aoguid", referencedColumnName = "aoguid")
|
||||||
public UUID aoguid;
|
public Addrobj aoguid;
|
||||||
|
|
||||||
//@Type(type="uuid-char")
|
//@Type(type="uuid-char")
|
||||||
@XmlAttribute(name = "HOUSEGUID", required = true)
|
@XmlAttribute(name = "HOUSEGUID", required = true)
|
||||||
@@ -98,12 +98,12 @@ public class House implements Serializable {
|
|||||||
@XmlAttribute(name = "DIVTYPE", required = true)
|
@XmlAttribute(name = "DIVTYPE", required = true)
|
||||||
protected int divtype;
|
protected int divtype;
|
||||||
|
|
||||||
public House aoguid(String aoguid) {
|
/* public House aoguid(String aoguid) {
|
||||||
this.aoguid = UUID.fromString(aoguid);
|
this.aoguid = UUID.fromString(aoguid);
|
||||||
return this;
|
return this;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public void setAoguid(UUID aoguid) {
|
public void setAoguid(Addrobj aoguid) {
|
||||||
this.aoguid = aoguid;
|
this.aoguid = aoguid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user