/** * If not already created, a new <code>cascade</code> element with the given value will be created. * Otherwise, the existing <code>cascade</code> element will be returned. * @return a new or existing instance of <code>CascadeType<ManyToOne<T>></code> */ public CascadeType<ManyToOne<T>> getOrCreateCascade() { Node node = childNode.getOrCreate("cascade"); CascadeType<ManyToOne<T>> cascade = new CascadeTypeImpl<ManyToOne<T>>(this, "cascade", childNode, node); return cascade; }
/** * If not already created, a new <code>cascade</code> element with the given value will be created. * Otherwise, the existing <code>cascade</code> element will be returned. * @return a new or existing instance of <code>CascadeType<OneToMany<T>></code> */ public CascadeType<OneToMany<T>> getOrCreateCascade() { Node node = childNode.getOrCreate("cascade"); CascadeType<OneToMany<T>> cascade = new CascadeTypeImpl<OneToMany<T>>(this, "cascade", childNode, node); return cascade; }
/** * If not already created, a new <code>cascade</code> element with the given value will be created. * Otherwise, the existing <code>cascade</code> element will be returned. * @return a new or existing instance of <code>CascadeType<ManyToMany<T>></code> */ public CascadeType<ManyToMany<T>> getOrCreateCascade() { Node node = childNode.getOrCreate("cascade"); CascadeType<ManyToMany<T>> cascade = new CascadeTypeImpl<ManyToMany<T>>(this, "cascade", childNode, node); return cascade; }
/** * If not already created, a new <code>cascade</code> element with the given value will be created. * Otherwise, the existing <code>cascade</code> element will be returned. * @return a new or existing instance of <code>CascadeType<OneToOne<T>></code> */ public CascadeType<OneToOne<T>> getOrCreateCascade() { Node node = childNode.getOrCreate("cascade"); CascadeType<OneToOne<T>> cascade = new CascadeTypeImpl<OneToOne<T>>(this, "cascade", childNode, node); return cascade; }
/** * If not already created, a new <code>cascade</code> element with the given value will be created. * Otherwise, the existing <code>cascade</code> element will be returned. * @return a new or existing instance of <code>CascadeType<OneToMany<T>></code> */ public CascadeType<OneToMany<T>> getOrCreateCascade() { Node node = childNode.getOrCreate("cascade"); CascadeType<OneToMany<T>> cascade = new CascadeTypeImpl<OneToMany<T>>(this, "cascade", childNode, node); return cascade; }
/** * If not already created, a new <code>cascade</code> element with the given value will be created. * Otherwise, the existing <code>cascade</code> element will be returned. * @return a new or existing instance of <code>CascadeType<ManyToOne<T>></code> */ public CascadeType<ManyToOne<T>> getOrCreateCascade() { Node node = childNode.getOrCreate("cascade"); CascadeType<ManyToOne<T>> cascade = new CascadeTypeImpl<ManyToOne<T>>(this, "cascade", childNode, node); return cascade; }
/** * If not already created, a new <code>cascade</code> element with the given value will be created. * Otherwise, the existing <code>cascade</code> element will be returned. * @return a new or existing instance of <code>CascadeType<ManyToMany<T>></code> */ public CascadeType<ManyToMany<T>> getOrCreateCascade() { Node node = childNode.getOrCreate("cascade"); CascadeType<ManyToMany<T>> cascade = new CascadeTypeImpl<ManyToMany<T>>(this, "cascade", childNode, node); return cascade; }
/** * If not already created, a new <code>cascade</code> element with the given value will be created. * Otherwise, the existing <code>cascade</code> element will be returned. * @return a new or existing instance of <code>CascadeType<OneToOne<T>></code> */ public CascadeType<OneToOne<T>> getOrCreateCascade() { Node node = childNode.getOrCreate("cascade"); CascadeType<OneToOne<T>> cascade = new CascadeTypeImpl<OneToOne<T>>(this, "cascade", childNode, node); return cascade; }