facebook

hbm generation not same as middlegen

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #217125 Reply

    tzman
    Member

    Maybe this is a known bug, I did see a few posts similar but it seemed as though they were for versions prior to 3.8.2.

    Having a composite foreign key relationship the following is generated from MyEclipse:

    <many-to-one name=”adiCarAttr” column=CAR_ID” class=”AdiCarAttr” not-null=”true” />

    <many-to-one name=”adiCarAttr1″ column=”CAR_TCN” class=”AdiCarAttr” not-null=”true” />

    However, Middlegen will generate this many-to-one mapping:

    <many-to-one
    name=”adiCarAttr”
    class=”inlhh.da.dao.AdiCarAttr”
    not-null=”true”
    >
    <column name=”CAR_ID” />
    <column name=”CAR_TCN” />
    </many-to-one>

    Also, is it possible to set the destination directory of the generated hbm.xml files? I would like to send these directly to a build directory instead of the source directory.

    BTW You guys are doing great work, I love the tools.

    Thanks again,

    #217209 Reply

    Riyad Kalla
    Member

    I’ll check on this for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: hbm generation not same as middlegen

You must be logged in to post in the forum log in