This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git
commit f877fc76707bc7f2140bb2d97ef0b093bf0828c7 Author: seanyinx <[email protected]> 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 <[email protected]> --- 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 "[email protected]" <[email protected]>.
