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

Discover JPA Mapped Entities automatically when using JPA store

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: PLINK_2.6.0.Final
    • Fix Version/s: PLINK_2.7.0.Beta1
    • Component/s: BASE
    • Labels:
      None

      Description

      Today, users need to specify all JPA entities when providing the configuration to the JPA identity store, as follows:

      stores().jpa()
          .mappedEntity(
              AccountTypeEntity.class,
              RoleTypeEntity.class,
              GroupTypeEntity.class,
              IdentityTypeEntity.class,
              RelationshipTypeEntity.class,
              RelationshipIdentityTypeEntity.class,
              PartitionTypeEntity.class,
              PasswordCredentialTypeEntity.class,
              AttributeTypeEntity.class)
      

      The idea is make the configuration even easier and just use:

      stores().jpa()
      

      Entities will be automatically scanned and configured if user has not set any entities by his own.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pcraveiro Pedro Igor Silva
                  Reporter:
                  pcraveiro Pedro Igor Silva
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: