Issue Details (XML | Word | Printable)

Key: XDT-1665
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: xdoclet-devel (Use for new issues)
Reporter: Krzysztof Hycnar
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XDoclet

@hibernate.many-to-one unique="true" produces duplicated unique attribute in the hibernate mapping file.

Created: 11/Oct/06 01:35 PM   Updated: 11/Oct/06 01:35 PM
Component/s: Hibernate Module
Affects Version/s: 1.2.3
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Windows XP


 Description  « Hide
This annotation:

    /**
     * @hibernate.many-to-one class="pl.addcom.df.Employee" name="deputy"
     * column="deputy_id" not-null="true" cascade="none"
     * unique="true"
     *
     * @return Returns the deputy.
     */

produces that entry in the hibernate mapping file:

       <many-to-one
            name="deputy"
            class="pl.addcom.df.Employee"
            cascade="none"
            outer-join="auto"
            update="true"
            insert="true"
            unique="true"
            column="deputy_id"
            not-null="true"
            unique="true"
        />

The problem is duplicated "unique" attribute, and this in turn causes schemaexport task to end with an error.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.