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

One-To-One on reverse engineering hibernate

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: 8.2
    • Fix Version/s: 9.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: