[Biojava-dev] [Bug 2625] New: Parent Child Relationship of BioEntry via BioEntryRelationship

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Oct 23 13:16:43 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2625

           Summary: Parent Child Relationship of BioEntry via
                    BioEntryRelationship
           Product: BioJava
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DB / BioSQL
        AssignedTo: biojava-dev at biojava.org
        ReportedBy: ch.koeberle at googlemail.com


An BioEntry-Object has only the methode getRelationships(), these method gives
all BioEntryRelationship-Objkcts where the BioEntry-Object is the result of
BioEntryRelationship.getObject() . Because the in the BioEntry.hbm.xml is only
these mapping:
<set name="relationships" lazy="false" cascade="all-delete-orphan"
sort="natural" inverse="true">
<key column="object_bioentry_id"/>
<one-to-many class="BioEntryRelationship" embed-xml="true"/>
</set>

I miss somethings like this:
BioEntry.getReverseRelationships() (or getChilds())
<set name="reverseRelationships" lazy="false" cascade="all-delete-orphan"
sort="natural" inverse="true">
<key column="subject_bioentry_id"/>
<one-to-many class="BioEntryRelationship" embed-xml="true"/>
</set>


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the biojava-dev mailing list