[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1172) hbm2java ignores fetch="subselect" in hbm.xml

Sebastian Braun (JIRA) noreply at atlassian.com
Sun Dec 19 10:04:13 EST 2010


hbm2java ignores fetch="subselect" in hbm.xml
---------------------------------------------

                 Key: HBX-1172
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1172
             Project: Hibernate Tools
          Issue Type: Bug
          Components: hbm2java
    Affects Versions: 3.2.0.GA
         Environment: Mac OS-X 10.6.5
java version 1.6.0_22
Hibernate Tools 3.2.3.GA
            Reporter: Sebastian Braun


<set name="drivers" fetch="subselect">
   <key column="DRIVER_ID" />
   <one-to-many class="test.hibernate.Driver" />
</set>

generates this:

@OneToMany(fetch = FetchType.LAZY)
@JoinColumn(name = "DRIVER_ID", updatable = false)
public Set<Driver> getDrivers()
{
   return this.drivers;
}

but the Fetch-Annotations is missing:
@Fetch(value=FetchMode.SUBSELECT)

Greetings

Sebastian

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