use of org.hibernate.boot.jaxb.mapping.spi.JaxbNamedAttributeNode in project hibernate-orm by hibernate.
the class JPAXMLOverriddenAnnotationReader method bindNamedAttributeNodes.
private static void bindNamedAttributeNodes(List<JaxbNamedAttributeNode> elements, AnnotationDescriptor ann) {
List<NamedAttributeNode> annNamedAttributeNodes = new ArrayList<>();
for (JaxbNamedAttributeNode element : elements) {
AnnotationDescriptor annNamedAttributeNode = new AnnotationDescriptor(NamedAttributeNode.class);
copyAttribute(annNamedAttributeNode, "value", "name", element.getName(), true);
copyAttribute(annNamedAttributeNode, "subgraph", element.getSubgraph(), false);
copyAttribute(annNamedAttributeNode, "key-subgraph", element.getKeySubgraph(), false);
annNamedAttributeNodes.add(AnnotationFactory.create(annNamedAttributeNode));
}
ann.setValue("attributeNodes", annNamedAttributeNodes.toArray(new NamedAttributeNode[annNamedAttributeNodes.size()]));
}
Aggregations