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:gt.entities.GroupUser.java
@ManyToOne @JoinColumn(name = "idGroup", referencedColumnName = "idGroup", nullable = false) @Cascade(CascadeType.ALL) public Group getGroup() { return group; }
From source file:gt.entities.Person.java
@ManyToOne @JoinColumn(name = "idAddress", referencedColumnName = "idAddress", nullable = false) @Cascade(CascadeType.ALL) public Address getAddress() { return address; }
From source file:gt.entities.ProfileMenu.java
@ManyToOne @JoinColumn(name = "idProfile", referencedColumnName = "idProfile", nullable = false) @Cascade(CascadeType.ALL) public Profile getProfile() { return profile; }
From source file:gt.entities.State.java
@OneToMany(mappedBy = "state") @Cascade(CascadeType.ALL) public List<City> getCities() { return cities; }
From source file:gt.entities.User.java
@ManyToOne @JoinColumn(name = "idPerson", referencedColumnName = "idPerson", nullable = false) @Cascade(CascadeType.ALL) public Person getPerson() { return person; }
From source file:org.dlw.ai.blackboard.rule.Antecedent.java
License:Apache License
/** * @return the {@link org.dlw.ai.blackboard.rule.Rule} object */// w w w . j av a 2 s .c om @OneToOne @Cascade({ CascadeType.ALL }) @JoinColumn(name = "rule_fk") public Rule getRule() { return rule; }
From source file:org.emonocot.model.Taxon.java
License:Open Source License
/** * @return a map of descriptions about the taxon *//*w ww . j a va2s . co m*/ @OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true) @Cascade({ CascadeType.ALL }) @JsonManagedReference("descriptions-taxon") public Set<Description> getDescriptions() { return descriptions; }
From source file:org.emonocot.model.Taxon.java
License:Open Source License
/** * @return the distribution associated with this taxon */// ww w . j a v a 2 s .c om @OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true) @Cascade({ CascadeType.ALL }) @JsonManagedReference("distribution-taxon") public Set<Distribution> getDistribution() { return distribution; }
From source file:org.emonocot.model.Taxon.java
License:Open Source License
/** * @return a list of identifiers the taxon *//*from ww w . ja v a2 s . c o m*/ @OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true) @Cascade({ CascadeType.ALL }) @JsonManagedReference("identifier-taxon") public Set<Identifier> getIdentifiers() { return identifiers; }
From source file:org.emonocot.model.Taxon.java
License:Open Source License
/** * @return a map of vernacularNames for the taxon *///from w ww . j a v a 2s.c om @OneToMany(fetch = FetchType.LAZY, mappedBy = "taxon", orphanRemoval = true) @Cascade({ CascadeType.ALL }) @JsonManagedReference("vernacularNames-taxon") public Set<VernacularName> getVernacularNames() { return vernacularNames; }