List of usage examples for org.hibernate.annotations CascadeType ALL
CascadeType ALL
To view the source code for org.hibernate.annotations CascadeType ALL.
Click Source Link
From source file:au.edu.anu.metadatastores.datamodel.store.Item.java
License:Open Source License
/** * Get the item relations//from w w w. ja v a2 s . co m * * return The item relations */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "itemByIid") @Cascade(CascadeType.ALL) @NotFound(action = NotFoundAction.IGNORE) public Set<ItemRelation> getItemRelationsForIid() { return this.itemRelationsForIid; }
From source file:au.edu.anu.metadatastores.datamodel.store.Item.java
License:Open Source License
/** * Get the relationships that are held on the related item * /*from www .j a v a 2 s . com*/ * @return The item reverse relations */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "itemByRelatedIid") @Cascade(CascadeType.ALL) @NotFound(action = NotFoundAction.IGNORE) public Set<ItemRelation> getItemRelationsForRelatedIid() { return this.itemRelationsForRelatedIid; }
From source file:au.edu.anu.metadatastores.datamodel.store.Item.java
License:Open Source License
/** * Get the potential relations that are held on the related item * /*from w ww . j av a2 s . c om*/ * @return The potential relations for the item */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "itemByRelatedIid") @Cascade(CascadeType.ALL) @NotFound(action = NotFoundAction.IGNORE) public Set<PotentialRelation> getPotentialRelationsForRelatedIid() { return this.potentialRelationsForRelatedIid; }
From source file:au.edu.anu.metadatastores.datamodel.store.Item.java
License:Open Source License
/** * Get the potential relations for the item * /*from w w w . j a v a 2s .com*/ * @return The potential relations */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "itemByIid") @Cascade(CascadeType.ALL) @NotFound(action = NotFoundAction.IGNORE) public Set<PotentialRelation> getPotentialRelationsForIid() { return this.potentialRelationsForIid; }
From source file:au.edu.anu.metadatastores.datamodel.store.Item.java
License:Open Source License
/** * Get the item attributes/*from w w w. ja va 2 s .c o m*/ * * @return The item attributes */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "item") @Cascade(CascadeType.ALL) @NotFound(action = NotFoundAction.IGNORE) public Set<ItemAttribute> getItemAttributes() { return this.itemAttributes; }
From source file:au.edu.anu.metadatastores.datamodel.store.Item.java
License:Open Source License
/** * Get the history item attributes/*from w w w. j av a 2 s . com*/ * * @return The history item attributes */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "item") @Cascade(CascadeType.ALL) @NotFound(action = NotFoundAction.IGNORE) public Set<HistItemAttribute> getHistItemAttributes() { return histItemAttributes; }
From source file:au.edu.anu.metadatastores.datamodel.store.ItemAttribute.java
License:Open Source License
/** * Get the item attributes//w w w . ja v a 2 s . c o m * * @return The item attributes */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "itemAttribute") @Cascade(CascadeType.ALL) public Set<ItemAttribute> getItemAttributes() { return this.itemAttributes; }
From source file:au.edu.anu.orcid.db.model.Person.java
License:Open Source License
/** * Get the associated email address/*from w w w . j a va 2s.c o m*/ * * @return The email addresses */ @OneToMany(fetch = FetchType.EAGER, mappedBy = "person") @Cascade(CascadeType.ALL) @NotFound(action = NotFoundAction.IGNORE) public List<EmailAddress> getEmailAddresses() { return emailAddresses; }
From source file:au.edu.anu.orcid.db.model.Publication.java
License:Open Source License
/** * Get the associated authors/*from w ww.j a v a 2 s. c o m*/ * * @return The authors */ @OneToMany(fetch = FetchType.EAGER, mappedBy = "publication") @Cascade(CascadeType.ALL) @NotFound(action = NotFoundAction.IGNORE) public List<Author> getAuthors() { return authors; }
From source file:cms.entity.account.Arctype.java
License:Apache License
@OneToMany(mappedBy = "arctype") @Cascade(CascadeType.ALL) @OrderBy("id desc") @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public List<Shop> getShopList() { return shopList; }