-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added embeded db for running directly also bumped boot version .
- Loading branch information
1 parent
2584ac0
commit 6648b16
Showing
8 changed files
with
65 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
spring.datasource.url=jdbc:mysql://localhost/pumpkinhotel | ||
spring.datasource.username=root | ||
spring.datasource.password= | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
spring.datasource.url=jdbc:h2:mem:testdb | ||
spring.datasource.driverClassName=org.h2.Driver | ||
spring.datasource.username=sa | ||
spring.datasource.password=password | ||
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
INSERT INTO m_product_master VALUES (1, 'Beach Deal'); | ||
|
||
INSERT INTO m_product_master VALUES (2, 'Paradise'); | ||
|
||
INSERT INTO m_product_master VALUES (3, 'Lonely Planet'); | ||
|
||
INSERT INTO m_product_master VALUES (4, 'Safari'); | ||
|
||
INSERT INTO m_hotel VALUES (1, 'Beach Deal', 'Beach Front', 51.507351, -0.127758, 4); | ||
|
||
INSERT INTO m_hotel VALUES (2, 'Paradise', 'Somehwere in Swiss Alps', 51.507351, -0.127758, 5); | ||
|
||
INSERT INTO m_hotel VALUES (3, 'Lonely Planet', 'Bermuda', 51.507351, -0.127758, 4); | ||
|
||
INSERT INTO m_hotel VALUES (4, 'Safari', 'Cape Cod', 51.507351, -0.127758, 4); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CREATE TABLE m_product_master | ||
( | ||
product_id int NOT NULL PRIMARY KEY, | ||
product_name varchar(255), | ||
); | ||
|
||
|
||
CREATE TABLE m_hotel | ||
( | ||
product_id int NOT NULL PRIMARY KEY, | ||
description varchar(255), | ||
address varchar(255), | ||
latitude double, | ||
longitude double, | ||
star_Rating varchar(255), | ||
); |