Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.