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:edu.ku.brc.specify.datamodel.Accession.java
License:Open Source License
/** * @return the addressOfRecord//from w ww . j a va 2 s . com */ @ManyToOne(cascade = {}, fetch = FetchType.LAZY) @JoinColumn(name = "AddressOfRecordID", unique = false, nullable = true, insertable = true, updatable = true) @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public AddressOfRecord getAddressOfRecord() { return addressOfRecord; }
From source file:edu.ku.brc.specify.datamodel.AccessionAttachment.java
License:Open Source License
@ManyToOne(cascade = {}, fetch = FetchType.LAZY) @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) @JoinColumn(name = "AttachmentID", nullable = false) @OrderBy("ordinal ASC") public Attachment getAttachment() { return attachment; }
From source file:edu.ku.brc.specify.datamodel.Agent.java
License:Open Source License
/** * *///w w w .j a va 2 s . co m @OneToMany(mappedBy = "group") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<GroupPerson> getGroups() { return this.groups; }
From source file:edu.ku.brc.specify.datamodel.Agent.java
License:Open Source License
/** * *//* w w w .jav a 2 s. c om*/ @OneToMany(mappedBy = "member") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<GroupPerson> getMembers() { return this.members; }
From source file:edu.ku.brc.specify.datamodel.Agent.java
License:Open Source License
/** * *///from w w w.ja v a 2s . c o m @OneToMany(mappedBy = "agent") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<Collector> getCollectors() { return this.collectors; }
From source file:edu.ku.brc.specify.datamodel.Agent.java
License:Open Source License
/** * * Associated record in Address table *//*from w w w .j av a 2s. co m*/ @OneToMany(mappedBy = "agent") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<Address> getAddresses() { return this.addresses; }
From source file:edu.ku.brc.specify.datamodel.Agent.java
License:Open Source License
@OneToMany(mappedBy = "agent") @org.hibernate.annotations.Cascade({ org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN }) @OrderBy("ordinal ASC") public Set<AgentAttachment> getAgentAttachments() { return agentAttachments; }
From source file:edu.ku.brc.specify.datamodel.Agent.java
License:Open Source License
/** * @return the variants// w ww . ja v a 2 s.c o m */ @OneToMany(mappedBy = "agent") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<AgentVariant> getVariants() { return variants; }
From source file:edu.ku.brc.specify.datamodel.Agent.java
License:Open Source License
/** * @return the geographies// w w w. j ava2s . c o m */ @OneToMany(mappedBy = "agent") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<AgentGeography> getAgentGeographies() { return agentGeographies; }
From source file:edu.ku.brc.specify.datamodel.Agent.java
License:Open Source License
/** * @return the specialties/* w w w .j a v a 2 s .co m*/ */ @OneToMany(mappedBy = "agent") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN }) public Set<AgentSpecialty> getAgentSpecialties() { return agentSpecialties; }