Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Participant ,
Dec 27, 2011 Dec 27, 2011

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.

846
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 03, 2012 Jan 03, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 06, 2012 Feb 06, 2012
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources