/** * If not already created, a new <code>embedded-id</code> element with the given value will be created. * Otherwise, the existing <code>embedded-id</code> element will be returned. * @return a new or existing instance of <code>EmbeddedId<Attributes<T>></code> */ public EmbeddedId<Attributes<T>> getOrCreateEmbeddedId() { Node node = childNode.getOrCreate("embedded-id"); EmbeddedId<Attributes<T>> embeddedId = new EmbeddedIdImpl<Attributes<T>>(this, "embedded-id", childNode, node); return embeddedId; }
/** * If not already created, a new <code>attribute-override</code> element will be created and returned. * Otherwise, the first existing <code>attribute-override</code> element will be returned. * @return the instance defined for the element <code>attribute-override</code> */ public AttributeOverride<EmbeddedId<T>> getOrCreateAttributeOverride() { List<Node> nodeList = childNode.get("attribute-override"); if (nodeList != null && nodeList.size() > 0) { return new AttributeOverrideImpl<EmbeddedId<T>>(this, "attribute-override", childNode, nodeList.get(0)); } return createAttributeOverride(); }
/** * If not already created, a new <code>attribute-override</code> element will be created and returned. * Otherwise, the first existing <code>attribute-override</code> element will be returned. * @return the instance defined for the element <code>attribute-override</code> */ public AttributeOverride<EmbeddedId<T>> getOrCreateAttributeOverride() { List<Node> nodeList = childNode.get("attribute-override"); if (nodeList != null && nodeList.size() > 0) { return new AttributeOverrideImpl<EmbeddedId<T>>(this, "attribute-override", childNode, nodeList.get(0)); } return createAttributeOverride(); }
/** * If not already created, a new <code>embedded-id</code> element with the given value will be created. * Otherwise, the existing <code>embedded-id</code> element will be returned. * @return a new or existing instance of <code>EmbeddedId<Attributes<T>></code> */ public EmbeddedId<Attributes<T>> getOrCreateEmbeddedId() { Node node = childNode.getOrCreate("embedded-id"); EmbeddedId<Attributes<T>> embeddedId = new EmbeddedIdImpl<Attributes<T>>(this, "embedded-id", childNode, node); return embeddedId; }