[infinispan-issues] [JBoss JIRA] (ISPN-9454) Support @GeneratedValue in JpaStore

Radim Vansa (JIRA) issues at jboss.org
Thu Aug 23 11:03:00 EDT 2018


Radim Vansa created ISPN-9454:
---------------------------------

             Summary: Support @GeneratedValue in JpaStore
                 Key: ISPN-9454
                 URL: https://issues.jboss.org/browse/ISPN-9454
             Project: Infinispan
          Issue Type: Enhancement
          Components: Loaders and Stores
    Affects Versions: 9.3.1.Final
            Reporter: Radim Vansa


The JpaStore explicitly disallows {{@GeneratedValue}} annotations as this would not work for insertions - key must be known to cache before the value is persisted.

However this could work if JpaStore works against existing database and never inserts new entities - only reads/updates/deletes existing ones. In such case we always know the id ahead - we only need a way to detect that the id was not set and fail in that case.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list