This is an automated email from the ASF dual-hosted git repository. ffang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git
The following commit(s) were added to refs/heads/main by this push: new 4d817d9 [CAMEL-17523]camel-spring-boot-examples:rest-jpa is broken (#45) 4d817d9 is described below commit 4d817d90fe30d90491629e073f7db6476bb8f024 Author: Freeman(Yue) Fang <freeman.f...@gmail.com> AuthorDate: Thu Jan 20 13:31:44 2022 -0500 [CAMEL-17523]camel-spring-boot-examples:rest-jpa is broken (#45) --- rest-jpa/src/main/resources/application-dev.yml | 2 ++ rest-jpa/src/main/resources/data.sql | 9 ++++++++- rest-jpa/src/test/resources/application.yml | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/rest-jpa/src/main/resources/application-dev.yml b/rest-jpa/src/main/resources/application-dev.yml index 8e6d62d..6cac4ce 100644 --- a/rest-jpa/src/main/resources/application-dev.yml +++ b/rest-jpa/src/main/resources/application-dev.yml @@ -33,6 +33,8 @@ spring: jpa: database: h2 database-platform: org.hibernate.dialect.H2Dialect + hibernate: + ddl-auto: update # The application configuration properties example: diff --git a/rest-jpa/src/main/resources/data.sql b/rest-jpa/src/main/resources/data.sql index b4dc5bc..78b70f7 100644 --- a/rest-jpa/src/main/resources/data.sql +++ b/rest-jpa/src/main/resources/data.sql @@ -15,7 +15,14 @@ -- limitations under the License. -- +create table books ( + id integer not null, + description varchar(255), + item varchar(255), + primary key (id) + ); + INSERT INTO books (id, item, description) VALUES (1, 'Camel', 'Camel in Action'), - (2, 'ActiveMQ', 'ActiveMQ in Action'); \ No newline at end of file + (2, 'ActiveMQ', 'ActiveMQ in Action'); diff --git a/rest-jpa/src/test/resources/application.yml b/rest-jpa/src/test/resources/application.yml index 714fe90..2a5d066 100644 --- a/rest-jpa/src/test/resources/application.yml +++ b/rest-jpa/src/test/resources/application.yml @@ -22,6 +22,12 @@ camel: mapping: contextPath: /camel-rest-jpa/* +spring: + jpa: + hibernate: + ddl-auto: update + + example: generateOrderPeriod: 1000 processOrderPeriod: 3000