You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by vo...@apache.org on 2020/04/07 21:46:30 UTC

[fineract] 02/04: add @Transient to AbstractPersistableCustom isNew()

This is an automated email from the ASF dual-hosted git repository.

vorburger pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git

commit dccea1d65e5a37fb7ca98b470f9ae418c6e8f6d6
Author: Michael Vorburger <mi...@vorburger.ch>
AuthorDate: Mon Mar 23 01:33:22 2020 +0100

    add @Transient to AbstractPersistableCustom isNew()
    
    see https://jira.spring.io/browse/DATAJPA-622
    
    Even though we don't use Hibernate, copying this annotation from the
    original class in Spring Data seems prudent - just in case.  It should
    not cause any harm or side effects on OpenJPA.
---
 .../fineract/infrastructure/core/domain/AbstractPersistableCustom.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/domain/AbstractPersistableCustom.java b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/domain/AbstractPersistableCustom.java
index 6a16c3d..1670922 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/domain/AbstractPersistableCustom.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/domain/AbstractPersistableCustom.java
@@ -23,6 +23,7 @@ import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.MappedSuperclass;
+import javax.persistence.Transient;
 import org.springframework.data.domain.Persistable;
 
 /**
@@ -55,6 +56,7 @@ public abstract class AbstractPersistableCustom<PK extends Serializable> impleme
     }
 
     @Override
+    @Transient // DATAJPA-622
     public boolean isNew() {
         return null == this.id;
     }