Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-910

Add EntityRepository.getPrimaryKey(E entity)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.4.2
    • JPA-Module
    • None

    Description

      It would be nice to add a method to retrieve the primary key of an entity on its EntityRepository (by using entityManagerFactory.getPersistenceUnitUtil().getIdentifier(entity)).

      This would help implementing generic JSF DataModel based on EntityRepository, especially for methods like getRowKey().

      Attachments

        Issue Links

          Activity

            People

              danielsoro Daniel Cunha
              kalgon Xavier Dury
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: