本文整理了Java中org.hibernate.annotations.Cascade.<init>()
方法的一些代码示例,展示了Cascade.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cascade.<init>()
方法的具体详情如下:
包路径:org.hibernate.annotations.Cascade
类名称:Cascade
方法名:<init>
暂无
代码示例来源:origin: hibernate/hibernate-orm
@OneToMany(targetEntity = org.hibernate.test.annotations.Discount.class,
cascade = CascadeType.ALL, mappedBy = "owner")
@Cascade({ALL})
public Collection getDiscountTickets() {
return discountTickets;
}
代码示例来源:origin: hibernate/hibernate-orm
@ManyToMany(
cascade = {CascadeType.PERSIST, CascadeType.MERGE},
mappedBy = "employees"
)
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
org.hibernate.annotations.CascadeType.PERSIST})
public Collection<Employer> getEmployers() {
return employers;
}
代码示例来源:origin: hibernate/hibernate-orm
@ManyToOne(fetch = FetchType.LAZY)
@Cascade(CascadeType.ALL)
public SideEntity getSubField() {
return subField;
}
代码示例来源:origin: hibernate/hibernate-orm
@OneToMany(mappedBy = "mother")
@Cascade({ CascadeType.SAVE_UPDATE })
public Set<Son> getSons() { return sons; }
public void setSons(Set<Son> sons) { this.sons = sons; }
代码示例来源:origin: hibernate/hibernate-orm
@Entity
@Table( name = "FOO" )
private static class Foo {
@Id
@GeneratedValue
Long id;
@OneToMany( orphanRemoval = true, mappedBy = "foo", targetEntity = Bar.class )
@Cascade( CascadeType.ALL )
Set<Bar> bars = new HashSet<>();
}
}
代码示例来源:origin: hibernate/hibernate-orm
@OneToMany
@OrderColumn(name = "son_arriv")
@JoinColumn(name = "father_id", nullable = false)
@Cascade({ CascadeType.SAVE_UPDATE })
public List<Son> getOrderedSons() { return orderedSons; }
public void setOrderedSons(List<Son> orderedSons) { this.orderedSons = orderedSons; }
代码示例来源:origin: hibernate/hibernate-orm
@ManyToMany(
targetEntity = org.hibernate.test.annotations.manytomany.Contractor.class,
cascade = {CascadeType.PERSIST, CascadeType.MERGE}
)
@JoinTable(
name = "EMPLOYER_CONTRACTOR",
joinColumns = {@JoinColumn(name = "EMPLOYER_ID")},
inverseJoinColumns = {@JoinColumn(name = "CONTRACTOR_ID")}
)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@OrderBy("name desc")
public List getContractors() {
return contractors;
}
代码示例来源:origin: hibernate/hibernate-orm
@ManyToMany(
targetEntity = org.hibernate.test.annotations.manytomany.Employee.class,
cascade = {CascadeType.PERSIST, CascadeType.MERGE}
)
@JoinTable(
name = "EMPLOYER_EMPLOYEE",
joinColumns = {@JoinColumn(name = "EMPER_ID")},
inverseJoinColumns = {@JoinColumn(name = "EMPEE_ID")}
)
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
@OrderBy("name asc")
public Collection getEmployees() {
return employees;
}
代码示例来源:origin: shopizer-ecommerce/shopizer
nullable = false, updatable = false) }
@Cascade({
org.hibernate.annotations.CascadeType.DETACH,
org.hibernate.annotations.CascadeType.LOCK,
代码示例来源:origin: hibernate/hibernate-orm
metaColumn = @Column( name = "property_type" )
@Cascade( { org.hibernate.annotations.CascadeType.ALL })
@JoinTable(name = "repository_properties",
joinColumns = @JoinColumn(name = "repository_id"),
代码示例来源:origin: hibernate/hibernate-orm
@Cascade(org.hibernate.annotations.CascadeType.ALL)
@OrderBy("name")
java.util.List<B> bs = new ArrayList<B>();
代码示例来源:origin: hibernate/hibernate-orm
@ManyToAny(
metaColumn = @Column( name = "property_type" ) )
@AnyMetaDef( idType = "integer", metaType = "string",
metaValues = {
@MetaValue( value = "S", targetEntity = StringProperty.class ),
@MetaValue( value = "I", targetEntity = IntegerProperty.class ) } )
@Cascade( { org.hibernate.annotations.CascadeType.ALL } )
@JoinTable( name = "obj_properties", joinColumns = @JoinColumn( name = "obj_id" ),
inverseJoinColumns = @JoinColumn( name = "property_id" ) )
public List<Property> getGeneralProperties() {
return generalProperties;
}
代码示例来源:origin: hibernate/hibernate-orm
@Cascade(org.hibernate.annotations.CascadeType.ALL)
@OrderBy("name")
java.util.List<C> cs = new ArrayList<C>();
代码示例来源:origin: BroadleafCommerce/BroadleafCommerce
@Cascade(value={org.hibernate.annotations.CascadeType.ALL, org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="blCMSElements")
@OrderBy("fieldOrder")
代码示例来源:origin: hibernate/hibernate-orm
@Any( metaColumn = @Column( name = "property_type" ) )
@Cascade( value = { CascadeType.ALL } )
@AnyMetaDef( idType = "integer", metaType = "string", metaValues = {
@MetaValue( value = "S", targetEntity = StringProperty.class ),
@MetaValue( value = "I", targetEntity = IntegerProperty.class )
} )
@JoinColumn( name = "property_id" )
public Property getSomeProperty() {
return someProperty;
}
代码示例来源:origin: hibernate/hibernate-orm
@Any( metaColumn = @Column( name = "property_type" ), fetch = FetchType.LAZY )
@Cascade( value = { CascadeType.ALL } )
@AnyMetaDef( idType = "integer", metaType = "string", metaValues = {
@MetaValue( value = "S", targetEntity = StringProperty.class ),
@MetaValue( value = "I", targetEntity = IntegerProperty.class )
} )
@JoinColumn( name = "property_id" )
public Property getSomeProperty() {
return someProperty;
}
代码示例来源:origin: hibernate/hibernate-orm
@ManyToAny( metaColumn = @Column( name = "property_type" ) )
@AnyMetaDef(
idType = "integer", metaType = "string",
metaValues = {
@MetaValue( value = "S", targetEntity = StringProperty.class ),
@MetaValue( value = "I", targetEntity = IntegerProperty.class ) } )
@Cascade( org.hibernate.annotations.CascadeType.ALL )
@JoinTable(
name = "map_properties",
joinColumns = @JoinColumn( name = "map_id" ),
inverseJoinColumns = @JoinColumn( name = "property_id" ) )
@MapKeyColumn( name = "map_key", nullable = false ) //keep for legacy test
public Map<String, Property> getProperties() {
return properties;
}
代码示例来源:origin: BroadleafCommerce/BroadleafCommerce
@Cascade(value={org.hibernate.annotations.CascadeType.ALL})
@JoinColumn(name = "SANDBOX_ID")
protected SandBox sandBox;
代码示例来源:origin: BroadleafCommerce/BroadleafCommerce
@MapKeyColumn(name = "FIELD_NAME", nullable = false)
@Column(name = "FIELD_VALUE", length = Integer.MAX_VALUE - 1)
@Cascade(org.hibernate.annotations.CascadeType.ALL)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements")
@AdminPresentationMap(friendlyName = "CustomerPaymentImpl_additionalFields",
代码示例来源:origin: BroadleafCommerce/BroadleafCommerce
@Cascade(value = { org.hibernate.annotations.CascadeType.MERGE, org.hibernate.annotations.CascadeType.PERSIST })
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blSiteElements")
@BatchSize(size = 50)
内容来源于网络,如有侵权,请联系作者删除!