/** * 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>transient</code> element will be created and returned. * Otherwise, the first existing <code>transient</code> element will be returned. * @return the instance defined for the element <code>transient</code> */ public Transient<EmbeddableAttributes<T>> getOrCreateTransient() { List<Node> nodeList = childNode.get("transient"); if (nodeList != null && nodeList.size() > 0) { return new TransientImpl<EmbeddableAttributes<T>>(this, "transient", childNode, nodeList.get(0)); } return createTransient(); }
/** * If not already created, a new <code>embedded</code> element will be created and returned. * Otherwise, the first existing <code>embedded</code> element will be returned. * @return the instance defined for the element <code>embedded</code> */ public Embedded<EmbeddableAttributes<T>> getOrCreateEmbedded() { List<Node> nodeList = childNode.get("embedded"); if (nodeList != null && nodeList.size() > 0) { return new EmbeddedImpl<EmbeddableAttributes<T>>(this, "embedded", childNode, nodeList.get(0)); } return createEmbedded(); }
/** * If not already created, a new <code>many-to-many</code> element will be created and returned. * Otherwise, the first existing <code>many-to-many</code> element will be returned. * @return the instance defined for the element <code>many-to-many</code> */ public ManyToMany<EmbeddableAttributes<T>> getOrCreateManyToMany() { List<Node> nodeList = childNode.get("many-to-many"); if (nodeList != null && nodeList.size() > 0) { return new ManyToManyImpl<EmbeddableAttributes<T>>(this, "many-to-many", childNode, nodeList.get(0)); } return createManyToMany(); }
/** * If not already created, a new <code>many-to-one</code> element will be created and returned. * Otherwise, the first existing <code>many-to-one</code> element will be returned. * @return the instance defined for the element <code>many-to-one</code> */ public ManyToOne<EmbeddableAttributes<T>> getOrCreateManyToOne() { List<Node> nodeList = childNode.get("many-to-one"); if (nodeList != null && nodeList.size() > 0) { return new ManyToOneImpl<EmbeddableAttributes<T>>(this, "many-to-one", childNode, nodeList.get(0)); } return createManyToOne(); }
/** * If not already created, a new <code>one-to-one</code> element will be created and returned. * Otherwise, the first existing <code>one-to-one</code> element will be returned. * @return the instance defined for the element <code>one-to-one</code> */ public OneToOne<EmbeddableAttributes<T>> getOrCreateOneToOne() { List<Node> nodeList = childNode.get("one-to-one"); if (nodeList != null && nodeList.size() > 0) { return new OneToOneImpl<EmbeddableAttributes<T>>(this, "one-to-one", childNode, nodeList.get(0)); } return createOneToOne(); }
/** * If not already created, a new <code>element-collection</code> element will be created and returned. * Otherwise, the first existing <code>element-collection</code> element will be returned. * @return the instance defined for the element <code>element-collection</code> */ public ElementCollection<EmbeddableAttributes<T>> getOrCreateElementCollection() { List<Node> nodeList = childNode.get("element-collection"); if (nodeList != null && nodeList.size() > 0) { return new ElementCollectionImpl<EmbeddableAttributes<T>>(this, "element-collection", childNode, nodeList.get(0)); } return createElementCollection(); }
/** * If not already created, a new <code>basic</code> element will be created and returned. * Otherwise, the first existing <code>basic</code> element will be returned. * @return the instance defined for the element <code>basic</code> */ public Basic<EmbeddableAttributes<T>> getOrCreateBasic() { List<Node> nodeList = childNode.get("basic"); if (nodeList != null && nodeList.size() > 0) { return new BasicImpl<EmbeddableAttributes<T>>(this, "basic", childNode, nodeList.get(0)); } return createBasic(); }
/** * If not already created, a new <code>one-to-many</code> element will be created and returned. * Otherwise, the first existing <code>one-to-many</code> element will be returned. * @return the instance defined for the element <code>one-to-many</code> */ public OneToMany<EmbeddableAttributes<T>> getOrCreateOneToMany() { List<Node> nodeList = childNode.get("one-to-many"); if (nodeList != null && nodeList.size() > 0) { return new OneToManyImpl<EmbeddableAttributes<T>>(this, "one-to-many", childNode, nodeList.get(0)); } return createOneToMany(); }
/** * If not already created, a new <code>embedded</code> element will be created and returned. * Otherwise, the first existing <code>embedded</code> element will be returned. * @return the instance defined for the element <code>embedded</code> */ public Embedded<EmbeddableAttributes<T>> getOrCreateEmbedded() { List<Node> nodeList = childNode.get("embedded"); if (nodeList != null && nodeList.size() > 0) { return new EmbeddedImpl<EmbeddableAttributes<T>>(this, "embedded", childNode, nodeList.get(0)); } return createEmbedded(); }
/** * If not already created, a new <code>many-to-many</code> element will be created and returned. * Otherwise, the first existing <code>many-to-many</code> element will be returned. * @return the instance defined for the element <code>many-to-many</code> */ public ManyToMany<EmbeddableAttributes<T>> getOrCreateManyToMany() { List<Node> nodeList = childNode.get("many-to-many"); if (nodeList != null && nodeList.size() > 0) { return new ManyToManyImpl<EmbeddableAttributes<T>>(this, "many-to-many", childNode, nodeList.get(0)); } return createManyToMany(); }
/** * If not already created, a new <code>many-to-one</code> element will be created and returned. * Otherwise, the first existing <code>many-to-one</code> element will be returned. * @return the instance defined for the element <code>many-to-one</code> */ public ManyToOne<EmbeddableAttributes<T>> getOrCreateManyToOne() { List<Node> nodeList = childNode.get("many-to-one"); if (nodeList != null && nodeList.size() > 0) { return new ManyToOneImpl<EmbeddableAttributes<T>>(this, "many-to-one", childNode, nodeList.get(0)); } return createManyToOne(); }
/** * If not already created, a new <code>one-to-one</code> element will be created and returned. * Otherwise, the first existing <code>one-to-one</code> element will be returned. * @return the instance defined for the element <code>one-to-one</code> */ public OneToOne<EmbeddableAttributes<T>> getOrCreateOneToOne() { List<Node> nodeList = childNode.get("one-to-one"); if (nodeList != null && nodeList.size() > 0) { return new OneToOneImpl<EmbeddableAttributes<T>>(this, "one-to-one", childNode, nodeList.get(0)); } return createOneToOne(); }
/** * If not already created, a new <code>element-collection</code> element will be created and returned. * Otherwise, the first existing <code>element-collection</code> element will be returned. * @return the instance defined for the element <code>element-collection</code> */ public ElementCollection<EmbeddableAttributes<T>> getOrCreateElementCollection() { List<Node> nodeList = childNode.get("element-collection"); if (nodeList != null && nodeList.size() > 0) { return new ElementCollectionImpl<EmbeddableAttributes<T>>(this, "element-collection", childNode, nodeList.get(0)); } return createElementCollection(); }
/** * If not already created, a new <code>basic</code> element will be created and returned. * Otherwise, the first existing <code>basic</code> element will be returned. * @return the instance defined for the element <code>basic</code> */ public Basic<EmbeddableAttributes<T>> getOrCreateBasic() { List<Node> nodeList = childNode.get("basic"); if (nodeList != null && nodeList.size() > 0) { return new BasicImpl<EmbeddableAttributes<T>>(this, "basic", childNode, nodeList.get(0)); } return createBasic(); }
/** * If not already created, a new <code>one-to-many</code> element will be created and returned. * Otherwise, the first existing <code>one-to-many</code> element will be returned. * @return the instance defined for the element <code>one-to-many</code> */ public OneToMany<EmbeddableAttributes<T>> getOrCreateOneToMany() { List<Node> nodeList = childNode.get("one-to-many"); if (nodeList != null && nodeList.size() > 0) { return new OneToManyImpl<EmbeddableAttributes<T>>(this, "one-to-many", childNode, nodeList.get(0)); } return createOneToMany(); }
/** * 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>transient</code> element will be created and returned. * Otherwise, the first existing <code>transient</code> element will be returned. * @return the instance defined for the element <code>transient</code> */ public Transient<EmbeddableAttributes<T>> getOrCreateTransient() { List<Node> nodeList = childNode.get("transient"); if (nodeList != null && nodeList.size() > 0) { return new TransientImpl<EmbeddableAttributes<T>>(this, "transient", childNode, nodeList.get(0)); } return createTransient(); }