You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by se...@apache.org on 2018/01/18 03:18:09 UTC

[incubator-servicecomb-saga] branch SCB-249_apl_compliance updated: SCB-249 avoided hibernate and replaced JSON with TEXT due to limited postgres & jpa support

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

seanyinx pushed a commit to branch SCB-249_apl_compliance
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git


The following commit(s) were added to refs/heads/SCB-249_apl_compliance by this push:
     new ae9d7e8  SCB-249 avoided hibernate and replaced JSON with TEXT due to limited postgres & jpa support
ae9d7e8 is described below

commit ae9d7e8b4e022d4e0593cf0293ca3401ce06ffb3
Author: seanyinx <se...@huawei.com>
AuthorDate: Thu Jan 18 11:17:57 2018 +0800

    SCB-249 avoided hibernate and replaced JSON with TEXT due to limited postgres & jpa support
    
    Signed-off-by: seanyinx <se...@huawei.com>
---
 saga-persistence/saga-persistence-jpa/pom.xml      | 26 +++++++++++++++++++---
 .../src/main/resources/schema-postgresql.sql       |  2 +-
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/saga-persistence/saga-persistence-jpa/pom.xml b/saga-persistence/saga-persistence-jpa/pom.xml
index 3373aec..372b383 100644
--- a/saga-persistence/saga-persistence-jpa/pom.xml
+++ b/saga-persistence/saga-persistence-jpa/pom.xml
@@ -43,15 +43,35 @@
   <dependencies>
     <dependency>
       <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter-data-jpa</artifactId>
+      <artifactId>spring-boot-starter</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-aop</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-jdbc</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.transaction</groupId>
+      <artifactId>javax.transaction-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework.data</groupId>
+      <artifactId>spring-data-jpa</artifactId>
       <exclusions>
         <exclusion>
-          <groupId>org.hibernate</groupId>
-          <artifactId>*</artifactId>
+          <groupId>org.aspectj</groupId>
+          <artifactId>aspectjrt</artifactId>
         </exclusion>
       </exclusions>
     </dependency>
     <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-aspects</artifactId>
+    </dependency>
+    <dependency>
       <groupId>org.eclipse.persistence</groupId>
       <artifactId>org.eclipse.persistence.jpa</artifactId>
     </dependency>
diff --git a/saga-spring/src/main/resources/schema-postgresql.sql b/saga-spring/src/main/resources/schema-postgresql.sql
index 3900fd3..c4a5c70 100644
--- a/saga-spring/src/main/resources/schema-postgresql.sql
+++ b/saga-spring/src/main/resources/schema-postgresql.sql
@@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS SagaEventEntity (
   sagaId varchar(36) NOT NULL,
   creationTime timestamp(6) NOT NULL DEFAULT CURRENT_DATE,
   type varchar(50) NOT NULL,
-  contentJson JSON NOT NULL
+  contentJson TEXT NOT NULL
 );
 
 CREATE INDEX IF NOT EXISTS running_sagas_index ON SagaEventEntity (sagaId, type);

-- 
To stop receiving notification emails like this one, please contact
['"commits@servicecomb.apache.org" <co...@servicecomb.apache.org>'].