/** * If not already created, a new <code>persistence-property</code> element will be created and returned. * Otherwise, the first existing <code>persistence-property</code> element will be returned. * @return the instance defined for the element <code>persistence-property</code> */ public PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty() { List<Node> nodeList = childNode.get("persistence-property"); if (nodeList != null && nodeList.size() > 0) { return new PropertyTypeImpl<PersistenceContextRefType<T>>(this, "persistence-property", childNode, nodeList.get(0)); } return createPersistenceProperty(); }
/** * If not already created, a new <code>persistence-property</code> element will be created and returned. * Otherwise, the first existing <code>persistence-property</code> element will be returned. * @return the instance defined for the element <code>persistence-property</code> */ public PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty() { List<Node> nodeList = childNode.get("persistence-property"); if (nodeList != null && nodeList.size() > 0) { return new PropertyTypeImpl<PersistenceContextRefType<T>>(this, "persistence-property", childNode, nodeList.get(0)); } return createPersistenceProperty(); }
/** * If not already created, a new <code>persistence-property</code> element will be created and returned. * Otherwise, the first existing <code>persistence-property</code> element will be returned. * @return the instance defined for the element <code>persistence-property</code> */ public PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty() { List<Node> nodeList = childNode.get("persistence-property"); if (nodeList != null && nodeList.size() > 0) { return new PropertyTypeImpl<PersistenceContextRefType<T>>(this, "persistence-property", childNode, nodeList.get(0)); } return createPersistenceProperty(); }
/** * If not already created, a new <code>persistence-property</code> element will be created and returned. * Otherwise, the first existing <code>persistence-property</code> element will be returned. * @return the instance defined for the element <code>persistence-property</code> */ public PropertyType<PersistenceContextRefType<T>> getOrCreatePersistenceProperty() { List<Node> nodeList = childNode.get("persistence-property"); if (nodeList != null && nodeList.size() > 0) { return new PropertyTypeImpl<PersistenceContextRefType<T>>(this, "persistence-property", childNode, nodeList.get(0)); } return createPersistenceProperty(); }