]
Diego Pires Plentz updated ANN-614:
-----------------------------------
Component/s: binder
@WhereJoinTable doesn't work with @ManyToOne
--------------------------------------------
Key: ANN-614
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-614
Project: Hibernate Annotations
Issue Type: New Feature
Components: binder
Affects Versions: 3.3.0.ga
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.
-
If you think it was sent incorrectly contact one of the administrators: