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