3 Replies Latest reply on Feb 20, 2015 5:59 AM by Max Rydahl Andersen

    Jboss Eclipse Hibernate Plugin Reverse Engineering Doubt.

    Varun Pahwa Newbie



      While using reverse engineering for some tables to generate the mapping files and domain classes, i am able to generate the Set<E>. I have some use case wherein i need to have a map.

      Please guide how to use foreign-key to generate the Maps instead of set.


      <foreign-key constraint-name="${FOREIGN_KEY}">

        <many-to-one property="${PROPERTY_NAME}"/>

        <set property="${SET_PROPERTY_NAME}"/>



      Or is there any other way which i can use for the same.