Announcement Announcement Module
Collapse
No announcement yet.
XDoclet bug (many-to-one lazy loading)? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XDoclet bug (many-to-one lazy loading)?

    Hi,
    In my class I want to disable the lazy loading but only for a specific property
    If I'm using the following XDoclet adnotation:


    /**
    * The referenced AddressDTO object for this CustomerDTO.
    *
    * @return the address
    *
    * @hibernate.many-to-one class="AddressDTO"
    * name="address"
    * lazy="false"
    *
    *
    * @hibernate.column name="FK_CUST_ADDRESS_ID"
    *
    */

    The result is:

    <many-to-one
    name="address"
    class="AddressDTO"
    cascade="none"
    outer-join="auto"
    update="true"
    insert="true"
    >
    <column
    name="FK_CUST_ADDRESS_ID"
    />
    </many-to-one>

    <set
    name="aks"
    lazy="false"
    inverse="true"
    cascade="none"
    sort="unsorted"
    >

    but to work lazy="false" should be in the many-to-many block (not in set).

    Is this a bug?
Working...
X