[hibernate-issues] [Hibernate-JIRA] Updated: (ANN-614) @WhereJoinTable doesn't work with @ManyToOne
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Tue May 22 19:27:04 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard updated ANN-614:
---------------------------------
Priority: Minor (was: Major)
Issue Type: New Feature (was: Bug)
> @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
> 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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list