rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlu...@apache.org
Subject svn commit: r1164119 - in /incubator/rave/trunk: rave-commons/src/main/java/org/apache/rave/persistence/impl/ rave-commons/src/main/java/org/apache/rave/persistence/jpa/impl/ rave-commons/src/test/java/org/apache/rave/persistence/impl/ rave-commons/src...
Date Thu, 01 Sep 2011 15:46:20 GMT
Author: carlucci
Date: Thu Sep  1 15:46:19 2011
New Revision: 1164119

URL: http://svn.apache.org/viewvc?rev=1164119&view=rev
Log:
RAVE-235: moved H2OpenJpaDialect and TranslatedH2Exception (and tests) from rave-portal to
rave-commons

Added:
    incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/impl/
    incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/impl/TranslatedH2Exception.java
      - copied, changed from r1164052, incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/TranslatedH2Exception.java
    incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/jpa/impl/
    incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialect.java
      - copied, changed from r1164052, incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialect.java
    incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/impl/
    incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/impl/TranslatedH2ExceptionTest.java
      - copied, changed from r1164052, incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/TranslatedH2ExceptionTest.java
    incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/jpa/impl/
    incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialectTest.java
      - copied, changed from r1164052, incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialectTest.java
Modified:
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialect.java
    incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/TranslatedH2Exception.java
    incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext.xml
    incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialectTest.java
    incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/TranslatedH2ExceptionTest.java

Copied: incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/impl/TranslatedH2Exception.java
(from r1164052, incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/TranslatedH2Exception.java)
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/impl/TranslatedH2Exception.java?p2=incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/impl/TranslatedH2Exception.java&p1=incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/TranslatedH2Exception.java&r1=1164052&r2=1164119&rev=1164119&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/TranslatedH2Exception.java
(original)
+++ incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/impl/TranslatedH2Exception.java
Thu Sep  1 15:46:19 2011
@@ -13,16 +13,15 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.rave.portal.repository.impl;
+package org.apache.rave.persistence.impl;
 
 import org.springframework.dao.DataAccessException;
 
 /**
  * Exception class that represents an H2 database exception translated via Spring
  * 
- * @author ACARLUCCI
+ * @author CARLUCCI
  */
-//TODO RAVE-235:  Move this class to commons
 public class TranslatedH2Exception extends DataAccessException {
     private int errorCode;
     private String error;

Copied: incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialect.java
(from r1164052, incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialect.java)
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialect.java?p2=incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialect.java&p1=incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialect.java&r1=1164052&r2=1164119&rev=1164119&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialect.java
(original)
+++ incubator/rave/trunk/rave-commons/src/main/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialect.java
Thu Sep  1 15:46:19 2011
@@ -13,8 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.rave.portal.repository.impl;
+package org.apache.rave.persistence.jpa.impl;
 
+import org.apache.rave.persistence.impl.TranslatedH2Exception;
 import org.apache.commons.lang.exception.ExceptionUtils;
 import org.apache.rave.exception.DuplicateItemException;
 import org.h2.constant.ErrorCode;
@@ -32,8 +33,6 @@ import org.springframework.orm.jpa.vendo
  * 
  * @author CARLUCCI
  */
-
-//TODO RAVE-235:  Move this class to commons
 public class H2OpenJpaDialect extends OpenJpaDialect {
     private static final long serialVersionUID = 1L;
     /**

Copied: incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/impl/TranslatedH2ExceptionTest.java
(from r1164052, incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/TranslatedH2ExceptionTest.java)
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/impl/TranslatedH2ExceptionTest.java?p2=incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/impl/TranslatedH2ExceptionTest.java&p1=incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/TranslatedH2ExceptionTest.java&r1=1164052&r2=1164119&rev=1164119&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/TranslatedH2ExceptionTest.java
(original)
+++ incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/impl/TranslatedH2ExceptionTest.java
Thu Sep  1 15:46:19 2011
@@ -17,7 +17,7 @@
  * under the License.
  */
 
-package org.apache.rave.portal.repository.impl;
+package org.apache.rave.persistence.impl;
 
 import org.junit.Before;
 import org.junit.Test;

Copied: incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialectTest.java
(from r1164052, incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialectTest.java)
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialectTest.java?p2=incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialectTest.java&p1=incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialectTest.java&r1=1164052&r2=1164119&rev=1164119&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/test/java/org/apache/rave/portal/repository/impl/H2OpenJpaDialectTest.java
(original)
+++ incubator/rave/trunk/rave-commons/src/test/java/org/apache/rave/persistence/jpa/impl/H2OpenJpaDialectTest.java
Thu Sep  1 15:46:19 2011
@@ -13,8 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.rave.portal.repository.impl;
+package org.apache.rave.persistence.jpa.impl;
 
+import org.apache.rave.persistence.impl.TranslatedH2Exception;
 import org.apache.rave.exception.DuplicateItemException;
 import org.h2.jdbc.JdbcSQLException;
 import org.junit.Before;
@@ -22,11 +23,10 @@ import org.junit.Test;
 import static org.junit.Assert.*;
 import static org.hamcrest.CoreMatchers.*;
 import org.h2.constant.ErrorCode;
-import org.springframework.dao.DataAccessException;
 
 /**
  *
- * @author ACARLUCCI
+ * @author CARLUCCI
  */
 public class H2OpenJpaDialectTest {
     private H2OpenJpaDialect dialect;

Modified: incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext.xml?rev=1164119&r1=1164118&r2=1164119&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext.xml (original)
+++ incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext.xml Thu Sep
 1 15:46:19 2011
@@ -74,7 +74,7 @@
                   p:showSql="true"/>
         </property>
         <property name="jpaDialect">
-            <bean class="org.apache.rave.portal.repository.impl.H2OpenJpaDialect"/>
+            <bean class="org.apache.rave.persistence.jpa.impl.H2OpenJpaDialect"/>
         </property>      
         <property name="jpaPropertyMap">
             <map>



Mime
View raw message