Entity for EA_AUDIT_PROGRAM is pojo with all getter and setter methods called EaAuditProgram
Entity MultiProgramFinding has a leadEaAuditProgram and nonLeadEaAuditPrograms both these properties are mapped to EaAuditProgram , in order to have bidirectional relation in EaAuditProgram I have to map MultiProgramFinding twice , is this how I should map or is there a better way please advice me ?
also I posted this question in spring forums.
in order to have bidirectional relation in EaAuditProgram I have to map MultiProgramFinding twice...
How have you mapped this in "EaAuditProgram", can you show that part of the code? What's the issue you are having if it's not working?
I haven't mapped yet and I dont have any issue, what I am asking is whether it is nice desing to map an entity twice in other entity in mycase in eaAuditprogram I have to map MultiProgramFinding twice , I am asking suggestions if this can be done in a better way ?