james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1663047 - in /james/server/trunk/data/data-jpa/src/main/java/org/apache/james: domainlist/jpa/model/JPADomain.java rrt/jpa/model/JPARecipientRewrite.java
Date Sun, 01 Mar 2015 09:01:32 GMT
Author: eric
Date: Sun Mar  1 09:01:32 2015
New Revision: 1663047

URL: http://svn.apache.org/r1663047
Log:
JPA Entities need public constructors, pach contributed by Bernd Waibel (JAMES-1561)

Modified:
    james/server/trunk/data/data-jpa/src/main/java/org/apache/james/domainlist/jpa/model/JPADomain.java
    james/server/trunk/data/data-jpa/src/main/java/org/apache/james/rrt/jpa/model/JPARecipientRewrite.java

Modified: james/server/trunk/data/data-jpa/src/main/java/org/apache/james/domainlist/jpa/model/JPADomain.java
URL: http://svn.apache.org/viewvc/james/server/trunk/data/data-jpa/src/main/java/org/apache/james/domainlist/jpa/model/JPADomain.java?rev=1663047&r1=1663046&r2=1663047&view=diff
==============================================================================
--- james/server/trunk/data/data-jpa/src/main/java/org/apache/james/domainlist/jpa/model/JPADomain.java
(original)
+++ james/server/trunk/data/data-jpa/src/main/java/org/apache/james/domainlist/jpa/model/JPADomain.java
Sun Mar  1 09:01:32 2015
@@ -46,11 +46,12 @@ public class JPADomain {
     private String name;
 
     /**
-     * Default no-args constructor to avoid warning during JPA class enhancement.
-     * Do not us this.
+     * Default no-args constructor for JPA class enhancement.
+     * The constructor need to be public or protected to be used by JPA.
+     * See:  http://docs.oracle.com/javaee/6/tutorial/doc/bnbqa.html
+     * Do not us this constructor, it is for JPA only.
      */
-    @SuppressWarnings(value = "unused" )
-    private JPADomain() {
+    protected JPADomain() {
     }
 
     /**

Modified: james/server/trunk/data/data-jpa/src/main/java/org/apache/james/rrt/jpa/model/JPARecipientRewrite.java
URL: http://svn.apache.org/viewvc/james/server/trunk/data/data-jpa/src/main/java/org/apache/james/rrt/jpa/model/JPARecipientRewrite.java?rev=1663047&r1=1663046&r2=1663047&view=diff
==============================================================================
--- james/server/trunk/data/data-jpa/src/main/java/org/apache/james/rrt/jpa/model/JPARecipientRewrite.java
(original)
+++ james/server/trunk/data/data-jpa/src/main/java/org/apache/james/rrt/jpa/model/JPARecipientRewrite.java
Sun Mar  1 09:01:32 2015
@@ -97,11 +97,13 @@ public class JPARecipientRewrite {
     private String targetAddress = "";
     
     /**
-     * Default no-args constructor to avoid warning during JPA class enhancement.
-     * Do not us this.
+     * Default no-args constructor for JPA class enhancement.
+     * The constructor need to be public or protected to be used by JPA.
+     * See:  http://docs.oracle.com/javaee/6/tutorial/doc/bnbqa.html
+     * Do not us this constructor, it is for JPA only.
      */
     @SuppressWarnings(value = "unused" )
-    private JPARecipientRewrite() {
+    protected JPARecipientRewrite() {
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message