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

Discover JPA Mapped Entities automatically when using JPA store

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • PLINK_2.7.0.Beta1
    • PLINK_2.6.0.Final
    • BASE
    • None

      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.

              psilva@redhat.com Pedro Igor Craveiro
              psilva@redhat.com Pedro Igor Craveiro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: