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