]
Sergey Zimbovskiy commented on HHH-4335:
----------------------------------------
with @OneToMany dont work to
Hibernate version 3.6
@WhereJoinTable doesn't work with @ManyToOne
--------------------------------------------
Key: HHH-4335
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4335
Project: Hibernate Core
Issue Type: New Feature
Components: annotations
Reporter: Victor
Priority: Minor
@ManyToOne( fetch=FetchType.LAZY )
@JoinTable(name="CATEGORY_PRODUCT",
uniqueConstraints = @UniqueConstraint(columnNames = {"PDID",
"CATID"}),
joinColumns = @JoinColumn(name="PDID"),
inverseJoinColumns = @JoinColumn(name="CATID")
)
@WhereJoinTable(clause="CATMAIN=1")
protected Category getMainCategory() {
return mainCategory;
}
protected void setMainCategories(Category mainCategory) {
this.mainCategory = mainCategory;
}
Best regards,
Victor
--
This message is automatically generated by JIRA.
For more information on JIRA, see: