/** * 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>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(); }