views:

324

answers:

0

Hi i an using Hibernate tool with eclipse ganymede 3.4.1 . Now when i create the .hbm.xml file using the code generation of Hibernate tool,it is automatically creating a composite key. I need a mapping something like :

        <id name="id" type="java.lang.Integer">
            <column name="id" />
        </id>
        <key-property name="name" type="string">
            <column name="name" length="30" />
        </key-property>
        </class>

.

but it generates something like :

can someone tell me how to do it.

Thanks in advance, Rima