5 changed files with 94 additions and 51 deletions
@ -1,17 +0,0 @@ |
|||
# ---Comments without preceeding '---' are settings to enable for development |
|||
# ---Enable H2 console |
|||
spring.h2.console.enabled=true |
|||
# ---Turn Statistics on |
|||
spring.jpa.properties.hibernate.generate_statistics=true |
|||
logging.level.org.hibernate.stat=debug |
|||
# ---Show queries |
|||
spring.jpa.show-sql=true |
|||
# ---In memory DB |
|||
spring.datasource.url=jdbc:h2:mem:contactsdb |
|||
spring.data.jpa.repositories.bootstrap-mode=default |
|||
spring.jpa.properties.hibernate.format_sql=true |
|||
# ---Initialize Hibernate before loading from data.sql |
|||
spring.jpa.defer-datasource-initialization=true |
|||
logging.level.org.hibernate.type=debug |
|||
# ---For development only |
|||
# server.error.include-message=always |
|||
@ -1,25 +0,0 @@ |
|||
-- Contacts |
|||
insert into CONTACTS (street, city, state, zip, email, middle, first, last) |
|||
values('street1', 'city1', 'state1', 'zip1', 'e1@mail.com', 'a', 'a', 'a'); |
|||
insert into CONTACTS (street, city, state, zip, email, middle, first, last) |
|||
values('street2', 'city2', 'state2', 'zip2', 'e2@mail.com', 'a', 'b', 'a'); |
|||
insert into CONTACTS (street, city, state, zip, email, middle, first, last) |
|||
values('street3', 'city3', 'state3', 'zip3', 'e3@mail.com', 'a', 'b', 'b'); |
|||
insert into CONTACTS (street, city, state, zip, email, middle, first, last) |
|||
values('street4', 'city4', 'state4', 'zip4', 'e4@mail.com', 'a', 'a', 'b'); |
|||
|
|||
-- Phones |
|||
insert into PHONES (number, type, contact_id) |
|||
values('111-111-1111', 'HOME', 1); |
|||
insert into PHONES (number, type, contact_id) |
|||
values('222-222-2222', 'WORK', 1); |
|||
insert into PHONES (number, type, contact_id) |
|||
values('333-333-3333', 'WORK', 2); |
|||
insert into PHONES (number, type, contact_id) |
|||
values('444-444-4444', 'HOME', 2); |
|||
insert into PHONES (number, type, contact_id) |
|||
values('555-555-5555', 'MOBILE', 3); |
|||
insert into PHONES (number, type, contact_id) |
|||
values('777-777-7777', 'WORK', 4); |
|||
insert into PHONES (number, type, contact_id) |
|||
values('888-888-8888', 'HOME', 4); |
|||
Loading…
Reference in new issue