/** * If not already created, a new <code>join-column</code> element will be created and returned. * Otherwise, the first existing <code>join-column</code> element will be returned. * @return the instance defined for the element <code>join-column</code> */ public JoinColumn<OneToMany<T>> getOrCreateJoinColumn() { List<Node> nodeList = childNode.get("join-column"); if (nodeList != null && nodeList.size() > 0) { return new JoinColumnImpl<OneToMany<T>>(this, "join-column", childNode, nodeList.get(0)); } return createJoinColumn(); }
/** * If not already created, a new <code>join-column</code> element will be created and returned. * Otherwise, the first existing <code>join-column</code> element will be returned. * @return the instance defined for the element <code>join-column</code> */ public JoinColumn<OneToMany<T>> getOrCreateJoinColumn() { List<Node> nodeList = childNode.get("join-column"); if (nodeList != null && nodeList.size() > 0) { return new JoinColumnImpl<OneToMany<T>>(this, "join-column", childNode, nodeList.get(0)); } return createJoinColumn(); }