Uploaded image for project: 'OJB'
  1. OJB
  2. OJB-55

Getting foreignkeyField's FieldDescriptor is failing if the foreignkey field is defined in the base class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.3
    • 1.0.4
    • PB-API
    • None
    • Windows 2000, Jboss application server

    Description

      Hi,
      we are using ojb in one of our application.
      We got the exception when we try to find the entity whos parent's foreign key field is null.
      that is out critier will be "attr IS NULL"
      Basically getForeignKeyFieldDescriptors() method in ObjectReferenceDescriptor.java is trying to find the foreignkeyfieldDescritpros in the current class only, thats why its giving exception.
      If it is not available in the current class then it has to find from base class.

      I have changed ObjectReferenceDescriptor.java -> getForeignKeyFieldDescriptors() method.
      i m attaching that file also.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rajadurai_k@trigent.com Rajadurai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: