Skip to main content
Gene_Godsey
Inspiring
December 27, 2011
Question

ORM Mappings.............

  • December 27, 2011
  • 2 replies
  • 896 views

I have a base table and a child table.

Both of them have their model cfc with their properties assigned and they display their models fine on an writedump().

I have in the parent a property that has the index infro from the child table. I would like the display the name of that index using a one-to-many relationship in hibernate.

I have tried a bunch of ways to output the projectOutput data and have failed:

property name="projectOutput" fieldtype="one-to-many" cfc="Project" FKColumn="projectID" inversejoincolumn="projectID" linktable="PRJCT"; 

There is data there I just cannot display this from the child table.

Please assist.

Thanks in advance.

    This topic has been closed for replies.

    2 replies

    Inspiring
    February 6, 2012

    Entity_1 - remove linktable and inversejoincolumn. Entity_2  - property name='Entity1name' fieldtype="whatever-it-is" cfc="Entity1". Test and if that doesn't work add remotefetching="true" to Entity_1 property that maps to Entity_2.

    Gene_Godsey
    Inspiring
    January 3, 2012

    Well let me ask this then:

    Is it necessary to have the relationships mapped at both entities?

    i.e.:

    entity_1 has a mapping to entity_2 and entity_2 has a mapping to entity one?

    Curious