Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-37

Support @PersistenceConstructor on entities

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Core
    • Labels:
      None

      Description

      In Spring Data Commons we have a @PersistenceConstructor annotation that demarcates the constructor to be used when instantiating objects. It would be cool if the query methods and maybe even findOne(…) being able to detect that annotation and force the persistence provider to use that constructor (probably by using the Criteria API).

        Attachments

          Activity

            People

            Assignee:
            schauder Jens Schauder
            Reporter:
            olivergierke Oliver Drotbohm
            Last updater:
            Jens Schauder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: