Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-986

One-To-One on reverse engineering hibernate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 8.2
    • 9.0
    • None
    • None

    Description

      I have two tables with one-by-one relationship (see attached picture)

      When I start generate hibernate reverse engineering mechanism

      It generates one-to-many relationship

      <set name="TSiteuserDatas" table="t_siteuser_data" inverse="true" lazy="true" fetch="select">
                  <key>
                      <column name="item_id" unique="true" />
                  </key>
                  <one-to-many class="ru.samp_net.objects.TSiteuserData" />
              </set>
      

      Please fix it or give me advice with workaround

      Attachments

        1. image-2018-06-23-19-37-53-561.png
          97 kB
          Philipp Khlupin

        Activity

          People

            Unassigned Unassigned
            pkhlupin Philipp Khlupin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: