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

Victor (JIRA) noreply at atlassian.com
Mon May 21 10:19:04 EDT 2007


@WhereJoinTable doesn't work with @ManyToOne
--------------------------------------------

                 Key: ANN-614
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-614
             Project: Hibernate Annotations
          Issue Type: Bug
    Affects Versions: 3.3.0.ga
            Reporter: Victor


    @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