[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-614) @WhereJoinTable doesn't work with @ManyToOne

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue May 22 19:31:04 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27012 ] 

Emmanuel Bernard commented on ANN-614:
--------------------------------------

This feature is not available in Hibernate Core

> @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