use of org.hibernate.boot.jaxb.mapping.spi.JaxbAttributeOverride in project hibernate-orm by hibernate.
the class JPAXMLOverriddenAnnotationReader method buildAttributeOverrides.
private List<AttributeOverride> buildAttributeOverrides(List<JaxbAttributeOverride> subelements, String nodeName) {
List<AttributeOverride> overrides = new ArrayList<>();
if (subelements != null && subelements.size() > 0) {
for (JaxbAttributeOverride current : subelements) {
AnnotationDescriptor override = new AnnotationDescriptor(AttributeOverride.class);
copyAttribute(override, "name", current.getName(), true);
JaxbColumn column = current.getColumn();
override.setValue("column", getColumn(column, true, nodeName));
overrides.add(AnnotationFactory.create(override));
}
}
return overrides;
}
Aggregations