glassfish
  1. glassfish
  2. GLASSFISH-594

problem occurs when fetching lazily a ManyToOne relationship

    Details

    • Issuezilla Id:
      594
    • Status Whiteboard:
      Hide

      fixed-9.0peur1

      Show
      fixed-9.0peur1

      Description

      Unable to deploy an entity which uses a ManyToOne relationship with a lazy
      fetching strategy. Message from the log is:

      Local Exception Stack:
      Exception [TOPLINK-127] (Oracle TopLink Essentials - 2006.4 (Build 060412)):
      oracle.toplink.essentials.exceptions.DescriptorException
      Exception Description: The get method for the attribute [b] does not return a
      ValueHolderInterface, but the mapping uses indirection.
      Mapping: oracle.toplink.essentials.mappings.OneToOneMapping[b]
      Descriptor: RelationalDescriptor(com.seryx.test.A --> [DatabaseTable(A)])
      at
      oracle.toplink.essentials.exceptions.DescriptorException.returnAndMappingWithIndirectionMismatch(DescriptorException.java:1341)
      [...]

      The case works with the eager strategy.

        Activity

        Hide
        rnicob added a comment -

        Created an attachment (id=230)
        test case

        Show
        rnicob added a comment - Created an attachment (id=230) test case
        Hide
        marina vatkina added a comment -

        As there is a work around, it's not a p1 (which would be a show-stopper without
        any possible work around or a major data corruption issue). Assigned to Tom

        Show
        marina vatkina added a comment - As there is a work around, it's not a p1 (which would be a show-stopper without any possible work around or a major data corruption issue). Assigned to Tom
        Hide
        pkrogh added a comment -

        looking into this

        Show
        pkrogh added a comment - looking into this
        Hide
        tware added a comment -

        Fixed checked in.

        We no longer do any project-related modifications in weaving code. Instead,
        when we build the transformer, we also modify the project to use method names
        for LAZY OneToOneMappings that we will weave in.

        Show
        tware added a comment - Fixed checked in. We no longer do any project-related modifications in weaving code. Instead, when we build the transformer, we also modify the project to use method names for LAZY OneToOneMappings that we will weave in.
        Hide
        tware added a comment -

        Created an attachment (id=290)
        Diff file 1

        Show
        tware added a comment - Created an attachment (id=290) Diff file 1
        Hide
        tware added a comment -

        Created an attachment (id=291)
        Diff file 2

        Show
        tware added a comment - Created an attachment (id=291) Diff file 2
        Hide
        Mitesh Meswani added a comment -

        Backported to UR1

        Show
        Mitesh Meswani added a comment - Backported to UR1

          People

          • Assignee:
            tware
            Reporter:
            rnicob
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: