Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-440

JPA annotations cannot be used on fields with EclipseLink

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • None
    • PLINK_2.6.0.CR2
    • None
    • None

    Description

      When IDM JPA annotations are placed on entity fields, PicketLink uses reflection to set the fields directly. This bypasses EclipseLink's change detection when entity classes are weaved, which effectively makes it impossible to update anything in the database.

      I'm not sure if this is a bug or not. If it's not a bug, then the PicketLink documentation needs a big warning right at the beginning of chapter 8 saying that if you're using EclipseLink (and probably any other JPA implementation that performs bytecode enchancement), you MUST place the IDM JPA annotations on methods.

      Attachments

        Activity

          People

            psilva@redhat.com Pedro Igor Craveiro
            rdicroce Richard DiCroce (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: