Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.use-new-id-generator-mappings= false

#set to 'none' to .ddl-auto if you want to create mysql tables from "schema.sql" files instead of from entities
spring.jpa.hibernate.ddl-auto = create-drop
spring.jpa.hibernate.ddl-auto = update
spring.jpa.generate-ddl=true
spring.jpa.show-sql=true
#tells hibernate where to find initial data to import into mysql if .ddl-auto method is used
Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/db/import.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
-- Dumping data for table `account`
--

INSERT INTO `account` VALUES (1,'1234567890','CHECKING',10000,'2004-01-22',NULL,.2,'091000022',1),(2,'3333333333','SAVINGS',25000,'2004-01-22',NULL,.85,'091000022',1);
INSERT INTO `account` VALUES (3,'1111111111','CHECKING',10000,'2004-01-22',NULL,.2,'091000022',2),(4,'4444444444','SAVINGS',25000,'2004-01-22',NULL,.85,'091000022',2);
INSERT INTO `account` VALUES (5,'2222222222','CHECKING',0,'2004-01-22',NULL,.2,'091000022',3);
INSERT INTO `account` VALUES (1,'1234567890','CHECKING',999999999999,'2004-01-22',NULL,.2,'091000022',1);
# INSERT INTO `account` VALUES (3,'1111111111','CHECKING',10000,'2004-01-22',NULL,.2,'091000022',2),(4,'4444444444','SAVINGS',25000,'2004-01-22',NULL,.85,'091000022',2);
# INSERT INTO `account` VALUES (5,'2222222222','CHECKING',0,'2004-01-22',NULL,.2,'091000022',3);
--
-- Dumping data for table `login`
--

INSERT INTO `login` VALUES (1,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT9DBAW6Jd1W2','user1'),(2,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT9DBAW6Jd1W2','user2');
INSERT INTO `login` VALUES (1,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT9DBAW6Jd1W2','user1');
INSERT INTO `login` VALUES (3,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT9DBAW6Jd1W2','user3');
--
-- Dumping data for table `transaction_history`
Expand All @@ -27,7 +27,7 @@ INSERT INTO `login` VALUES (3,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT
-- Dumping data for table `customer`
--

INSERT INTO `customer` VALUES (1,'2012-05-05','tom@gmail.com','Peggy','Patel','G','5122264785','435435345',1),(2,'2012-05-05','john@gmail.com','John','Doe','G','5122264785','435435345',2);
INSERT INTO `customer` VALUES (1,'2012-05-05','tom@gmail.com','Peggy','Patel','G','5122264785','435435345',1);
INSERT INTO `customer` VALUES (3,'2012-05-05','tom@gmail.com','Tom','Walter','G','5122264785','435435345',3);

-- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
Expand All @@ -36,5 +36,5 @@ INSERT INTO `customer` VALUES (3,'2012-05-05','tom@gmail.com','Tom','Walter','G'
-- Dumping data for table `address`
--

INSERT INTO `address` VALUES (1,'Bear','123 A st','Second Line','DE','19801'),(2,'Philadelphia','200 B st','Second Line','Pennsylvania','19148');
INSERT INTO `address` VALUES (1,'Bear','123 A st','Second Line','DE','19801');
INSERT INTO `address` VALUES (3,'Austin','123 A st','Second Line','Texas','19147');