Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulmoundekar authored Apr 6, 2020
1 parent eb24d0b commit 3ebc466
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# spring-boot-data-one-to-many
spring-boot-data-one-to-many with swagger implementation

Database SQL :

DROP TABLE IF EXISTS `springboot`.`employee`;
CREATE TABLE `springboot`.`employee` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`first_name` varchar(45) NOT NULL,
`last_name` varchar(45) NOT NULL,
`email` varchar(45) NOT NULL,
`salary` double NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `springboot`.`account`;
CREATE TABLE `springboot`.`account` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`account_number` varchar(45) NOT NULL,
`employee_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `FK_account_1` (`employee_id`),
CONSTRAINT `FK_account_1` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;


Swagger : run : http://localhost:8080/swagger-ui.html

0 comments on commit 3ebc466

Please sign in to comment.