Skip to content

Commit a0f54d4

Browse files
Add files via upload
1 parent f9faf27 commit a0f54d4

File tree

3 files changed

+369
-0
lines changed

3 files changed

+369
-0
lines changed

job_portal_code/derby.log

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
----------------------------------------------------------------
2+
Tue May 23 15:49:05 PDT 2017:
3+
Booting Derby version The Apache Software Foundation - Apache Derby - 10.12.1.1 - (1704137): instance a816c00e-015c-377f-dc13-00000c909a28
4+
on database directory memory:/Users/avdeepsandhu/spring-job-portal/testdb with class loader sun.misc.Launcher$AppClassLoader@2a139a55
5+
Loaded from file:/Users/avdeepsandhu/.m2/repository/org/apache/derby/derby/10.12.1.1/derby-10.12.1.1.jar
6+
java.vendor=Oracle Corporation
7+
java.runtime.version=1.8.0_131-b11
8+
user.dir=/Users/avdeepsandhu/spring-job-portal
9+
os.name=Mac OS X
10+
os.arch=x86_64
11+
os.version=10.12.4
12+
derby.system.home=null
13+
Database Class Loader started - derby.database.classpath=''

job_portal_code/jobportal.sql

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64)
2+
--
3+
-- Host: localhost Database: jobportal
4+
-- ------------------------------------------------------
5+
-- Server version 5.7.18-0ubuntu0.16.04.1
6+
7+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10+
/*!40101 SET NAMES utf8 */;
11+
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12+
/*!40103 SET TIME_ZONE='+00:00' */;
13+
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14+
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15+
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16+
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17+
18+
--
19+
-- Table structure for table `company`
20+
--
21+
22+
DROP TABLE IF EXISTS `company`;
23+
/*!40101 SET @saved_cs_client = @@character_set_client */;
24+
/*!40101 SET character_set_client = utf8 */;
25+
CREATE TABLE `company` (
26+
`companyId` int(11) NOT NULL AUTO_INCREMENT,
27+
`companyName` varchar(255) NOT NULL,
28+
`headquarters` varchar(255) NOT NULL,
29+
`companyUser` varchar(255) NOT NULL,
30+
`password` varchar(255) NOT NULL,
31+
`description` blob,
32+
`verificationCode` int(11) DEFAULT NULL,
33+
`verified` bit(1) DEFAULT NULL,
34+
PRIMARY KEY (`companyId`)
35+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
36+
/*!40101 SET character_set_client = @saved_cs_client */;
37+
38+
--
39+
-- Dumping data for table `company`
40+
--
41+
42+
LOCK TABLES `company` WRITE;
43+
/*!40000 ALTER TABLE `company` DISABLE KEYS */;
44+
INSERT INTO `company` VALUES (1,'l','San Jose','linkedin','1234','We are LinkedIn',1234,''),(3,'surendra yadav','head','tusharecmc@gmail.com','1234',NULL,9632,'');
45+
/*!40000 ALTER TABLE `company` ENABLE KEYS */;
46+
UNLOCK TABLES;
47+
48+
--
49+
-- Table structure for table `interested`
50+
--
51+
52+
DROP TABLE IF EXISTS `interested`;
53+
/*!40101 SET @saved_cs_client = @@character_set_client */;
54+
/*!40101 SET character_set_client = utf8 */;
55+
CREATE TABLE `interested` (
56+
`ID` int(11) NOT NULL AUTO_INCREMENT,
57+
`jobId` int(11) NOT NULL,
58+
`jobSeekerId` int(11) NOT NULL,
59+
PRIMARY KEY (`ID`),
60+
KEY `FK1g8pqo7qt66g6n1hmo3gkmefe` (`jobId`),
61+
KEY `FKdam92xaal9185wiya9xb0qlpy` (`jobSeekerId`),
62+
CONSTRAINT `FK1g8pqo7qt66g6n1hmo3gkmefe` FOREIGN KEY (`jobId`) REFERENCES `jobposting` (`jobId`),
63+
CONSTRAINT `FKdam92xaal9185wiya9xb0qlpy` FOREIGN KEY (`jobSeekerId`) REFERENCES `jobseeker` (`jobSeekerId`),
64+
CONSTRAINT `interested_ibfk_1` FOREIGN KEY (`jobSeekerId`) REFERENCES `jobseeker` (`jobSeekerId`)
65+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
66+
/*!40101 SET character_set_client = @saved_cs_client */;
67+
68+
--
69+
-- Dumping data for table `interested`
70+
--
71+
72+
LOCK TABLES `interested` WRITE;
73+
/*!40000 ALTER TABLE `interested` DISABLE KEYS */;
74+
INSERT INTO `interested` VALUES (2,1,1);
75+
/*!40000 ALTER TABLE `interested` ENABLE KEYS */;
76+
UNLOCK TABLES;
77+
78+
--
79+
-- Table structure for table `jobapplication`
80+
--
81+
82+
DROP TABLE IF EXISTS `jobapplication`;
83+
/*!40101 SET @saved_cs_client = @@character_set_client */;
84+
/*!40101 SET character_set_client = utf8 */;
85+
CREATE TABLE `jobapplication` (
86+
`appId` int(11) NOT NULL AUTO_INCREMENT,
87+
`jobId` int(11) NOT NULL,
88+
`jobSeekerId` int(11) NOT NULL,
89+
`resume` tinyint(4) DEFAULT '0',
90+
`resumePath` blob,
91+
`state` int(11) DEFAULT '0',
92+
PRIMARY KEY (`appId`),
93+
KEY `FKjxcwb2fekoduom5q146d6sllh` (`jobId`),
94+
KEY `FK1urhfyvocp1ryhb1c18dcbh5m` (`jobSeekerId`),
95+
CONSTRAINT `FK1urhfyvocp1ryhb1c18dcbh5m` FOREIGN KEY (`jobSeekerId`) REFERENCES `jobseeker` (`jobSeekerId`),
96+
CONSTRAINT `FKjxcwb2fekoduom5q146d6sllh` FOREIGN KEY (`jobId`) REFERENCES `jobposting` (`jobId`)
97+
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
98+
/*!40101 SET character_set_client = @saved_cs_client */;
99+
100+
--
101+
-- Dumping data for table `jobapplication`
102+
--
103+
104+
LOCK TABLES `jobapplication` WRITE;
105+
/*!40000 ALTER TABLE `jobapplication` DISABLE KEYS */;
106+
INSERT INTO `jobapplication` VALUES (1,1,1,1,'qwe',0);
107+
/*!40000 ALTER TABLE `jobapplication` ENABLE KEYS */;
108+
UNLOCK TABLES;
109+
110+
--
111+
-- Table structure for table `jobposting`
112+
--
113+
114+
DROP TABLE IF EXISTS `jobposting`;
115+
/*!40101 SET @saved_cs_client = @@character_set_client */;
116+
/*!40101 SET character_set_client = utf8 */;
117+
CREATE TABLE `jobposting` (
118+
`jobId` int(11) NOT NULL AUTO_INCREMENT,
119+
`companyId` int(11) NOT NULL,
120+
`state` int(11) NOT NULL DEFAULT '0',
121+
`title` varchar(255) NOT NULL,
122+
`description` blob,
123+
`responsibilities` blob,
124+
`location` varchar(255) NOT NULL,
125+
`salary` float DEFAULT '0',
126+
`keywords` blob,
127+
PRIMARY KEY (`jobId`),
128+
KEY `FK9s2a13di3vurgeiw7iwp1kwl` (`companyId`),
129+
CONSTRAINT `FK9s2a13di3vurgeiw7iwp1kwl` FOREIGN KEY (`companyId`) REFERENCES `company` (`companyId`)
130+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
131+
/*!40101 SET character_set_client = @saved_cs_client */;
132+
133+
--
134+
-- Dumping data for table `jobposting`
135+
--
136+
137+
LOCK TABLES `jobposting` WRITE;
138+
/*!40000 ALTER TABLE `jobposting` DISABLE KEYS */;
139+
INSERT INTO `jobposting` VALUES (1,1,1,'new','Updated','Do yourwork','Pune',1212140,'SE SE SE san Jose'),(2,1,0,'Test','66','234','San Jose',242,'Test 66 243 adfd'),(3,1,0,'Test','66','234','adfd',242,'Test 66 243 adfd');
140+
/*!40000 ALTER TABLE `jobposting` ENABLE KEYS */;
141+
UNLOCK TABLES;
142+
143+
--
144+
-- Temporary table structure for view `jobpostingsview`
145+
--
146+
147+
DROP TABLE IF EXISTS `jobpostingsview`;
148+
/*!50001 DROP VIEW IF EXISTS `jobpostingsview`*/;
149+
SET @saved_cs_client = @@character_set_client;
150+
SET character_set_client = utf8;
151+
!50001 CREATE VIEW `jobpostingsview` AS SELECT
152+
1 AS `jobId`,
153+
1 AS `title`,
154+
1 AS `description`,
155+
1 AS `responsibilities`,
156+
1 AS `location`,
157+
1 AS `salary`,
158+
1 AS `keywords`,
159+
1 AS `state`,
160+
1 AS `companyId`,
161+
1 AS `companyName`;
162+
SET character_set_client = @saved_cs_client;
163+
164+
--
165+
-- Table structure for table `jobseeker`
166+
--
167+
168+
DROP TABLE IF EXISTS `jobseeker`;
169+
/*!40101 SET @saved_cs_client = @@character_set_client */;
170+
/*!40101 SET character_set_client = utf8 */;
171+
CREATE TABLE `jobseeker` (
172+
`jobSeekerId` int(11) NOT NULL AUTO_INCREMENT,
173+
`firstName` varchar(255) NOT NULL,
174+
`lastName` varchar(255) NOT NULL,
175+
`emailId` varchar(255) NOT NULL,
176+
`password` varchar(45) NOT NULL,
177+
`workEx` int(11) DEFAULT '0',
178+
`highestEducation` int(11) DEFAULT '0',
179+
`skills` blob,
180+
`verified` tinyint(4) DEFAULT '0',
181+
`verificationCode` int(11) NOT NULL,
182+
PRIMARY KEY (`jobSeekerId`)
183+
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
184+
/*!40101 SET character_set_client = @saved_cs_client */;
185+
186+
--
187+
-- Dumping data for table `jobseeker`
188+
--
189+
190+
LOCK TABLES `jobseeker` WRITE;
191+
/*!40000 ALTER TABLE `jobseeker` DISABLE KEYS */;
192+
INSERT INTO `jobseeker` VALUES (1,'John','Doe','john.doe@jd.com','1234',1,2,'Java, C, C#, C++, MySQL',1,1234),(3,'surendra','yadav','tusharecmc@gmail.com','1234',0,0,NULL,0,5959);
193+
/*!40000 ALTER TABLE `jobseeker` ENABLE KEYS */;
194+
UNLOCK TABLES;
195+
196+
--
197+
-- Final view structure for view `jobpostingsview`
198+
--
199+
200+
/*!50001 DROP VIEW IF EXISTS `jobpostingsview`*/;
201+
/*!50001 SET @saved_cs_client = @@character_set_client */;
202+
/*!50001 SET @saved_cs_results = @@character_set_results */;
203+
/*!50001 SET @saved_col_connection = @@collation_connection */;
204+
/*!50001 SET character_set_client = utf8 */;
205+
/*!50001 SET character_set_results = utf8 */;
206+
/*!50001 SET collation_connection = utf8_general_ci */;
207+
/*!50001 CREATE ALGORITHM=UNDEFINED */
208+
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
209+
/*!50001 VIEW `jobpostingsview` AS select `jp`.`jobId` AS `jobId`,`jp`.`title` AS `title`,`jp`.`description` AS `description`,`jp`.`responsibilities` AS `responsibilities`,`jp`.`location` AS `location`,`jp`.`salary` AS `salary`,`jp`.`keywords` AS `keywords`,`jp`.`state` AS `state`,`c`.`companyId` AS `companyId`,`c`.`companyName` AS `companyName` from (`jobposting` `jp` join `company` `c`) where (`c`.`companyId` = `jp`.`companyId`) */;
210+
/*!50001 SET character_set_client = @saved_cs_client */;
211+
/*!50001 SET character_set_results = @saved_cs_results */;
212+
/*!50001 SET collation_connection = @saved_col_connection */;
213+
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
214+
215+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
216+
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
217+
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
218+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
219+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
220+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
221+
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
222+
223+
-- Dump completed on 2018-05-21 23:34:32

job_portal_code/pom.xml

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>edu.cmpe275</groupId>
6+
<artifactId>jobboard</artifactId>
7+
<version>0.0.1-SNAPSHOT</version>
8+
<packaging>war</packaging>
9+
10+
<name>jobboard</name>
11+
<url>http://maven.apache.org</url>
12+
13+
<properties>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
16+
<start-class>com.baeldung.spring.Application</start-class>
17+
<java.version>1.8</java.version>
18+
</properties>
19+
<parent>
20+
<groupId>org.springframework.boot</groupId>
21+
<artifactId>spring-boot-starter-parent</artifactId>
22+
<version>1.4.1.RELEASE</version>
23+
<relativePath /> <!-- lookup parent from repository -->
24+
</parent>
25+
26+
<dependencies>
27+
<dependency>
28+
<groupId>org.springframework.boot</groupId>
29+
<artifactId>spring-boot-starter-data-jpa</artifactId>
30+
</dependency>
31+
<dependency>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-starter-mail</artifactId>
34+
</dependency>
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-data-rest</artifactId>
38+
</dependency>
39+
<!-- <dependency>
40+
<groupId>org.springframework.boot</groupId>
41+
<artifactId>spring-boot-starter-security</artifactId>
42+
</dependency> -->
43+
<dependency>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
46+
</dependency>
47+
<dependency>
48+
<groupId>org.springframework.boot</groupId>
49+
<artifactId>spring-boot-starter-web</artifactId>
50+
</dependency>
51+
<!-- <dependency>
52+
<groupId>org.thymeleaf.extras</groupId>
53+
<artifactId>thymeleaf-extras-springsecurity4</artifactId>
54+
</dependency>
55+
<dependency>
56+
<groupId>org.thymeleaf.extras</groupId>
57+
<artifactId>thymeleaf-extras-java8time</artifactId>
58+
</dependency>-->
59+
<dependency>
60+
<groupId>com.fasterxml.jackson.datatype</groupId>
61+
<artifactId>jackson-datatype-jsr310</artifactId>
62+
</dependency>
63+
<dependency>
64+
<groupId>org.apache.derby</groupId>
65+
<artifactId>derby</artifactId>
66+
<scope>runtime</scope>
67+
</dependency>
68+
<dependency>
69+
<groupId>org.springframework.boot</groupId>
70+
<artifactId>spring-boot-starter-test</artifactId>
71+
<scope>test</scope>
72+
</dependency>
73+
<dependency>
74+
<groupId>org.webjars</groupId>
75+
<artifactId>gentelella</artifactId>
76+
<version>1.0.0</version>
77+
</dependency>
78+
<dependency>
79+
<groupId>mysql</groupId>
80+
<artifactId>mysql-connector-java</artifactId>
81+
</dependency>
82+
<dependency>
83+
<groupId>org.springframework.boot</groupId>
84+
<artifactId>spring-boot-starter-web</artifactId>
85+
</dependency>
86+
<dependency>
87+
<groupId>org.springframework.boot</groupId>
88+
<artifactId>spring-boot-starter-data-jpa</artifactId>
89+
</dependency>
90+
<dependency>
91+
<groupId>mysql</groupId>
92+
<artifactId>mysql-connector-java</artifactId>
93+
</dependency>
94+
<dependency>
95+
<groupId>com.fasterxml.jackson.dataformat</groupId>
96+
<artifactId>jackson-dataformat-xml</artifactId>
97+
</dependency>
98+
<dependency>
99+
<groupId>org.springframework.boot</groupId>
100+
<artifactId>spring-boot-starter-tomcat</artifactId>
101+
<scope>provided</scope>
102+
</dependency>
103+
<dependency>
104+
<groupId>javax.servlet</groupId>
105+
<artifactId>jstl</artifactId>
106+
</dependency>
107+
<dependency>
108+
<groupId>org.apache.tomcat.embed</groupId>
109+
<artifactId>tomcat-embed-jasper</artifactId>
110+
</dependency>
111+
<dependency>
112+
<groupId>org.json</groupId>
113+
<artifactId>json</artifactId>
114+
</dependency>
115+
</dependencies>
116+
117+
<build>
118+
<plugins>
119+
<plugin>
120+
<groupId>org.springframework.boot</groupId>
121+
<artifactId>spring-boot-maven-plugin</artifactId>
122+
<dependencies>
123+
<dependency>
124+
<groupId>org.springframework</groupId>
125+
<artifactId>springloaded</artifactId>
126+
<version>1.2.0.RELEASE</version>
127+
</dependency>
128+
</dependencies>
129+
</plugin>
130+
</plugins>
131+
</build>
132+
133+
</project>

0 commit comments

Comments
 (0)