Uploaded image for project: 'Seam Security'
  1. Seam Security
  2. SEAMSECURITY-13

Custom EntityIdentifierStrategy ignored by IdentifierPolicy

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Future
    • Labels:
      None

      Description

      I tried to set a custom identifier strategy for one of my entities with the @Identifier annotation but after debuging the IdentifierPolicy class I found that my custom strategy is neglected in favor of the builtin EntityIdentifierStrategy.

      Inside the if (strategy == null) {} block my strategy is found and put into the strategies map as expected but then in the for statement it's replaced with de default one. Shouldn't the for statement be in an else block?

        Attachments

          Activity

            People

            Assignee:
            shane.bryzak Shane Bryzak
            Reporter:
            robert.raksi Robert Raksi (Inactive)
            Archiver:
            samahaja Sagar Mahajan

              Dates

              Created:
              Updated:
              Archived: