org.hibernate.annotations.ForeignKey Java Examples

The following examples show how to use org.hibernate.annotations.ForeignKey. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CgFormFieldEntity.java    From jeewx with Apache License 2.0 5 votes vote down vote up
/**
 *方法: 取得TablePropertyEntity
 *@return: TablePropertyEntity  关联的表ID
 */
@ManyToOne
@JoinColumn(name ="table_id",nullable=false,referencedColumnName="id")
@JsonIgnore
@ForeignKey(name="null")
public CgFormHeadEntity getTable(){
	return this.table;
}
 
Example #2
Source File: CgFormFieldEntity.java    From jeecg with Apache License 2.0 5 votes vote down vote up
/**
 *方法: 取得TablePropertyEntity
 *@return: TablePropertyEntity  关联的表ID
 */
@ManyToOne
@JoinColumn(name ="table_id",nullable=false,referencedColumnName="id")
@JsonIgnore
@ForeignKey(name="null")
public CgFormHeadEntity getTable(){
	return this.table;
}
 
Example #3
Source File: CgFormIndexEntity.java    From jeecg with Apache License 2.0 5 votes vote down vote up
/**
 *方法: 取得TablePropertyEntity
 *@return: TablePropertyEntity  关联的表ID
 */
@ManyToOne
@JoinColumn(name ="table_id",nullable=false,referencedColumnName="id")
@JsonIgnore
@ForeignKey(name="null")
public CgFormHeadEntity getTable(){
	return this.table;
}
 
Example #4
Source File: TSTerritory.java    From jeewx with Apache License 2.0 4 votes vote down vote up
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "territoryparentid")
@ForeignKey(name="null")//取消hibernate的外键生成
public TSTerritory getTSTerritory() {
	return this.TSTerritory;
}