use of org.hibernate.jpamodelgen.xml.jaxb.OneToMany in project hibernate-orm by hibernate.
the class XmlMetaEntity method parseAttributes.
private void parseAttributes(Attributes attributes) {
XmlMetaSingleAttribute attribute;
for (Id id : attributes.getId()) {
ElementKind elementKind = getElementKind(id.getAccess());
String type = getType(id.getName(), null, elementKind);
if (type != null) {
attribute = new XmlMetaSingleAttribute(this, id.getName(), type);
members.add(attribute);
}
}
if (attributes.getEmbeddedId() != null) {
EmbeddedId embeddedId = attributes.getEmbeddedId();
ElementKind elementKind = getElementKind(embeddedId.getAccess());
String type = getType(embeddedId.getName(), null, elementKind);
if (type != null) {
attribute = new XmlMetaSingleAttribute(this, embeddedId.getName(), type);
members.add(attribute);
}
}
for (Basic basic : attributes.getBasic()) {
parseBasic(basic);
}
for (ManyToOne manyToOne : attributes.getManyToOne()) {
parseManyToOne(manyToOne);
}
for (OneToOne oneToOne : attributes.getOneToOne()) {
parseOneToOne(oneToOne);
}
for (ManyToMany manyToMany : attributes.getManyToMany()) {
if (parseManyToMany(manyToMany)) {
break;
}
}
for (OneToMany oneToMany : attributes.getOneToMany()) {
if (parseOneToMany(oneToMany)) {
break;
}
}
for (ElementCollection collection : attributes.getElementCollection()) {
if (parseElementCollection(collection)) {
break;
}
}
for (Embedded embedded : attributes.getEmbedded()) {
parseEmbedded(embedded);
}
}
Aggregations