/** * If not already created, a new <code>attributes</code> element with the given value will be created. * Otherwise, the existing <code>attributes</code> element will be returned. * @return a new or existing instance of <code>EmbeddableAttributes<Embeddable<T>></code> */ public EmbeddableAttributes<Embeddable<T>> getOrCreateAttributes() { Node node = childNode.getOrCreate("attributes"); EmbeddableAttributes<Embeddable<T>> attributes = new EmbeddableAttributesImpl<Embeddable<T>>(this, "attributes", childNode, node); return attributes; }
/** * If not already created, a new <code>attributes</code> element with the given value will be created. * Otherwise, the existing <code>attributes</code> element will be returned. * @return a new or existing instance of <code>EmbeddableAttributes<Embeddable<T>></code> */ public EmbeddableAttributes<Embeddable<T>> getOrCreateAttributes() { Node node = childNode.getOrCreate("attributes"); EmbeddableAttributes<Embeddable<T>> attributes = new EmbeddableAttributesImpl<Embeddable<T>>(this, "attributes", childNode, node); return attributes; }