1 Reply Latest reply on Sep 17, 2010 2:44 PM by Andy Fong

    seam generate-model issue

    Andy Fong Newbie
      I have been using jbosstools with eclipse and the database reverse engineering works fine.

      Now, I created a new project using seam-gen on the same database. On a table with foreign keys referring to it, hibernate generates two fields for each foreign key.

      For example, if I have an Item table referring to the Category table, the Category model generated will have the following:

              private Set<Item> items = new HashSet<Item>(0);
              private Set<Item> items_1 = new HashSet<Item>(0);

      Again, on the same db using jbosstool do not have the same problem. Both are using Seam 2.2.0_GA.

      I can manually delete the extract field but it's annoying. Any idea?

      Andy