/** * Creates a new <code>entity</code> element * @return the new created instance of <code>Entity<OrmDescriptor></code> */ public Entity<OrmDescriptor> createEntity() { return new EntityImpl<OrmDescriptor>(this, "entity", model); }
/** * If not already created, a new <code>primary-key-join-column</code> element will be created and returned. * Otherwise, the first existing <code>primary-key-join-column</code> element will be returned. * @return the instance defined for the element <code>primary-key-join-column</code> */ public PrimaryKeyJoinColumn<Entity<T>> getOrCreatePrimaryKeyJoinColumn() { List<Node> nodeList = childNode.get("primary-key-join-column"); if (nodeList != null && nodeList.size() > 0) { return new PrimaryKeyJoinColumnImpl<Entity<T>>(this, "primary-key-join-column", childNode, nodeList.get(0)); } return createPrimaryKeyJoinColumn(); }
/** * If not already created, a new <code>attribute-override</code> element will be created and returned. * Otherwise, the first existing <code>attribute-override</code> element will be returned. * @return the instance defined for the element <code>attribute-override</code> */ public AttributeOverride<Entity<T>> getOrCreateAttributeOverride() { List<Node> nodeList = childNode.get("attribute-override"); if (nodeList != null && nodeList.size() > 0) { return new AttributeOverrideImpl<Entity<T>>(this, "attribute-override", childNode, nodeList.get(0)); } return createAttributeOverride(); }
/** * If not already created, a new <code>secondary-table</code> element will be created and returned. * Otherwise, the first existing <code>secondary-table</code> element will be returned. * @return the instance defined for the element <code>secondary-table</code> */ public SecondaryTable<Entity<T>> getOrCreateSecondaryTable() { List<Node> nodeList = childNode.get("secondary-table"); if (nodeList != null && nodeList.size() > 0) { return new SecondaryTableImpl<Entity<T>>(this, "secondary-table", childNode, nodeList.get(0)); } return createSecondaryTable(); }
/** * If not already created, a new <code>association-override</code> element will be created and returned. * Otherwise, the first existing <code>association-override</code> element will be returned. * @return the instance defined for the element <code>association-override</code> */ public AssociationOverride<Entity<T>> getOrCreateAssociationOverride() { List<Node> nodeList = childNode.get("association-override"); if (nodeList != null && nodeList.size() > 0) { return new AssociationOverrideImpl<Entity<T>>(this, "association-override", childNode, nodeList.get(0)); } return createAssociationOverride(); }
/** * If not already created, a new <code>named-stored-procedure-query</code> element will be created and returned. * Otherwise, the first existing <code>named-stored-procedure-query</code> element will be returned. * @return the instance defined for the element <code>named-stored-procedure-query</code> */ public NamedStoredProcedureQuery<Entity<T>> getOrCreateNamedStoredProcedureQuery() { List<Node> nodeList = childNode.get("named-stored-procedure-query"); if (nodeList != null && nodeList.size() > 0) { return new NamedStoredProcedureQueryImpl<Entity<T>>(this, "named-stored-procedure-query", childNode, nodeList.get(0)); } return createNamedStoredProcedureQuery(); }
/** * If not already created, a new <code>named-entity-graph</code> element will be created and returned. * Otherwise, the first existing <code>named-entity-graph</code> element will be returned. * @return the instance defined for the element <code>named-entity-graph</code> */ public NamedEntityGraph<Entity<T>> getOrCreateNamedEntityGraph() { List<Node> nodeList = childNode.get("named-entity-graph"); if (nodeList != null && nodeList.size() > 0) { return new NamedEntityGraphImpl<Entity<T>>(this, "named-entity-graph", childNode, nodeList.get(0)); } return createNamedEntityGraph(); }
/** * If not already created, a new <code>named-native-query</code> element will be created and returned. * Otherwise, the first existing <code>named-native-query</code> element will be returned. * @return the instance defined for the element <code>named-native-query</code> */ public NamedNativeQuery<Entity<T>> getOrCreateNamedNativeQuery() { List<Node> nodeList = childNode.get("named-native-query"); if (nodeList != null && nodeList.size() > 0) { return new NamedNativeQueryImpl<Entity<T>>(this, "named-native-query", childNode, nodeList.get(0)); } return createNamedNativeQuery(); }
/** * If not already created, a new <code>convert</code> element will be created and returned. * Otherwise, the first existing <code>convert</code> element will be returned. * @return the instance defined for the element <code>convert</code> */ public Convert<Entity<T>> getOrCreateConvert() { List<Node> nodeList = childNode.get("convert"); if (nodeList != null && nodeList.size() > 0) { return new ConvertImpl<Entity<T>>(this, "convert", childNode, nodeList.get(0)); } return createConvert(); }
/** * If not already created, a new <code>named-query</code> element will be created and returned. * Otherwise, the first existing <code>named-query</code> element will be returned. * @return the instance defined for the element <code>named-query</code> */ public NamedQuery<Entity<T>> getOrCreateNamedQuery() { List<Node> nodeList = childNode.get("named-query"); if (nodeList != null && nodeList.size() > 0) { return new NamedQueryImpl<Entity<T>>(this, "named-query", childNode, nodeList.get(0)); } return createNamedQuery(); }
/** * If not already created, a new <code>primary-key-join-column</code> element will be created and returned. * Otherwise, the first existing <code>primary-key-join-column</code> element will be returned. * @return the instance defined for the element <code>primary-key-join-column</code> */ public PrimaryKeyJoinColumn<Entity<T>> getOrCreatePrimaryKeyJoinColumn() { List<Node> nodeList = childNode.get("primary-key-join-column"); if (nodeList != null && nodeList.size() > 0) { return new PrimaryKeyJoinColumnImpl<Entity<T>>(this, "primary-key-join-column", childNode, nodeList.get(0)); } return createPrimaryKeyJoinColumn(); }
/** * If not already created, a new <code>attribute-override</code> element will be created and returned. * Otherwise, the first existing <code>attribute-override</code> element will be returned. * @return the instance defined for the element <code>attribute-override</code> */ public AttributeOverride<Entity<T>> getOrCreateAttributeOverride() { List<Node> nodeList = childNode.get("attribute-override"); if (nodeList != null && nodeList.size() > 0) { return new AttributeOverrideImpl<Entity<T>>(this, "attribute-override", childNode, nodeList.get(0)); } return createAttributeOverride(); }
/** * If not already created, a new <code>secondary-table</code> element will be created and returned. * Otherwise, the first existing <code>secondary-table</code> element will be returned. * @return the instance defined for the element <code>secondary-table</code> */ public SecondaryTable<Entity<T>> getOrCreateSecondaryTable() { List<Node> nodeList = childNode.get("secondary-table"); if (nodeList != null && nodeList.size() > 0) { return new SecondaryTableImpl<Entity<T>>(this, "secondary-table", childNode, nodeList.get(0)); } return createSecondaryTable(); }
/** * If not already created, a new <code>association-override</code> element will be created and returned. * Otherwise, the first existing <code>association-override</code> element will be returned. * @return the instance defined for the element <code>association-override</code> */ public AssociationOverride<Entity<T>> getOrCreateAssociationOverride() { List<Node> nodeList = childNode.get("association-override"); if (nodeList != null && nodeList.size() > 0) { return new AssociationOverrideImpl<Entity<T>>(this, "association-override", childNode, nodeList.get(0)); } return createAssociationOverride(); }
/** * If not already created, a new <code>named-stored-procedure-query</code> element will be created and returned. * Otherwise, the first existing <code>named-stored-procedure-query</code> element will be returned. * @return the instance defined for the element <code>named-stored-procedure-query</code> */ public NamedStoredProcedureQuery<Entity<T>> getOrCreateNamedStoredProcedureQuery() { List<Node> nodeList = childNode.get("named-stored-procedure-query"); if (nodeList != null && nodeList.size() > 0) { return new NamedStoredProcedureQueryImpl<Entity<T>>(this, "named-stored-procedure-query", childNode, nodeList.get(0)); } return createNamedStoredProcedureQuery(); }
/** * If not already created, a new <code>named-entity-graph</code> element will be created and returned. * Otherwise, the first existing <code>named-entity-graph</code> element will be returned. * @return the instance defined for the element <code>named-entity-graph</code> */ public NamedEntityGraph<Entity<T>> getOrCreateNamedEntityGraph() { List<Node> nodeList = childNode.get("named-entity-graph"); if (nodeList != null && nodeList.size() > 0) { return new NamedEntityGraphImpl<Entity<T>>(this, "named-entity-graph", childNode, nodeList.get(0)); } return createNamedEntityGraph(); }
/** * If not already created, a new <code>named-native-query</code> element will be created and returned. * Otherwise, the first existing <code>named-native-query</code> element will be returned. * @return the instance defined for the element <code>named-native-query</code> */ public NamedNativeQuery<Entity<T>> getOrCreateNamedNativeQuery() { List<Node> nodeList = childNode.get("named-native-query"); if (nodeList != null && nodeList.size() > 0) { return new NamedNativeQueryImpl<Entity<T>>(this, "named-native-query", childNode, nodeList.get(0)); } return createNamedNativeQuery(); }
/** * If not already created, a new <code>convert</code> element will be created and returned. * Otherwise, the first existing <code>convert</code> element will be returned. * @return the instance defined for the element <code>convert</code> */ public Convert<Entity<T>> getOrCreateConvert() { List<Node> nodeList = childNode.get("convert"); if (nodeList != null && nodeList.size() > 0) { return new ConvertImpl<Entity<T>>(this, "convert", childNode, nodeList.get(0)); } return createConvert(); }
/** * If not already created, a new <code>named-query</code> element will be created and returned. * Otherwise, the first existing <code>named-query</code> element will be returned. * @return the instance defined for the element <code>named-query</code> */ public NamedQuery<Entity<T>> getOrCreateNamedQuery() { List<Node> nodeList = childNode.get("named-query"); if (nodeList != null && nodeList.size() > 0) { return new NamedQueryImpl<Entity<T>>(this, "named-query", childNode, nodeList.get(0)); } return createNamedQuery(); }
/** * Creates a new <code>entity</code> element * @return the new created instance of <code>Entity<OrmDescriptor></code> */ public Entity<OrmDescriptor> createEntity() { return new EntityImpl<OrmDescriptor>(this, "entity", model); }