Skip to content

Commit f204a2e

Browse files
committed
commite
1 parent 108418a commit f204a2e

File tree

8 files changed

+101
-12
lines changed

8 files changed

+101
-12
lines changed

.classpath

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
2121
<attributes>
2222
<attribute name="maven.pomderived" value="true"/>
23+
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
2324
</attributes>
2425
</classpathentry>
2526
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<faceted-project>
33
<fixed facet="wst.jsdt.web"/>
4-
<installed facet="jst.web" version="2.3"/>
54
<installed facet="wst.jsdt.web" version="1.0"/>
65
<installed facet="java" version="1.8"/>
6+
<installed facet="jst.web" version="3.1"/>
77
</faceted-project>

springmvcwithhibernate.sql

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/*
2+
SQLyog Community v12.4.3 (64 bit)
3+
MySQL - 5.7.19-log : Database - springmvcwithhibernate
4+
*********************************************************************
5+
*/
6+
7+
/*!40101 SET NAMES utf8 */;
8+
9+
/*!40101 SET SQL_MODE=''*/;
10+
11+
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
12+
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
13+
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
14+
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
15+
CREATE DATABASE /*!32312 IF NOT EXISTS*/`springmvcwithhibernate` /*!40100 DEFAULT CHARACTER SET utf8 */;
16+
17+
USE `springmvcwithhibernate`;
18+
19+
/*Table structure for table `app_user` */
20+
21+
DROP TABLE IF EXISTS `app_user`;
22+
23+
CREATE TABLE `app_user` (
24+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
25+
`sso_id` varchar(30) NOT NULL,
26+
`password` varchar(100) NOT NULL,
27+
`first_name` varchar(30) NOT NULL,
28+
`last_name` varchar(30) NOT NULL,
29+
`email` varchar(30) NOT NULL,
30+
PRIMARY KEY (`id`),
31+
UNIQUE KEY `sso_id` (`sso_id`)
32+
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
33+
34+
/*Data for the table `app_user` */
35+
36+
insert into `app_user`(`id`,`sso_id`,`password`,`first_name`,`last_name`,`email`) values
37+
(1,'faiz','$2a$10$3YhiA66CzW46PeebQArctu03gT8hGlHLfRs/.VB9smrQuDcpuRBIq','Faiz','Akram','faiz@gmail.com');
38+
39+
/*Table structure for table `app_user_user_profile` */
40+
41+
DROP TABLE IF EXISTS `app_user_user_profile`;
42+
43+
CREATE TABLE `app_user_user_profile` (
44+
`user_id` bigint(20) NOT NULL,
45+
`user_profile_id` bigint(20) NOT NULL,
46+
PRIMARY KEY (`user_id`,`user_profile_id`),
47+
KEY `FK_USER_PROFILE` (`user_profile_id`),
48+
CONSTRAINT `FK_APP_USER` FOREIGN KEY (`user_id`) REFERENCES `app_user` (`id`),
49+
CONSTRAINT `FK_USER_PROFILE` FOREIGN KEY (`user_profile_id`) REFERENCES `user_profile` (`id`)
50+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
51+
52+
/*Data for the table `app_user_user_profile` */
53+
54+
insert into `app_user_user_profile`(`user_id`,`user_profile_id`) values
55+
(1,2);
56+
57+
/*Table structure for table `persistent_logins` */
58+
59+
DROP TABLE IF EXISTS `persistent_logins`;
60+
61+
CREATE TABLE `persistent_logins` (
62+
`username` varchar(64) NOT NULL,
63+
`series` varchar(64) NOT NULL,
64+
`token` varchar(64) NOT NULL,
65+
`last_used` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
66+
PRIMARY KEY (`series`)
67+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
68+
69+
/*Data for the table `persistent_logins` */
70+
71+
/*Table structure for table `user_profile` */
72+
73+
DROP TABLE IF EXISTS `user_profile`;
74+
75+
CREATE TABLE `user_profile` (
76+
`id` bigint(20) NOT NULL AUTO_INCREMENT,
77+
`type` varchar(30) NOT NULL,
78+
PRIMARY KEY (`id`),
79+
UNIQUE KEY `type` (`type`)
80+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
81+
82+
/*Data for the table `user_profile` */
83+
84+
insert into `user_profile`(`id`,`type`) values
85+
(2,'ADMIN'),
86+
(3,'DBA'),
87+
(1,'USER');
88+
89+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
90+
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
91+
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
92+
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jdbc.driverClassName = com.mysql.jdbc.Driver
2-
jdbc.url = jdbc:mysql://localhost:3306/springmvchibernatewithspringsecurity
2+
jdbc.url = jdbc:mysql://localhost:3306/springmvcwithhibernate
33
jdbc.username = root
44
jdbc.password = root
55
hibernate.dialect = org.hibernate.dialect.MySQLDialect

src/main/webapp/WEB-INF/web.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

target/classes/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jdbc.driverClassName = com.mysql.jdbc.Driver
2-
jdbc.url = jdbc:mysql://localhost:3306/springmvchibernatewithspringsecurity
2+
jdbc.url = jdbc:mysql://localhost:3306/springmvcwithhibernate
33
jdbc.username = root
44
jdbc.password = root
55
hibernate.dialect = org.hibernate.dialect.MySQLDialect
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Manifest-Version: 1.0
2-
Built-By: Faiz
3-
Build-Jdk: 1.8.0_144
2+
Built-By: 13615
3+
Build-Jdk: 1.8.0_91
44
Created-By: Maven Integration for Eclipse
55

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Generated by Maven Integration for Eclipse
2-
#Sat Nov 11 23:47:20 IST 2017
2+
#Mon Nov 13 11:15:24 IST 2017
33
version=1.0.0
44
groupId=com.faizakram.springmvc
5-
m2e.projectName=SpringMVCHibernateManyToManyCRUDExample
6-
m2e.projectLocation=C\:\\Users\\Faiz\\Documents\\GitHub\\SpringMVCHibernateWithSpringSecurity
5+
m2e.projectName=SpringMVCHibernateWithSpringSecurity
6+
m2e.projectLocation=C\:\\Users\\13615\\Documents\\GitHub\\SpringMVCHibernateWithSpringSecurity
77
artifactId=SpringMVCHibernateWithSpringSecurity

0 commit comments

Comments
 (0)