├── .gitignore
├── .mvn
└── wrapper
│ ├── MavenWrapperDownloader.java
│ ├── maven-wrapper.jar
│ └── maven-wrapper.properties
├── Diagram
└── diagram.PNG
├── README.md
├── bin
├── .gitignore
├── .mvn
│ └── wrapper
│ │ ├── MavenWrapperDownloader.class
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
├── Diagram
│ └── diagram.PNG
├── README.md
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src
│ ├── main
│ ├── java
│ │ └── kodlama
│ │ │ └── io
│ │ │ └── hrms
│ │ │ ├── HrmsApplication.class
│ │ │ ├── api
│ │ │ └── controllers
│ │ │ │ ├── AdvertisementsController.class
│ │ │ │ ├── CitiesController.class
│ │ │ │ ├── EducationInformationsController.class
│ │ │ │ ├── EmployersController.class
│ │ │ │ ├── JobSeekersController.class
│ │ │ │ ├── JobTitlesControllers.class
│ │ │ │ ├── ResumePhotosController.class
│ │ │ │ ├── ResumesController.class
│ │ │ │ ├── UsersControllers.class
│ │ │ │ └── WorkExperiencesController.class
│ │ │ ├── business
│ │ │ ├── abstracts
│ │ │ │ ├── AdvertisementService.class
│ │ │ │ ├── CityService.class
│ │ │ │ ├── EducationInformationService.class
│ │ │ │ ├── EmployerService.class
│ │ │ │ ├── JobSeekerService.class
│ │ │ │ ├── JobTitleService.class
│ │ │ │ ├── ResumePhotoService.class
│ │ │ │ ├── ResumeService.class
│ │ │ │ ├── UserService.class
│ │ │ │ └── WorkExperienceService.class
│ │ │ └── concretes
│ │ │ │ ├── AdvertisementManager.class
│ │ │ │ ├── CityManager.class
│ │ │ │ ├── EducationInformationManager.class
│ │ │ │ ├── EmployerManager.class
│ │ │ │ ├── JobSeekerManager.class
│ │ │ │ ├── JobTitleManager.class
│ │ │ │ ├── ResumeManager.class
│ │ │ │ ├── ResumePhotoManager.class
│ │ │ │ ├── UserManager.class
│ │ │ │ └── WorkExperienceManager.class
│ │ │ ├── configurations
│ │ │ └── AppConfiguration.class
│ │ │ ├── core
│ │ │ └── utilities
│ │ │ │ ├── results
│ │ │ │ ├── DataResult.class
│ │ │ │ ├── ErrorDataResult.class
│ │ │ │ ├── ErrorResult.class
│ │ │ │ ├── Result.class
│ │ │ │ ├── SuccessDataResult.class
│ │ │ │ └── SuccessResult.class
│ │ │ │ └── validations
│ │ │ │ ├── EmailVerificationManager.class
│ │ │ │ ├── EmailVerificationService.class
│ │ │ │ ├── MernisVerificationManager.class
│ │ │ │ └── MernisVerificationService.class
│ │ │ ├── dataAccess
│ │ │ └── abstracts
│ │ │ │ ├── AdvertisementDao.class
│ │ │ │ ├── CityDao.class
│ │ │ │ ├── EducationInformationDao.class
│ │ │ │ ├── EmployerDao.class
│ │ │ │ ├── JobSeekerDao.class
│ │ │ │ ├── JobTitleDao.class
│ │ │ │ ├── ResumeDao.class
│ │ │ │ ├── ResumePhotoDao.class
│ │ │ │ ├── UserDao.class
│ │ │ │ └── WorkExperienceDao.class
│ │ │ └── entities
│ │ │ └── concretes
│ │ │ ├── Advertisement.class
│ │ │ ├── City.class
│ │ │ ├── CoverLetter.class
│ │ │ ├── EducationInformation.class
│ │ │ ├── Employer.class
│ │ │ ├── Faculty.class
│ │ │ ├── ForeignLanguage.class
│ │ │ ├── JobSeeker.class
│ │ │ ├── JobTitle.class
│ │ │ ├── ProgrammingSkill.class
│ │ │ ├── Resume.class
│ │ │ ├── ResumePhoto.class
│ │ │ ├── SalaryScale.class
│ │ │ ├── SocialMedia.class
│ │ │ ├── University.class
│ │ │ ├── UniversityDepartment.class
│ │ │ ├── User.class
│ │ │ └── WorkExperience.class
│ └── resources
│ │ └── application.properties
│ └── test
│ └── java
│ └── kodlama
│ └── io
│ └── hrms
│ └── HrmsApplicationTests.class
├── mvnw
├── mvnw.cmd
├── pom.xml
├── src
├── main
│ ├── java
│ │ └── kodlama
│ │ │ └── io
│ │ │ └── hrms
│ │ │ ├── HrmsApplication.java
│ │ │ ├── api
│ │ │ └── controllers
│ │ │ │ ├── AdvertisementsController.java
│ │ │ │ ├── CitiesController.java
│ │ │ │ ├── EducationInformationsController.java
│ │ │ │ ├── EmployersController.java
│ │ │ │ ├── JobSeekersController.java
│ │ │ │ ├── JobTitlesControllers.java
│ │ │ │ ├── ResumePhotosController.java
│ │ │ │ ├── ResumesController.java
│ │ │ │ ├── SalaryScalesController.java
│ │ │ │ ├── UsersControllers.java
│ │ │ │ └── WorkExperiencesController.java
│ │ │ ├── business
│ │ │ ├── abstracts
│ │ │ │ ├── AdvertisementService.java
│ │ │ │ ├── CityService.java
│ │ │ │ ├── EducationInformationService.java
│ │ │ │ ├── EmployerService.java
│ │ │ │ ├── JobSeekerService.java
│ │ │ │ ├── JobTitleService.java
│ │ │ │ ├── ResumePhotoService.java
│ │ │ │ ├── ResumeService.java
│ │ │ │ ├── SalaryScaleService.java
│ │ │ │ ├── UserService.java
│ │ │ │ └── WorkExperienceService.java
│ │ │ └── concretes
│ │ │ │ ├── AdvertisementManager.java
│ │ │ │ ├── CityManager.java
│ │ │ │ ├── EducationInformationManager.java
│ │ │ │ ├── EmployerManager.java
│ │ │ │ ├── JobSeekerManager.java
│ │ │ │ ├── JobTitleManager.java
│ │ │ │ ├── ResumeManager.java
│ │ │ │ ├── ResumePhotoManager.java
│ │ │ │ ├── SalaryScaleManager.java
│ │ │ │ ├── UserManager.java
│ │ │ │ └── WorkExperienceManager.java
│ │ │ ├── configurations
│ │ │ └── AppConfiguration.java
│ │ │ ├── core
│ │ │ └── utilities
│ │ │ │ ├── results
│ │ │ │ ├── DataResult.java
│ │ │ │ ├── ErrorDataResult.java
│ │ │ │ ├── ErrorResult.java
│ │ │ │ ├── Result.java
│ │ │ │ ├── SuccessDataResult.java
│ │ │ │ └── SuccessResult.java
│ │ │ │ └── validations
│ │ │ │ ├── EmailVerificationManager.java
│ │ │ │ ├── EmailVerificationService.java
│ │ │ │ ├── MernisVerificationManager.java
│ │ │ │ └── MernisVerificationService.java
│ │ │ ├── dataAccess
│ │ │ └── abstracts
│ │ │ │ ├── AdvertisementDao.java
│ │ │ │ ├── CityDao.java
│ │ │ │ ├── EducationInformationDao.java
│ │ │ │ ├── EmployerDao.java
│ │ │ │ ├── JobSeekerDao.java
│ │ │ │ ├── JobTitleDao.java
│ │ │ │ ├── ResumeDao.java
│ │ │ │ ├── ResumePhotoDao.java
│ │ │ │ ├── SalaryScaleDao.java
│ │ │ │ ├── UserDao.java
│ │ │ │ └── WorkExperienceDao.java
│ │ │ └── entities
│ │ │ ├── concretes
│ │ │ ├── Advertisement.java
│ │ │ ├── City.java
│ │ │ ├── CoverLetter.java
│ │ │ ├── EducationInformation.java
│ │ │ ├── Employer.java
│ │ │ ├── Faculty.java
│ │ │ ├── ForeignLanguage.java
│ │ │ ├── JobSeeker.java
│ │ │ ├── JobTitle.java
│ │ │ ├── ProgrammingSkill.java
│ │ │ ├── Resume.java
│ │ │ ├── ResumePhoto.java
│ │ │ ├── SalaryScale.java
│ │ │ ├── SocialMedia.java
│ │ │ ├── University.java
│ │ │ ├── UniversityDepartment.java
│ │ │ ├── User.java
│ │ │ └── WorkExperience.java
│ │ │ └── dtos
│ │ │ └── DetailSeekerDto.java
│ └── resources
│ │ └── application.properties
└── test
│ └── java
│ └── kodlama
│ └── io
│ └── hrms
│ └── HrmsApplicationTests.java
└── system.properties
/.gitignore:
--------------------------------------------------------------------------------
1 | HELP.md
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | !**/src/main/**/target/
5 | !**/src/test/**/target/
6 |
7 | ### STS ###
8 | .apt_generated
9 | .classpath
10 | .factorypath
11 | .project
12 | .settings
13 | .springBeans
14 | .sts4-cache
15 |
16 | ### IntelliJ IDEA ###
17 | .idea
18 | *.iws
19 | *.iml
20 | *.ipr
21 |
22 | ### NetBeans ###
23 | /nbproject/private/
24 | /nbbuild/
25 | /dist/
26 | /nbdist/
27 | /.nb-gradle/
28 | build/
29 | !**/src/main/**/build/
30 | !**/src/test/**/build/
31 |
32 | ### VS Code ###
33 | .vscode/
34 |
--------------------------------------------------------------------------------
/.mvn/wrapper/MavenWrapperDownloader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-present the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | import java.net.*;
17 | import java.io.*;
18 | import java.nio.channels.*;
19 | import java.util.Properties;
20 |
21 | public class MavenWrapperDownloader {
22 |
23 | private static final String WRAPPER_VERSION = "0.5.6";
24 | /**
25 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
26 | */
27 | private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
28 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
29 |
30 | /**
31 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
32 | * use instead of the default one.
33 | */
34 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
35 | ".mvn/wrapper/maven-wrapper.properties";
36 |
37 | /**
38 | * Path where the maven-wrapper.jar will be saved to.
39 | */
40 | private static final String MAVEN_WRAPPER_JAR_PATH =
41 | ".mvn/wrapper/maven-wrapper.jar";
42 |
43 | /**
44 | * Name of the property which should be used to override the default download url for the wrapper.
45 | */
46 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
47 |
48 | public static void main(String args[]) {
49 | System.out.println("- Downloader started");
50 | File baseDirectory = new File(args[0]);
51 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
52 |
53 | // If the maven-wrapper.properties exists, read it and check if it contains a custom
54 | // wrapperUrl parameter.
55 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
56 | String url = DEFAULT_DOWNLOAD_URL;
57 | if(mavenWrapperPropertyFile.exists()) {
58 | FileInputStream mavenWrapperPropertyFileInputStream = null;
59 | try {
60 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
61 | Properties mavenWrapperProperties = new Properties();
62 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
63 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
64 | } catch (IOException e) {
65 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
66 | } finally {
67 | try {
68 | if(mavenWrapperPropertyFileInputStream != null) {
69 | mavenWrapperPropertyFileInputStream.close();
70 | }
71 | } catch (IOException e) {
72 | // Ignore ...
73 | }
74 | }
75 | }
76 | System.out.println("- Downloading from: " + url);
77 |
78 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
79 | if(!outputFile.getParentFile().exists()) {
80 | if(!outputFile.getParentFile().mkdirs()) {
81 | System.out.println(
82 | "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
83 | }
84 | }
85 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
86 | try {
87 | downloadFileFromURL(url, outputFile);
88 | System.out.println("Done");
89 | System.exit(0);
90 | } catch (Throwable e) {
91 | System.out.println("- Error downloading");
92 | e.printStackTrace();
93 | System.exit(1);
94 | }
95 | }
96 |
97 | private static void downloadFileFromURL(String urlString, File destination) throws Exception {
98 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
99 | String username = System.getenv("MVNW_USERNAME");
100 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
101 | Authenticator.setDefault(new Authenticator() {
102 | @Override
103 | protected PasswordAuthentication getPasswordAuthentication() {
104 | return new PasswordAuthentication(username, password);
105 | }
106 | });
107 | }
108 | URL website = new URL(urlString);
109 | ReadableByteChannel rbc;
110 | rbc = Channels.newChannel(website.openStream());
111 | FileOutputStream fos = new FileOutputStream(destination);
112 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
113 | fos.close();
114 | rbc.close();
115 | }
116 |
117 | }
118 |
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/Diagram/diagram.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/Diagram/diagram.PNG
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Java---Backend-for-Human-Resource-Management-System
2 |
3 | #Postgresql Data Modelling
4 |
5 |
6 | 
7 |
--------------------------------------------------------------------------------
/bin/.gitignore:
--------------------------------------------------------------------------------
1 | HELP.md
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | !**/src/main/**/target/
5 | !**/src/test/**/target/
6 |
7 | ### STS ###
8 | .apt_generated
9 | .classpath
10 | .factorypath
11 | .project
12 | .settings
13 | .springBeans
14 | .sts4-cache
15 |
16 | ### IntelliJ IDEA ###
17 | .idea
18 | *.iws
19 | *.iml
20 | *.ipr
21 |
22 | ### NetBeans ###
23 | /nbproject/private/
24 | /nbbuild/
25 | /dist/
26 | /nbdist/
27 | /.nb-gradle/
28 | build/
29 | !**/src/main/**/build/
30 | !**/src/test/**/build/
31 |
32 | ### VS Code ###
33 | .vscode/
34 |
--------------------------------------------------------------------------------
/bin/.mvn/wrapper/MavenWrapperDownloader.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/.mvn/wrapper/MavenWrapperDownloader.class
--------------------------------------------------------------------------------
/bin/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/bin/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/bin/Diagram/diagram.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/Diagram/diagram.PNG
--------------------------------------------------------------------------------
/bin/README.md:
--------------------------------------------------------------------------------
1 | # Java---Backend-for-Human-Resource-Management-System
2 |
3 | #Postgresql Data Modelling
4 |
5 |
6 | 
7 |
--------------------------------------------------------------------------------
/bin/mvnw:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ----------------------------------------------------------------------------
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # https://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | # ----------------------------------------------------------------------------
20 |
21 | # ----------------------------------------------------------------------------
22 | # Maven Start Up Batch script
23 | #
24 | # Required ENV vars:
25 | # ------------------
26 | # JAVA_HOME - location of a JDK home dir
27 | #
28 | # Optional ENV vars
29 | # -----------------
30 | # M2_HOME - location of maven2's installed home dir
31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven
32 | # e.g. to debug Maven itself, use
33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35 | # ----------------------------------------------------------------------------
36 |
37 | if [ -z "$MAVEN_SKIP_RC" ] ; then
38 |
39 | if [ -f /etc/mavenrc ] ; then
40 | . /etc/mavenrc
41 | fi
42 |
43 | if [ -f "$HOME/.mavenrc" ] ; then
44 | . "$HOME/.mavenrc"
45 | fi
46 |
47 | fi
48 |
49 | # OS specific support. $var _must_ be set to either true or false.
50 | cygwin=false;
51 | darwin=false;
52 | mingw=false
53 | case "`uname`" in
54 | CYGWIN*) cygwin=true ;;
55 | MINGW*) mingw=true;;
56 | Darwin*) darwin=true
57 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59 | if [ -z "$JAVA_HOME" ]; then
60 | if [ -x "/usr/libexec/java_home" ]; then
61 | export JAVA_HOME="`/usr/libexec/java_home`"
62 | else
63 | export JAVA_HOME="/Library/Java/Home"
64 | fi
65 | fi
66 | ;;
67 | esac
68 |
69 | if [ -z "$JAVA_HOME" ] ; then
70 | if [ -r /etc/gentoo-release ] ; then
71 | JAVA_HOME=`java-config --jre-home`
72 | fi
73 | fi
74 |
75 | if [ -z "$M2_HOME" ] ; then
76 | ## resolve links - $0 may be a link to maven's home
77 | PRG="$0"
78 |
79 | # need this for relative symlinks
80 | while [ -h "$PRG" ] ; do
81 | ls=`ls -ld "$PRG"`
82 | link=`expr "$ls" : '.*-> \(.*\)$'`
83 | if expr "$link" : '/.*' > /dev/null; then
84 | PRG="$link"
85 | else
86 | PRG="`dirname "$PRG"`/$link"
87 | fi
88 | done
89 |
90 | saveddir=`pwd`
91 |
92 | M2_HOME=`dirname "$PRG"`/..
93 |
94 | # make it fully qualified
95 | M2_HOME=`cd "$M2_HOME" && pwd`
96 |
97 | cd "$saveddir"
98 | # echo Using m2 at $M2_HOME
99 | fi
100 |
101 | # For Cygwin, ensure paths are in UNIX format before anything is touched
102 | if $cygwin ; then
103 | [ -n "$M2_HOME" ] &&
104 | M2_HOME=`cygpath --unix "$M2_HOME"`
105 | [ -n "$JAVA_HOME" ] &&
106 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107 | [ -n "$CLASSPATH" ] &&
108 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109 | fi
110 |
111 | # For Mingw, ensure paths are in UNIX format before anything is touched
112 | if $mingw ; then
113 | [ -n "$M2_HOME" ] &&
114 | M2_HOME="`(cd "$M2_HOME"; pwd)`"
115 | [ -n "$JAVA_HOME" ] &&
116 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117 | fi
118 |
119 | if [ -z "$JAVA_HOME" ]; then
120 | javaExecutable="`which javac`"
121 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
122 | # readlink(1) is not available as standard on Solaris 10.
123 | readLink=`which readlink`
124 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
125 | if $darwin ; then
126 | javaHome="`dirname \"$javaExecutable\"`"
127 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
128 | else
129 | javaExecutable="`readlink -f \"$javaExecutable\"`"
130 | fi
131 | javaHome="`dirname \"$javaExecutable\"`"
132 | javaHome=`expr "$javaHome" : '\(.*\)/bin'`
133 | JAVA_HOME="$javaHome"
134 | export JAVA_HOME
135 | fi
136 | fi
137 | fi
138 |
139 | if [ -z "$JAVACMD" ] ; then
140 | if [ -n "$JAVA_HOME" ] ; then
141 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
142 | # IBM's JDK on AIX uses strange locations for the executables
143 | JAVACMD="$JAVA_HOME/jre/sh/java"
144 | else
145 | JAVACMD="$JAVA_HOME/bin/java"
146 | fi
147 | else
148 | JAVACMD="`which java`"
149 | fi
150 | fi
151 |
152 | if [ ! -x "$JAVACMD" ] ; then
153 | echo "Error: JAVA_HOME is not defined correctly." >&2
154 | echo " We cannot execute $JAVACMD" >&2
155 | exit 1
156 | fi
157 |
158 | if [ -z "$JAVA_HOME" ] ; then
159 | echo "Warning: JAVA_HOME environment variable is not set."
160 | fi
161 |
162 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
163 |
164 | # traverses directory structure from process work directory to filesystem root
165 | # first directory with .mvn subdirectory is considered project base directory
166 | find_maven_basedir() {
167 |
168 | if [ -z "$1" ]
169 | then
170 | echo "Path not specified to find_maven_basedir"
171 | return 1
172 | fi
173 |
174 | basedir="$1"
175 | wdir="$1"
176 | while [ "$wdir" != '/' ] ; do
177 | if [ -d "$wdir"/.mvn ] ; then
178 | basedir=$wdir
179 | break
180 | fi
181 | # workaround for JBEAP-8937 (on Solaris 10/Sparc)
182 | if [ -d "${wdir}" ]; then
183 | wdir=`cd "$wdir/.."; pwd`
184 | fi
185 | # end of workaround
186 | done
187 | echo "${basedir}"
188 | }
189 |
190 | # concatenates all lines of a file
191 | concat_lines() {
192 | if [ -f "$1" ]; then
193 | echo "$(tr -s '\n' ' ' < "$1")"
194 | fi
195 | }
196 |
197 | BASE_DIR=`find_maven_basedir "$(pwd)"`
198 | if [ -z "$BASE_DIR" ]; then
199 | exit 1;
200 | fi
201 |
202 | ##########################################################################################
203 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
204 | # This allows using the maven wrapper in projects that prohibit checking in binary data.
205 | ##########################################################################################
206 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
207 | if [ "$MVNW_VERBOSE" = true ]; then
208 | echo "Found .mvn/wrapper/maven-wrapper.jar"
209 | fi
210 | else
211 | if [ "$MVNW_VERBOSE" = true ]; then
212 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
213 | fi
214 | if [ -n "$MVNW_REPOURL" ]; then
215 | jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
216 | else
217 | jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
218 | fi
219 | while IFS="=" read key value; do
220 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
221 | esac
222 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
223 | if [ "$MVNW_VERBOSE" = true ]; then
224 | echo "Downloading from: $jarUrl"
225 | fi
226 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
227 | if $cygwin; then
228 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
229 | fi
230 |
231 | if command -v wget > /dev/null; then
232 | if [ "$MVNW_VERBOSE" = true ]; then
233 | echo "Found wget ... using wget"
234 | fi
235 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
236 | wget "$jarUrl" -O "$wrapperJarPath"
237 | else
238 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
239 | fi
240 | elif command -v curl > /dev/null; then
241 | if [ "$MVNW_VERBOSE" = true ]; then
242 | echo "Found curl ... using curl"
243 | fi
244 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
245 | curl -o "$wrapperJarPath" "$jarUrl" -f
246 | else
247 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
248 | fi
249 |
250 | else
251 | if [ "$MVNW_VERBOSE" = true ]; then
252 | echo "Falling back to using Java to download"
253 | fi
254 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
255 | # For Cygwin, switch paths to Windows format before running javac
256 | if $cygwin; then
257 | javaClass=`cygpath --path --windows "$javaClass"`
258 | fi
259 | if [ -e "$javaClass" ]; then
260 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
261 | if [ "$MVNW_VERBOSE" = true ]; then
262 | echo " - Compiling MavenWrapperDownloader.java ..."
263 | fi
264 | # Compiling the Java class
265 | ("$JAVA_HOME/bin/javac" "$javaClass")
266 | fi
267 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
268 | # Running the downloader
269 | if [ "$MVNW_VERBOSE" = true ]; then
270 | echo " - Running MavenWrapperDownloader.java ..."
271 | fi
272 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
273 | fi
274 | fi
275 | fi
276 | fi
277 | ##########################################################################################
278 | # End of extension
279 | ##########################################################################################
280 |
281 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
282 | if [ "$MVNW_VERBOSE" = true ]; then
283 | echo $MAVEN_PROJECTBASEDIR
284 | fi
285 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
286 |
287 | # For Cygwin, switch paths to Windows format before running java
288 | if $cygwin; then
289 | [ -n "$M2_HOME" ] &&
290 | M2_HOME=`cygpath --path --windows "$M2_HOME"`
291 | [ -n "$JAVA_HOME" ] &&
292 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
293 | [ -n "$CLASSPATH" ] &&
294 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
295 | [ -n "$MAVEN_PROJECTBASEDIR" ] &&
296 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
297 | fi
298 |
299 | # Provide a "standardized" way to retrieve the CLI args that will
300 | # work with both Windows and non-Windows executions.
301 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
302 | export MAVEN_CMD_LINE_ARGS
303 |
304 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
305 |
306 | exec "$JAVACMD" \
307 | $MAVEN_OPTS \
308 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
309 | "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
310 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
311 |
--------------------------------------------------------------------------------
/bin/mvnw.cmd:
--------------------------------------------------------------------------------
1 | @REM ----------------------------------------------------------------------------
2 | @REM Licensed to the Apache Software Foundation (ASF) under one
3 | @REM or more contributor license agreements. See the NOTICE file
4 | @REM distributed with this work for additional information
5 | @REM regarding copyright ownership. The ASF licenses this file
6 | @REM to you under the Apache License, Version 2.0 (the
7 | @REM "License"); you may not use this file except in compliance
8 | @REM with the License. You may obtain a copy of the License at
9 | @REM
10 | @REM https://www.apache.org/licenses/LICENSE-2.0
11 | @REM
12 | @REM Unless required by applicable law or agreed to in writing,
13 | @REM software distributed under the License is distributed on an
14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | @REM KIND, either express or implied. See the License for the
16 | @REM specific language governing permissions and limitations
17 | @REM under the License.
18 | @REM ----------------------------------------------------------------------------
19 |
20 | @REM ----------------------------------------------------------------------------
21 | @REM Maven Start Up Batch script
22 | @REM
23 | @REM Required ENV vars:
24 | @REM JAVA_HOME - location of a JDK home dir
25 | @REM
26 | @REM Optional ENV vars
27 | @REM M2_HOME - location of maven2's installed home dir
28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31 | @REM e.g. to debug Maven itself, use
32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34 | @REM ----------------------------------------------------------------------------
35 |
36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37 | @echo off
38 | @REM set title of command window
39 | title %0
40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
42 |
43 | @REM set %HOME% to equivalent of $HOME
44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45 |
46 | @REM Execute a user defined script before this one
47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending
49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51 | :skipRcPre
52 |
53 | @setlocal
54 |
55 | set ERROR_CODE=0
56 |
57 | @REM To isolate internal variables from possible post scripts, we use another setlocal
58 | @setlocal
59 |
60 | @REM ==== START VALIDATION ====
61 | if not "%JAVA_HOME%" == "" goto OkJHome
62 |
63 | echo.
64 | echo Error: JAVA_HOME not found in your environment. >&2
65 | echo Please set the JAVA_HOME variable in your environment to match the >&2
66 | echo location of your Java installation. >&2
67 | echo.
68 | goto error
69 |
70 | :OkJHome
71 | if exist "%JAVA_HOME%\bin\java.exe" goto init
72 |
73 | echo.
74 | echo Error: JAVA_HOME is set to an invalid directory. >&2
75 | echo JAVA_HOME = "%JAVA_HOME%" >&2
76 | echo Please set the JAVA_HOME variable in your environment to match the >&2
77 | echo location of your Java installation. >&2
78 | echo.
79 | goto error
80 |
81 | @REM ==== END VALIDATION ====
82 |
83 | :init
84 |
85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86 | @REM Fallback to current working directory if not found.
87 |
88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90 |
91 | set EXEC_DIR=%CD%
92 | set WDIR=%EXEC_DIR%
93 | :findBaseDir
94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound
95 | cd ..
96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound
97 | set WDIR=%CD%
98 | goto findBaseDir
99 |
100 | :baseDirFound
101 | set MAVEN_PROJECTBASEDIR=%WDIR%
102 | cd "%EXEC_DIR%"
103 | goto endDetectBaseDir
104 |
105 | :baseDirNotFound
106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107 | cd "%EXEC_DIR%"
108 |
109 | :endDetectBaseDir
110 |
111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112 |
113 | @setlocal EnableExtensions EnableDelayedExpansion
114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116 |
117 | :endReadAdditionalConfig
118 |
119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122 |
123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124 |
125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127 | )
128 |
129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131 | if exist %WRAPPER_JAR% (
132 | if "%MVNW_VERBOSE%" == "true" (
133 | echo Found %WRAPPER_JAR%
134 | )
135 | ) else (
136 | if not "%MVNW_REPOURL%" == "" (
137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138 | )
139 | if "%MVNW_VERBOSE%" == "true" (
140 | echo Couldn't find %WRAPPER_JAR%, downloading it ...
141 | echo Downloading from: %DOWNLOAD_URL%
142 | )
143 |
144 | powershell -Command "&{"^
145 | "$webclient = new-object System.Net.WebClient;"^
146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148 | "}"^
149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150 | "}"
151 | if "%MVNW_VERBOSE%" == "true" (
152 | echo Finished downloading %WRAPPER_JAR%
153 | )
154 | )
155 | @REM End of extension
156 |
157 | @REM Provide a "standardized" way to retrieve the CLI args that will
158 | @REM work with both Windows and non-Windows executions.
159 | set MAVEN_CMD_LINE_ARGS=%*
160 |
161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162 | if ERRORLEVEL 1 goto error
163 | goto end
164 |
165 | :error
166 | set ERROR_CODE=1
167 |
168 | :end
169 | @endlocal & set ERROR_CODE=%ERROR_CODE%
170 |
171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending
173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175 | :skipRcPost
176 |
177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause
179 |
180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181 |
182 | exit /B %ERROR_CODE%
183 |
--------------------------------------------------------------------------------
/bin/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 | org.springframework.boot
8 | spring-boot-starter-parent
9 | 2.4.5
10 |
11 |
12 | kodlama.io
13 | hrms
14 | 0.0.1-SNAPSHOT
15 | hrms
16 | Demo project for Spring Boot
17 |
18 | 11
19 |
20 |
21 |
22 | org.springframework.boot
23 | spring-boot-starter-data-jpa
24 |
25 |
26 | org.springframework.boot
27 | spring-boot-starter-web
28 |
29 |
30 |
31 | org.springframework.boot
32 | spring-boot-devtools
33 | runtime
34 | true
35 |
36 |
37 | org.postgresql
38 | postgresql
39 | runtime
40 |
41 |
42 | org.projectlombok
43 | lombok
44 | true
45 |
46 |
47 |
48 | org.springframework.boot
49 | spring-boot-starter-test
50 | test
51 |
52 |
53 |
54 |
55 | io.springfox
56 | springfox-swagger2
57 | 2.9.2
58 |
59 |
60 |
61 | io.springfox
62 | springfox-swagger-ui
63 | 2.9.2
64 |
65 |
66 |
67 | com.cloudinary
68 | cloudinary-http44
69 | 1.29.0
70 |
71 |
72 | org.hibernate.validator
73 | hibernate-validator
74 | 7.0.1.Final
75 |
76 |
77 |
78 |
79 |
80 |
81 | org.springframework.boot
82 | spring-boot-maven-plugin
83 |
84 |
85 |
86 | org.projectlombok
87 | lombok
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/HrmsApplication.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/HrmsApplication.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/AdvertisementsController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/AdvertisementsController.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/CitiesController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/CitiesController.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/EducationInformationsController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/EducationInformationsController.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/EmployersController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/EmployersController.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/JobSeekersController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/JobSeekersController.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/JobTitlesControllers.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/JobTitlesControllers.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/ResumePhotosController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/ResumePhotosController.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/ResumesController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/ResumesController.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/UsersControllers.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/UsersControllers.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/api/controllers/WorkExperiencesController.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/api/controllers/WorkExperiencesController.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/AdvertisementService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/AdvertisementService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/CityService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/CityService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/EducationInformationService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/EducationInformationService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/EmployerService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/EmployerService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/JobSeekerService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/JobSeekerService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/JobTitleService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/JobTitleService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/ResumePhotoService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/ResumePhotoService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/ResumeService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/ResumeService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/UserService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/UserService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/abstracts/WorkExperienceService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/abstracts/WorkExperienceService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/AdvertisementManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/AdvertisementManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/CityManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/CityManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/EducationInformationManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/EducationInformationManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/EmployerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/EmployerManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/JobSeekerManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/JobSeekerManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/JobTitleManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/JobTitleManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/ResumeManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/ResumeManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/ResumePhotoManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/ResumePhotoManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/UserManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/UserManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/business/concretes/WorkExperienceManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/business/concretes/WorkExperienceManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/configurations/AppConfiguration.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/configurations/AppConfiguration.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/results/DataResult.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/results/DataResult.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/results/ErrorDataResult.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/results/ErrorDataResult.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/results/ErrorResult.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/results/ErrorResult.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/results/Result.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/results/Result.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/results/SuccessDataResult.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/results/SuccessDataResult.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/results/SuccessResult.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/results/SuccessResult.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/validations/EmailVerificationManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/validations/EmailVerificationManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/validations/EmailVerificationService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/validations/EmailVerificationService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/validations/MernisVerificationManager.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/validations/MernisVerificationManager.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/core/utilities/validations/MernisVerificationService.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/core/utilities/validations/MernisVerificationService.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/AdvertisementDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/AdvertisementDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/CityDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/CityDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/EducationInformationDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/EducationInformationDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/EmployerDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/EmployerDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/JobSeekerDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/JobSeekerDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/JobTitleDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/JobTitleDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/ResumeDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/ResumeDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/ResumePhotoDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/ResumePhotoDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/UserDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/UserDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/WorkExperienceDao.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/dataAccess/abstracts/WorkExperienceDao.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/Advertisement.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/Advertisement.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/City.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/City.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/CoverLetter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/CoverLetter.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/EducationInformation.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/EducationInformation.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/Employer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/Employer.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/Faculty.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/Faculty.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/ForeignLanguage.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/ForeignLanguage.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/JobSeeker.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/JobSeeker.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/JobTitle.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/JobTitle.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/ProgrammingSkill.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/ProgrammingSkill.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/Resume.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/Resume.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/ResumePhoto.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/ResumePhoto.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/SalaryScale.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/SalaryScale.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/SocialMedia.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/SocialMedia.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/University.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/University.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/UniversityDepartment.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/UniversityDepartment.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/User.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/User.class
--------------------------------------------------------------------------------
/bin/src/main/java/kodlama/io/hrms/entities/concretes/WorkExperience.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/main/java/kodlama/io/hrms/entities/concretes/WorkExperience.class
--------------------------------------------------------------------------------
/bin/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
2 | spring.jpa.hibernate.ddl-auto=update
3 | spring.jpa.hibernate.show-sql=true
4 | spring.datasource.url=jdbc:postgresql://localhost:5432/hrms
5 | spring.datasource.username=postgres
6 | spring.datasource.password=1234
7 | spring.jpa.properties.javax.persistence.validation.mode = none
8 | server.port=8080
--------------------------------------------------------------------------------
/bin/src/test/java/kodlama/io/hrms/HrmsApplicationTests.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/UurZer/Java---Backend-for-Human-Resource-Management-System/c1012d95b6d0a33267545b2f245e256413f1dc1a/bin/src/test/java/kodlama/io/hrms/HrmsApplicationTests.class
--------------------------------------------------------------------------------
/mvnw:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ----------------------------------------------------------------------------
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # https://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | # ----------------------------------------------------------------------------
20 |
21 | # ----------------------------------------------------------------------------
22 | # Maven Start Up Batch script
23 | #
24 | # Required ENV vars:
25 | # ------------------
26 | # JAVA_HOME - location of a JDK home dir
27 | #
28 | # Optional ENV vars
29 | # -----------------
30 | # M2_HOME - location of maven2's installed home dir
31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven
32 | # e.g. to debug Maven itself, use
33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35 | # ----------------------------------------------------------------------------
36 |
37 | if [ -z "$MAVEN_SKIP_RC" ] ; then
38 |
39 | if [ -f /etc/mavenrc ] ; then
40 | . /etc/mavenrc
41 | fi
42 |
43 | if [ -f "$HOME/.mavenrc" ] ; then
44 | . "$HOME/.mavenrc"
45 | fi
46 |
47 | fi
48 |
49 | # OS specific support. $var _must_ be set to either true or false.
50 | cygwin=false;
51 | darwin=false;
52 | mingw=false
53 | case "`uname`" in
54 | CYGWIN*) cygwin=true ;;
55 | MINGW*) mingw=true;;
56 | Darwin*) darwin=true
57 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59 | if [ -z "$JAVA_HOME" ]; then
60 | if [ -x "/usr/libexec/java_home" ]; then
61 | export JAVA_HOME="`/usr/libexec/java_home`"
62 | else
63 | export JAVA_HOME="/Library/Java/Home"
64 | fi
65 | fi
66 | ;;
67 | esac
68 |
69 | if [ -z "$JAVA_HOME" ] ; then
70 | if [ -r /etc/gentoo-release ] ; then
71 | JAVA_HOME=`java-config --jre-home`
72 | fi
73 | fi
74 |
75 | if [ -z "$M2_HOME" ] ; then
76 | ## resolve links - $0 may be a link to maven's home
77 | PRG="$0"
78 |
79 | # need this for relative symlinks
80 | while [ -h "$PRG" ] ; do
81 | ls=`ls -ld "$PRG"`
82 | link=`expr "$ls" : '.*-> \(.*\)$'`
83 | if expr "$link" : '/.*' > /dev/null; then
84 | PRG="$link"
85 | else
86 | PRG="`dirname "$PRG"`/$link"
87 | fi
88 | done
89 |
90 | saveddir=`pwd`
91 |
92 | M2_HOME=`dirname "$PRG"`/..
93 |
94 | # make it fully qualified
95 | M2_HOME=`cd "$M2_HOME" && pwd`
96 |
97 | cd "$saveddir"
98 | # echo Using m2 at $M2_HOME
99 | fi
100 |
101 | # For Cygwin, ensure paths are in UNIX format before anything is touched
102 | if $cygwin ; then
103 | [ -n "$M2_HOME" ] &&
104 | M2_HOME=`cygpath --unix "$M2_HOME"`
105 | [ -n "$JAVA_HOME" ] &&
106 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107 | [ -n "$CLASSPATH" ] &&
108 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109 | fi
110 |
111 | # For Mingw, ensure paths are in UNIX format before anything is touched
112 | if $mingw ; then
113 | [ -n "$M2_HOME" ] &&
114 | M2_HOME="`(cd "$M2_HOME"; pwd)`"
115 | [ -n "$JAVA_HOME" ] &&
116 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117 | fi
118 |
119 | if [ -z "$JAVA_HOME" ]; then
120 | javaExecutable="`which javac`"
121 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
122 | # readlink(1) is not available as standard on Solaris 10.
123 | readLink=`which readlink`
124 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
125 | if $darwin ; then
126 | javaHome="`dirname \"$javaExecutable\"`"
127 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
128 | else
129 | javaExecutable="`readlink -f \"$javaExecutable\"`"
130 | fi
131 | javaHome="`dirname \"$javaExecutable\"`"
132 | javaHome=`expr "$javaHome" : '\(.*\)/bin'`
133 | JAVA_HOME="$javaHome"
134 | export JAVA_HOME
135 | fi
136 | fi
137 | fi
138 |
139 | if [ -z "$JAVACMD" ] ; then
140 | if [ -n "$JAVA_HOME" ] ; then
141 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
142 | # IBM's JDK on AIX uses strange locations for the executables
143 | JAVACMD="$JAVA_HOME/jre/sh/java"
144 | else
145 | JAVACMD="$JAVA_HOME/bin/java"
146 | fi
147 | else
148 | JAVACMD="`which java`"
149 | fi
150 | fi
151 |
152 | if [ ! -x "$JAVACMD" ] ; then
153 | echo "Error: JAVA_HOME is not defined correctly." >&2
154 | echo " We cannot execute $JAVACMD" >&2
155 | exit 1
156 | fi
157 |
158 | if [ -z "$JAVA_HOME" ] ; then
159 | echo "Warning: JAVA_HOME environment variable is not set."
160 | fi
161 |
162 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
163 |
164 | # traverses directory structure from process work directory to filesystem root
165 | # first directory with .mvn subdirectory is considered project base directory
166 | find_maven_basedir() {
167 |
168 | if [ -z "$1" ]
169 | then
170 | echo "Path not specified to find_maven_basedir"
171 | return 1
172 | fi
173 |
174 | basedir="$1"
175 | wdir="$1"
176 | while [ "$wdir" != '/' ] ; do
177 | if [ -d "$wdir"/.mvn ] ; then
178 | basedir=$wdir
179 | break
180 | fi
181 | # workaround for JBEAP-8937 (on Solaris 10/Sparc)
182 | if [ -d "${wdir}" ]; then
183 | wdir=`cd "$wdir/.."; pwd`
184 | fi
185 | # end of workaround
186 | done
187 | echo "${basedir}"
188 | }
189 |
190 | # concatenates all lines of a file
191 | concat_lines() {
192 | if [ -f "$1" ]; then
193 | echo "$(tr -s '\n' ' ' < "$1")"
194 | fi
195 | }
196 |
197 | BASE_DIR=`find_maven_basedir "$(pwd)"`
198 | if [ -z "$BASE_DIR" ]; then
199 | exit 1;
200 | fi
201 |
202 | ##########################################################################################
203 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
204 | # This allows using the maven wrapper in projects that prohibit checking in binary data.
205 | ##########################################################################################
206 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
207 | if [ "$MVNW_VERBOSE" = true ]; then
208 | echo "Found .mvn/wrapper/maven-wrapper.jar"
209 | fi
210 | else
211 | if [ "$MVNW_VERBOSE" = true ]; then
212 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
213 | fi
214 | if [ -n "$MVNW_REPOURL" ]; then
215 | jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
216 | else
217 | jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
218 | fi
219 | while IFS="=" read key value; do
220 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
221 | esac
222 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
223 | if [ "$MVNW_VERBOSE" = true ]; then
224 | echo "Downloading from: $jarUrl"
225 | fi
226 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
227 | if $cygwin; then
228 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
229 | fi
230 |
231 | if command -v wget > /dev/null; then
232 | if [ "$MVNW_VERBOSE" = true ]; then
233 | echo "Found wget ... using wget"
234 | fi
235 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
236 | wget "$jarUrl" -O "$wrapperJarPath"
237 | else
238 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
239 | fi
240 | elif command -v curl > /dev/null; then
241 | if [ "$MVNW_VERBOSE" = true ]; then
242 | echo "Found curl ... using curl"
243 | fi
244 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
245 | curl -o "$wrapperJarPath" "$jarUrl" -f
246 | else
247 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
248 | fi
249 |
250 | else
251 | if [ "$MVNW_VERBOSE" = true ]; then
252 | echo "Falling back to using Java to download"
253 | fi
254 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
255 | # For Cygwin, switch paths to Windows format before running javac
256 | if $cygwin; then
257 | javaClass=`cygpath --path --windows "$javaClass"`
258 | fi
259 | if [ -e "$javaClass" ]; then
260 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
261 | if [ "$MVNW_VERBOSE" = true ]; then
262 | echo " - Compiling MavenWrapperDownloader.java ..."
263 | fi
264 | # Compiling the Java class
265 | ("$JAVA_HOME/bin/javac" "$javaClass")
266 | fi
267 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
268 | # Running the downloader
269 | if [ "$MVNW_VERBOSE" = true ]; then
270 | echo " - Running MavenWrapperDownloader.java ..."
271 | fi
272 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
273 | fi
274 | fi
275 | fi
276 | fi
277 | ##########################################################################################
278 | # End of extension
279 | ##########################################################################################
280 |
281 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
282 | if [ "$MVNW_VERBOSE" = true ]; then
283 | echo $MAVEN_PROJECTBASEDIR
284 | fi
285 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
286 |
287 | # For Cygwin, switch paths to Windows format before running java
288 | if $cygwin; then
289 | [ -n "$M2_HOME" ] &&
290 | M2_HOME=`cygpath --path --windows "$M2_HOME"`
291 | [ -n "$JAVA_HOME" ] &&
292 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
293 | [ -n "$CLASSPATH" ] &&
294 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
295 | [ -n "$MAVEN_PROJECTBASEDIR" ] &&
296 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
297 | fi
298 |
299 | # Provide a "standardized" way to retrieve the CLI args that will
300 | # work with both Windows and non-Windows executions.
301 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
302 | export MAVEN_CMD_LINE_ARGS
303 |
304 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
305 |
306 | exec "$JAVACMD" \
307 | $MAVEN_OPTS \
308 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
309 | "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
310 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
311 |
--------------------------------------------------------------------------------
/mvnw.cmd:
--------------------------------------------------------------------------------
1 | @REM ----------------------------------------------------------------------------
2 | @REM Licensed to the Apache Software Foundation (ASF) under one
3 | @REM or more contributor license agreements. See the NOTICE file
4 | @REM distributed with this work for additional information
5 | @REM regarding copyright ownership. The ASF licenses this file
6 | @REM to you under the Apache License, Version 2.0 (the
7 | @REM "License"); you may not use this file except in compliance
8 | @REM with the License. You may obtain a copy of the License at
9 | @REM
10 | @REM https://www.apache.org/licenses/LICENSE-2.0
11 | @REM
12 | @REM Unless required by applicable law or agreed to in writing,
13 | @REM software distributed under the License is distributed on an
14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | @REM KIND, either express or implied. See the License for the
16 | @REM specific language governing permissions and limitations
17 | @REM under the License.
18 | @REM ----------------------------------------------------------------------------
19 |
20 | @REM ----------------------------------------------------------------------------
21 | @REM Maven Start Up Batch script
22 | @REM
23 | @REM Required ENV vars:
24 | @REM JAVA_HOME - location of a JDK home dir
25 | @REM
26 | @REM Optional ENV vars
27 | @REM M2_HOME - location of maven2's installed home dir
28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31 | @REM e.g. to debug Maven itself, use
32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34 | @REM ----------------------------------------------------------------------------
35 |
36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37 | @echo off
38 | @REM set title of command window
39 | title %0
40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
42 |
43 | @REM set %HOME% to equivalent of $HOME
44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45 |
46 | @REM Execute a user defined script before this one
47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending
49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51 | :skipRcPre
52 |
53 | @setlocal
54 |
55 | set ERROR_CODE=0
56 |
57 | @REM To isolate internal variables from possible post scripts, we use another setlocal
58 | @setlocal
59 |
60 | @REM ==== START VALIDATION ====
61 | if not "%JAVA_HOME%" == "" goto OkJHome
62 |
63 | echo.
64 | echo Error: JAVA_HOME not found in your environment. >&2
65 | echo Please set the JAVA_HOME variable in your environment to match the >&2
66 | echo location of your Java installation. >&2
67 | echo.
68 | goto error
69 |
70 | :OkJHome
71 | if exist "%JAVA_HOME%\bin\java.exe" goto init
72 |
73 | echo.
74 | echo Error: JAVA_HOME is set to an invalid directory. >&2
75 | echo JAVA_HOME = "%JAVA_HOME%" >&2
76 | echo Please set the JAVA_HOME variable in your environment to match the >&2
77 | echo location of your Java installation. >&2
78 | echo.
79 | goto error
80 |
81 | @REM ==== END VALIDATION ====
82 |
83 | :init
84 |
85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86 | @REM Fallback to current working directory if not found.
87 |
88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90 |
91 | set EXEC_DIR=%CD%
92 | set WDIR=%EXEC_DIR%
93 | :findBaseDir
94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound
95 | cd ..
96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound
97 | set WDIR=%CD%
98 | goto findBaseDir
99 |
100 | :baseDirFound
101 | set MAVEN_PROJECTBASEDIR=%WDIR%
102 | cd "%EXEC_DIR%"
103 | goto endDetectBaseDir
104 |
105 | :baseDirNotFound
106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107 | cd "%EXEC_DIR%"
108 |
109 | :endDetectBaseDir
110 |
111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112 |
113 | @setlocal EnableExtensions EnableDelayedExpansion
114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116 |
117 | :endReadAdditionalConfig
118 |
119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122 |
123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124 |
125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127 | )
128 |
129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131 | if exist %WRAPPER_JAR% (
132 | if "%MVNW_VERBOSE%" == "true" (
133 | echo Found %WRAPPER_JAR%
134 | )
135 | ) else (
136 | if not "%MVNW_REPOURL%" == "" (
137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138 | )
139 | if "%MVNW_VERBOSE%" == "true" (
140 | echo Couldn't find %WRAPPER_JAR%, downloading it ...
141 | echo Downloading from: %DOWNLOAD_URL%
142 | )
143 |
144 | powershell -Command "&{"^
145 | "$webclient = new-object System.Net.WebClient;"^
146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148 | "}"^
149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150 | "}"
151 | if "%MVNW_VERBOSE%" == "true" (
152 | echo Finished downloading %WRAPPER_JAR%
153 | )
154 | )
155 | @REM End of extension
156 |
157 | @REM Provide a "standardized" way to retrieve the CLI args that will
158 | @REM work with both Windows and non-Windows executions.
159 | set MAVEN_CMD_LINE_ARGS=%*
160 |
161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162 | if ERRORLEVEL 1 goto error
163 | goto end
164 |
165 | :error
166 | set ERROR_CODE=1
167 |
168 | :end
169 | @endlocal & set ERROR_CODE=%ERROR_CODE%
170 |
171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending
173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175 | :skipRcPost
176 |
177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause
179 |
180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181 |
182 | exit /B %ERROR_CODE%
183 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 | org.springframework.boot
8 | spring-boot-starter-parent
9 | 2.4.5
10 |
11 |
12 | kodlama.io
13 | hrms
14 | 0.0.1-SNAPSHOT
15 | hrms
16 | Demo project for Spring Boot
17 |
18 | 11
19 |
20 |
21 |
22 | org.springframework.boot
23 | spring-boot-starter-data-jpa
24 |
25 |
26 | org.springframework.boot
27 | spring-boot-starter-web
28 |
29 |
30 |
31 | org.springframework.boot
32 | spring-boot-devtools
33 | runtime
34 | true
35 |
36 |
37 | org.postgresql
38 | postgresql
39 | runtime
40 |
41 |
42 | org.projectlombok
43 | lombok
44 | true
45 |
46 |
47 |
48 | org.springframework.boot
49 | spring-boot-starter-test
50 | test
51 |
52 |
53 |
54 |
55 | io.springfox
56 | springfox-swagger2
57 | 2.9.2
58 |
59 |
60 |
61 | io.springfox
62 | springfox-swagger-ui
63 | 2.9.2
64 |
65 |
66 |
67 | com.cloudinary
68 | cloudinary-http44
69 | 1.29.0
70 |
71 |
72 | org.hibernate.validator
73 | hibernate-validator
74 | 7.0.1.Final
75 |
76 |
77 |
78 |
79 |
80 |
81 | org.springframework.boot
82 | spring-boot-maven-plugin
83 |
84 |
85 |
86 | org.projectlombok
87 | lombok
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/HrmsApplication.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms;
2 |
3 | import java.io.File;
4 | import java.io.IOException;
5 | import java.util.Map;
6 |
7 | import org.springframework.boot.SpringApplication;
8 | import org.springframework.boot.autoconfigure.SpringBootApplication;
9 | import org.springframework.context.annotation.Bean;
10 |
11 | import springfox.documentation.builders.RequestHandlerSelectors;
12 | import springfox.documentation.spi.DocumentationType;
13 | import springfox.documentation.spring.web.plugins.Docket;
14 | import springfox.documentation.swagger2.annotations.EnableSwagger2;
15 | import com.cloudinary.*;
16 | import com.cloudinary.utils.ObjectUtils;
17 |
18 | @SpringBootApplication
19 | @EnableSwagger2
20 | public class HrmsApplication {
21 |
22 | public static void main(String[] args) throws IOException {
23 | SpringApplication.run(HrmsApplication.class, args);
24 | }
25 |
26 | @Bean
27 | public Docket api() {
28 | return new Docket(DocumentationType.SWAGGER_2)
29 | .select()
30 | .apis(RequestHandlerSelectors.basePackage("kodlama.io.hrms"))
31 | .build();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/AdvertisementsController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.CrossOrigin;
7 | import org.springframework.web.bind.annotation.GetMapping;
8 | import org.springframework.web.bind.annotation.PostMapping;
9 | import org.springframework.web.bind.annotation.RequestBody;
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.RequestParam;
12 | import org.springframework.web.bind.annotation.RestController;
13 | import org.springframework.web.multipart.MultipartFile;
14 |
15 | import kodlama.io.hrms.business.abstracts.AdvertisementService;
16 | import kodlama.io.hrms.core.utilities.results.DataResult;
17 | import kodlama.io.hrms.core.utilities.results.Result;
18 | import kodlama.io.hrms.entities.concretes.Advertisement;
19 |
20 | @RestController//Bu sınıfın Controller olduğunu söylüyoruz
21 | @RequestMapping("/api/advertisements")//Route
22 | @CrossOrigin
23 | public class AdvertisementsController {
24 |
25 | private AdvertisementService advertisementService;
26 |
27 | @Autowired
28 | public AdvertisementsController(AdvertisementService advertisementService) {
29 | super();
30 | this.advertisementService = advertisementService;
31 | }
32 |
33 | @PostMapping("/add")
34 | public Result Add(@RequestBody Advertisement advertisement) {
35 | return this.advertisementService.Add(advertisement);
36 | }
37 |
38 | @GetMapping("/findAllByOrderByDateAscAndStatusTrue")
39 | public DataResult> findAllByOrderByDateAscAndStatusTrue() {
40 | return this.advertisementService.findAllByOrderByDateAscAndStatusTrue();
41 | }
42 |
43 | @GetMapping("/getByStatusTrueAndEmployer_EmployerId")
44 | public DataResult> getByStatusTrueAndEmployer_EmployerId(@RequestParam int employerId,@RequestParam("status") boolean status) {
45 | return this.advertisementService.getByStatusAndEmployer_EmployerId(status,employerId);
46 | }
47 |
48 | @GetMapping("/getByTitle_TitleId")
49 | public DataResult> getByTitle_TitleId(@RequestParam("titleId") int titleId) {
50 | return this.advertisementService.getByTitle_TitleId(titleId);
51 | }
52 |
53 | @GetMapping("/getById")
54 | public DataResult getById(@RequestParam("id") int id) {
55 | return this.advertisementService.getById(id);
56 | }
57 |
58 | @GetMapping("/getall")
59 | public DataResult> getAll() {
60 | return this.advertisementService.getAll();
61 | }
62 |
63 | @PostMapping("/changeStatus")
64 | public Result changeStatus(@RequestBody Advertisement advertisement,boolean status) {
65 | return this.advertisementService.ChangeStatus(advertisement,status);
66 | }
67 |
68 | @GetMapping("findByIsVerifiedTrueAndStatusTrue")
69 | public DataResult> findByIsVerifiedTrueAndStatusTrue(){
70 | return this.advertisementService.findByIsVerifiedTrueAndStatusTrue();
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/CitiesController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.CrossOrigin;
7 | import org.springframework.web.bind.annotation.GetMapping;
8 | import org.springframework.web.bind.annotation.RequestMapping;
9 | import org.springframework.web.bind.annotation.RestController;
10 |
11 | import kodlama.io.hrms.business.abstracts.CityService;
12 | import kodlama.io.hrms.core.utilities.results.DataResult;
13 | import kodlama.io.hrms.entities.concretes.City;
14 |
15 | @RestController
16 | @RequestMapping("/api/cities")//Route
17 | @CrossOrigin
18 | public class CitiesController {
19 | private CityService cityService;
20 |
21 | @Autowired
22 | public CitiesController(CityService cityService) {
23 | super();
24 | this.cityService = cityService;
25 | }
26 |
27 | @GetMapping("/getAll")
28 | private DataResult> getAll(){
29 | return this.cityService.getAll();
30 | }
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/EducationInformationsController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import org.springframework.web.bind.annotation.CrossOrigin;
4 | import org.springframework.web.bind.annotation.GetMapping;
5 | import org.springframework.web.bind.annotation.PostMapping;
6 | import org.springframework.web.bind.annotation.RequestBody;
7 | import org.springframework.web.bind.annotation.RequestMapping;
8 | import org.springframework.web.bind.annotation.RestController;
9 |
10 | import kodlama.io.hrms.business.abstracts.EducationInformationService;
11 | import org.springframework.beans.factory.annotation.Autowired;
12 | import kodlama.io.hrms.core.utilities.results.Result;
13 | import kodlama.io.hrms.entities.concretes.EducationInformation;
14 |
15 | @RestController//Bu sınıfın Controller olduğunu söylüyoruz
16 | @RequestMapping("/api/educationinformations")//Route
17 | @CrossOrigin
18 | public class EducationInformationsController {
19 |
20 | private EducationInformationService educationInformationService;
21 |
22 | @Autowired
23 | public EducationInformationsController(EducationInformationService educationInformationService) {
24 | super();
25 | this.educationInformationService = educationInformationService;
26 | }
27 |
28 | @PostMapping(value="/add")
29 | private Result Add(@RequestBody EducationInformation educationInformation)
30 | {
31 | return this.educationInformationService.Add(educationInformation);
32 | }
33 |
34 | @GetMapping(value="/getall")
35 | private Result GetAll()
36 | {
37 | return this.educationInformationService.GetAll();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/EmployersController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.GetMapping;
7 | import org.springframework.web.bind.annotation.PostMapping;
8 | import org.springframework.web.bind.annotation.RequestBody;
9 | import org.springframework.web.bind.annotation.RequestMapping;
10 | import org.springframework.web.bind.annotation.RestController;
11 |
12 | import kodlama.io.hrms.business.abstracts.EmployerService;
13 |
14 | import kodlama.io.hrms.core.utilities.results.DataResult;
15 | import kodlama.io.hrms.core.utilities.results.Result;
16 | import kodlama.io.hrms.entities.concretes.Employer;
17 |
18 | @RestController
19 | @RequestMapping("api/employers")
20 | public class EmployersController {
21 | @Autowired
22 | private EmployerService employerService;
23 |
24 |
25 | public EmployersController(EmployerService employerService) {
26 | super();
27 | this.employerService = employerService;
28 | }
29 |
30 | @GetMapping("/getall")
31 | public DataResult> getAll(){
32 | return this.employerService.getAll();
33 | }
34 |
35 | @PostMapping("/add")
36 | public Result Add(@RequestBody Employer employer) {
37 | return this.employerService.Add(employer);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/JobSeekersController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.CrossOrigin;
7 | import org.springframework.web.bind.annotation.GetMapping;
8 | import org.springframework.web.bind.annotation.PostMapping;
9 | import org.springframework.web.bind.annotation.RequestBody;
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.RestController;
12 |
13 |
14 | import kodlama.io.hrms.business.abstracts.JobSeekerService;
15 | import kodlama.io.hrms.core.utilities.results.DataResult;
16 | import kodlama.io.hrms.core.utilities.results.Result;
17 |
18 | import kodlama.io.hrms.entities.concretes.JobSeeker;
19 |
20 | @RestController
21 | @CrossOrigin
22 | @RequestMapping("api/jobseekers")
23 | public class JobSeekersController {
24 | @Autowired
25 | private JobSeekerService jobSeekerService;
26 |
27 | public JobSeekersController(JobSeekerService jobSeekerService) {
28 | super();
29 | this.jobSeekerService = jobSeekerService;
30 | }
31 |
32 | @GetMapping("/getall")
33 | public DataResult> getAll(){
34 | return this.jobSeekerService.getAll();
35 | }
36 |
37 | @GetMapping("/getBySeekerId")
38 | public DataResult getBySeekerId(int seekerId){
39 | return this.jobSeekerService.getBySeekerId(seekerId);
40 | }
41 |
42 | @PostMapping("/add")
43 | public Result Add(@RequestBody JobSeeker jobSeeker) {
44 | return this.jobSeekerService.Add(jobSeeker);
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/JobTitlesControllers.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.CrossOrigin;
7 | import org.springframework.web.bind.annotation.GetMapping;
8 | import org.springframework.web.bind.annotation.PostMapping;
9 | import org.springframework.web.bind.annotation.RequestBody;
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.RestController;
12 |
13 | import kodlama.io.hrms.business.abstracts.JobTitleService;
14 | import kodlama.io.hrms.core.utilities.results.DataResult;
15 | import kodlama.io.hrms.core.utilities.results.Result;
16 | import kodlama.io.hrms.entities.concretes.JobTitle;
17 |
18 | @RestController
19 | @RequestMapping("api/jobtitles")
20 | @CrossOrigin
21 | public class JobTitlesControllers {
22 |
23 | @Autowired
24 | private JobTitleService jobTitleService;
25 |
26 | public JobTitlesControllers(JobTitleService jobTitleService) {
27 | super();
28 | this.jobTitleService = jobTitleService;
29 | }
30 |
31 | @GetMapping("/getall")
32 | public DataResult> getAll(){
33 | return this.jobTitleService.getAll();
34 | }
35 |
36 | @PostMapping("/add")
37 | public Result Add(@RequestBody JobTitle jobTitle) {
38 | return this.jobTitleService.Add(jobTitle);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/ResumePhotosController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.io.File;
4 | import java.io.IOException;
5 | import java.util.Map;
6 |
7 | import org.springframework.beans.factory.annotation.Autowired;
8 | import org.springframework.web.bind.annotation.PostMapping;
9 |
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.RequestPart;
12 | import org.springframework.web.bind.annotation.RestController;
13 | import org.springframework.web.multipart.MultipartFile;
14 |
15 |
16 | import kodlama.io.hrms.business.abstracts.ResumePhotoService;
17 | import kodlama.io.hrms.core.utilities.results.Result;
18 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
19 |
20 |
21 |
22 |
23 | @RestController//Bu sınıfın Controller olduğunu söylüyoruz
24 | @RequestMapping("/api/resumephotos")//Route
25 | public class ResumePhotosController {
26 |
27 | private ResumePhotoService resumePhotoService;
28 |
29 | @Autowired
30 | public ResumePhotosController(ResumePhotoService resumePhotoService) {
31 | super();
32 | this.resumePhotoService = resumePhotoService;
33 | }
34 |
35 | @PostMapping("/add")
36 | public Result add(@RequestPart("photoUrl") MultipartFile multipartFile) throws IOException{
37 |
38 | this.resumePhotoService.Add(multipartFile);
39 | return new SuccessResult("Resim Eklendi");
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/ResumesController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.GetMapping;
7 | import org.springframework.web.bind.annotation.PostMapping;
8 | import org.springframework.web.bind.annotation.RequestBody;
9 | import org.springframework.web.bind.annotation.RequestMapping;
10 | import org.springframework.web.bind.annotation.RequestParam;
11 | import org.springframework.web.bind.annotation.RestController;
12 | import org.springframework.web.multipart.MultipartFile;
13 |
14 | import com.cloudinary.*;
15 |
16 | import kodlama.io.hrms.business.abstracts.ResumeService;
17 | import kodlama.io.hrms.core.utilities.results.DataResult;
18 | import kodlama.io.hrms.core.utilities.results.Result;
19 | import kodlama.io.hrms.entities.concretes.Resume;
20 |
21 | @RestController//Bu sınıfın Controller olduğunu söylüyoruz
22 | @RequestMapping("/api/resumes")//Route
23 | public class ResumesController {
24 |
25 | private ResumeService resumeService;
26 |
27 | @Autowired
28 | public ResumesController(ResumeService resumeService) {
29 | super();
30 | this.resumeService = resumeService;
31 | }
32 |
33 | @GetMapping("/getall")
34 | public DataResult> getAll() {
35 | return this.resumeService.getAll();
36 | }
37 |
38 | @PostMapping("/add")
39 | public Result add(@RequestBody Resume resume) {
40 |
41 | return this.resumeService.Add(resume);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/SalaryScalesController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.web.bind.annotation.CrossOrigin;
6 | import org.springframework.web.bind.annotation.GetMapping;
7 | import org.springframework.web.bind.annotation.RequestMapping;
8 | import org.springframework.web.bind.annotation.RestController;
9 |
10 | import kodlama.io.hrms.business.abstracts.SalaryScaleService;
11 | import kodlama.io.hrms.core.utilities.results.DataResult;
12 | import kodlama.io.hrms.entities.concretes.SalaryScale;
13 |
14 |
15 | @RestController//Bu sınıfın Controller olduğunu söylüyoruz
16 | @RequestMapping("/api/salaryscales")//Route
17 | @CrossOrigin
18 | public class SalaryScalesController {
19 |
20 | SalaryScaleService salaryScalesService;
21 |
22 | public SalaryScalesController(SalaryScaleService salaryScalesService) {
23 | super();
24 | this.salaryScalesService = salaryScalesService;
25 | }
26 |
27 | @GetMapping("/getAll")
28 | DataResult> getAll(){
29 | return this.salaryScalesService.GetAll();
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/UsersControllers.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.web.bind.annotation.CrossOrigin;
7 | import org.springframework.web.bind.annotation.GetMapping;
8 | import org.springframework.web.bind.annotation.PostMapping;
9 | import org.springframework.web.bind.annotation.RequestBody;
10 | import org.springframework.web.bind.annotation.RequestMapping;
11 | import org.springframework.web.bind.annotation.RestController;
12 |
13 | import kodlama.io.hrms.business.abstracts.UserService;
14 | import kodlama.io.hrms.core.utilities.results.DataResult;
15 | import kodlama.io.hrms.core.utilities.results.Result;
16 | import kodlama.io.hrms.entities.concretes.User;
17 |
18 | @RestController
19 | @RequestMapping("api/users")
20 | @CrossOrigin
21 | public class UsersControllers {
22 |
23 | @Autowired
24 | private UserService userService;
25 |
26 | public UsersControllers(UserService userService) {
27 | super();
28 | this.userService = userService;
29 | }
30 |
31 | @GetMapping("/getall")
32 | public DataResult> getAll(){
33 | return this.userService.getAll();
34 | }
35 |
36 | @PostMapping("/add")
37 | public Result add(@RequestBody User user) {
38 | return this.userService.Add(user);
39 |
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/api/controllers/WorkExperiencesController.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.api.controllers;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.web.bind.annotation.PostMapping;
5 | import org.springframework.web.bind.annotation.RequestBody;
6 | import org.springframework.web.bind.annotation.RequestMapping;
7 | import org.springframework.web.bind.annotation.RestController;
8 |
9 | import kodlama.io.hrms.business.abstracts.WorkExperienceService;
10 | import kodlama.io.hrms.core.utilities.results.Result;
11 | import kodlama.io.hrms.entities.concretes.WorkExperience;
12 |
13 | @RestController
14 | @RequestMapping("/api/workexperiences")//Route
15 | public class WorkExperiencesController {
16 |
17 | private WorkExperienceService workExperienceService;
18 |
19 | @Autowired
20 | public WorkExperiencesController(WorkExperienceService workExperienceService) {
21 | super();
22 | this.workExperienceService = workExperienceService;
23 | }
24 |
25 | @PostMapping("/add")
26 | private Result Add(@RequestBody WorkExperience workExperience) {
27 | return this.workExperienceService.Add(workExperience);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/AdvertisementService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 |
4 | import java.util.List;
5 |
6 | import kodlama.io.hrms.core.utilities.results.DataResult;
7 | import kodlama.io.hrms.core.utilities.results.Result;
8 | import kodlama.io.hrms.entities.concretes.Advertisement;
9 |
10 | public interface AdvertisementService {
11 | DataResult> getByTitle_TitleId(int titleId);
12 |
13 | Result Add(Advertisement advertisement);
14 |
15 | DataResult> getByStatusTrue(boolean status);//Req 8 : Sistemdeki tüm aktif iş ilanları listelenebilmelidir.
16 |
17 | DataResult> findAllByOrderByDateAscAndStatusTrue();//Req 9 : Sistemdeki tüm aktif iş ilanları tarihe göre listelenebilmelidir.
18 |
19 | DataResult> getByStatusAndEmployer_EmployerId(boolean status,int employerId);//Req 10 : Sistemde bir firmaya ait tüm aktif iş ilanları listelenebilmelidir.
20 |
21 | DataResult getByStatusTrueAndAdvertisement_AdvertisementId(boolean status,int advertisementId);//Req 11 : Sistemde bir firmaya ait tüm aktif iş ilanları listelenebilmelidir.
22 |
23 | Result ChangeStatus(Advertisement advertisement,boolean status);
24 |
25 | DataResult> getAll();
26 |
27 | DataResult> findByIsVerifiedTrueAndStatusTrue();
28 |
29 | DataResult getById(int id);
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/CityService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import kodlama.io.hrms.core.utilities.results.DataResult;
6 | import kodlama.io.hrms.entities.concretes.City;
7 |
8 | public interface CityService {
9 | DataResult> getAll();
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/EducationInformationService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import kodlama.io.hrms.core.utilities.results.DataResult;
6 | import kodlama.io.hrms.core.utilities.results.Result;
7 | import kodlama.io.hrms.entities.concretes.EducationInformation;
8 |
9 | public interface EducationInformationService {
10 |
11 | Result Add(EducationInformation educationInformation);
12 | DataResult> GetAll();
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/EmployerService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import kodlama.io.hrms.core.utilities.results.DataResult;
6 | import kodlama.io.hrms.core.utilities.results.Result;
7 | import kodlama.io.hrms.entities.concretes.Employer;
8 |
9 |
10 | public interface EmployerService {
11 | DataResult> getAll();
12 | Result Add(Employer employer);
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/JobSeekerService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.stereotype.Service;
6 |
7 | import kodlama.io.hrms.core.utilities.results.DataResult;
8 | import kodlama.io.hrms.core.utilities.results.Result;
9 | import kodlama.io.hrms.entities.concretes.JobSeeker;
10 |
11 |
12 | public interface JobSeekerService {
13 | DataResult> getAll();
14 | DataResult getBySeekerId(int seekerId);
15 | Result Add(JobSeeker jobSeeker);
16 | }
17 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/JobTitleService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import kodlama.io.hrms.core.utilities.results.DataResult;
6 | import kodlama.io.hrms.core.utilities.results.Result;
7 | import kodlama.io.hrms.entities.concretes.JobTitle;
8 |
9 |
10 | public interface JobTitleService {
11 | DataResult> getAll();
12 | Result Delete(JobTitle jobTitle);
13 | Result Add(JobTitle jobTitle);
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/ResumePhotoService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.io.IOException;
4 |
5 | import org.springframework.web.multipart.MultipartFile;
6 |
7 | import kodlama.io.hrms.core.utilities.results.Result;
8 |
9 |
10 |
11 | public interface ResumePhotoService {
12 |
13 | Result Add(MultipartFile multipartFile)throws IOException;
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/ResumeService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import kodlama.io.hrms.core.utilities.results.DataResult;
6 | import kodlama.io.hrms.core.utilities.results.Result;
7 | import kodlama.io.hrms.entities.concretes.Resume;
8 |
9 |
10 | public interface ResumeService {
11 |
12 | DataResult> getAll();
13 | Result Add(Resume resume);
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/SalaryScaleService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import kodlama.io.hrms.core.utilities.results.DataResult;
6 | import kodlama.io.hrms.entities.concretes.SalaryScale;
7 |
8 | public interface SalaryScaleService {
9 | DataResult> GetAll();
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/UserService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import kodlama.io.hrms.core.utilities.results.DataResult;
6 | import kodlama.io.hrms.core.utilities.results.Result;
7 | import kodlama.io.hrms.entities.concretes.User;
8 |
9 |
10 |
11 | public interface UserService {
12 | DataResult> getAll();
13 | Result Delete(User user);
14 | Result Add(User user);
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/abstracts/WorkExperienceService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.abstracts;
2 |
3 | import kodlama.io.hrms.core.utilities.results.Result;
4 | import kodlama.io.hrms.entities.concretes.WorkExperience;
5 |
6 | public interface WorkExperienceService {
7 | Result Add(WorkExperience workExperience);
8 | }
9 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/AdvertisementManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.sql.Date;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import kodlama.io.hrms.business.abstracts.AdvertisementService;
10 | import kodlama.io.hrms.core.utilities.results.DataResult;
11 | import kodlama.io.hrms.core.utilities.results.Result;
12 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
13 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
14 | import kodlama.io.hrms.dataAccess.abstracts.AdvertisementDao;
15 | import kodlama.io.hrms.entities.concretes.Advertisement;
16 |
17 | @Service
18 | public class AdvertisementManager implements AdvertisementService{
19 |
20 | private AdvertisementDao advertisementDao;
21 |
22 | @Autowired
23 | public AdvertisementManager(AdvertisementDao advertisementDao) {
24 | super();
25 | this.advertisementDao = advertisementDao;
26 | }
27 |
28 | @Override
29 | public DataResult> getByTitle_TitleId(int titleId) {
30 | return new SuccessDataResult>(this.advertisementDao.getByJobTitle_TitleId(titleId));
31 | }
32 |
33 | @Override
34 | public Result Add(Advertisement advertisement) {
35 | this.advertisementDao.save(advertisement);
36 | return new SuccessResult("İş ilanı eklendi");
37 | }
38 |
39 | @Override
40 | public DataResult> getByStatusTrue(boolean status) {
41 | return new SuccessDataResult>(this.advertisementDao.getByStatus(status));
42 | }
43 |
44 | @Override
45 | public DataResult> findAllByOrderByDateAscAndStatusTrue() {
46 | return new SuccessDataResult>(this.advertisementDao.findByStatusTrueOrderByApplicationDeadlineDesc());
47 | }
48 |
49 | @Override
50 | public DataResult> getByStatusAndEmployer_EmployerId(boolean status, int employerId) {
51 | return new SuccessDataResult>(this.advertisementDao.getByStatusAndEmployer_EmployerId(status,employerId));
52 | }
53 | @Override
54 | public Result ChangeStatus(Advertisement advertisement,boolean status) {
55 | Advertisement result = this.advertisementDao.getByid(advertisement.getId());
56 |
57 | result.setStatus(status);
58 | this.advertisementDao.save(result);
59 | return new SuccessResult("İş durumu değiştirildi.");
60 | }
61 | @Override
62 | public DataResult getByStatusTrueAndAdvertisement_AdvertisementId(boolean status, int advertisementId) {
63 |
64 | return new SuccessDataResult(this.advertisementDao.getByid(advertisementId));
65 | }
66 |
67 | @Override
68 | public DataResult> getAll() {
69 |
70 | return new SuccessDataResult>(this.advertisementDao.findAll());
71 | }
72 |
73 | @Override
74 | public DataResult> findByIsVerifiedTrueAndStatusTrue() {
75 |
76 | return new SuccessDataResult>(this.advertisementDao.findByIsVerifiedTrueAndStatusTrue());
77 | }
78 |
79 | @Override
80 | public DataResult getById(int id) {
81 |
82 | return new SuccessDataResult(this.advertisementDao.getByid(id));
83 | }
84 |
85 | }
86 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/CityManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import kodlama.io.hrms.business.abstracts.CityService;
9 | import kodlama.io.hrms.core.utilities.results.DataResult;
10 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
11 | import kodlama.io.hrms.dataAccess.abstracts.CityDao;
12 | import kodlama.io.hrms.entities.concretes.City;
13 |
14 | @Service
15 | public class CityManager implements CityService{
16 |
17 | private CityDao cityDao;
18 |
19 | @Autowired
20 | public CityManager(CityDao cityDao) {
21 | super();
22 | this.cityDao = cityDao;
23 | }
24 | @Override
25 | public DataResult> getAll() {
26 | return new SuccessDataResult>("Şehirler listelendi.",this.cityDao.findAll());
27 | }
28 |
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/EducationInformationManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import kodlama.io.hrms.business.abstracts.EducationInformationService;
9 | import kodlama.io.hrms.core.utilities.results.DataResult;
10 | import kodlama.io.hrms.core.utilities.results.Result;
11 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
12 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
13 | import kodlama.io.hrms.dataAccess.abstracts.EducationInformationDao;
14 | import kodlama.io.hrms.entities.concretes.EducationInformation;
15 |
16 | @Service
17 | public class EducationInformationManager implements EducationInformationService {
18 |
19 | private EducationInformationDao educationInformationDao;
20 |
21 | @Autowired
22 | public EducationInformationManager(EducationInformationDao educationInformationDao) {
23 | super();
24 | this.educationInformationDao = educationInformationDao;
25 | }
26 |
27 | @Override
28 | public Result Add(EducationInformation educationInformation) {
29 |
30 | if(educationInformation.getEndDate() == null)
31 | educationInformation.setStatus("devam ediyor");
32 |
33 | this.educationInformationDao.save(educationInformation);
34 |
35 | return new SuccessResult("Eğitim bilgisi eklendi.");
36 | }
37 |
38 | @Override
39 | public DataResult> GetAll() {
40 |
41 | return new SuccessDataResult>(this.educationInformationDao.findAll());
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/EmployerManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | import kodlama.io.hrms.business.abstracts.EmployerService;
10 | import kodlama.io.hrms.core.utilities.results.DataResult;
11 | import kodlama.io.hrms.core.utilities.results.ErrorResult;
12 | import kodlama.io.hrms.core.utilities.results.Result;
13 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
14 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
15 | import kodlama.io.hrms.core.utilities.validations.EmailVerificationService;
16 | import kodlama.io.hrms.core.utilities.validations.MernisVerificationService;
17 | import kodlama.io.hrms.dataAccess.abstracts.EmployerDao;
18 | import kodlama.io.hrms.dataAccess.abstracts.UserDao;
19 | import kodlama.io.hrms.entities.concretes.Employer;
20 |
21 | @Service
22 | public class EmployerManager implements EmployerService{
23 |
24 |
25 | public EmployerDao employerDao;
26 |
27 | public UserDao userDao;
28 | public EmailVerificationService emailVerificationService;
29 | public MernisVerificationService mernisVerificaionService;
30 |
31 | @Autowired
32 | public EmployerManager(EmployerDao employerDao,UserDao userDao,EmailVerificationService emailVerificationService,
33 | MernisVerificationService mernisVerificationService) {
34 | super();
35 | this.employerDao=employerDao;
36 | this.userDao = userDao;
37 | this.emailVerificationService=emailVerificationService;
38 | this.mernisVerificaionService=mernisVerificationService;
39 | }
40 | public EmployerManager() {}
41 |
42 | @Override
43 | public DataResult> getAll() {
44 | return new SuccessDataResult>(this.employerDao.findAll());
45 | }
46 |
47 | @Override
48 | public Result Add(Employer employer) {
49 |
50 | if(findAllByEmail(employer.getEmail())) {
51 | if(emailVerificationService.checkIfRealEmail(employer)) {
52 | if(checkIfEqualEmailAndDomain(employer.getEmail(),employer.getWebSite())) {
53 | this.employerDao.save(employer);
54 | }
55 | else
56 | return new ErrorResult("Böyle domaine ait mail yok.");
57 | }
58 | else
59 | return new ErrorResult("Böyle bir email yok.");
60 | }
61 | else
62 | return new ErrorResult("Bu email üzerine zaten kayıt var.");
63 |
64 | return new SuccessResult();
65 | }
66 |
67 | public boolean findAllByEmail(String email){
68 |
69 | for (var iterable_element : this.getAll().getData()) {
70 | if(iterable_element.getEmail()==email)
71 | return false;
72 | }
73 | return true;
74 | }
75 |
76 | private boolean checkIfEqualEmailAndDomain(String email, String website) {
77 |
78 | String[] webAdressKeywords = { "www", "http://www", "https://www" };
79 |
80 | String[] emailDomain = email.split("@",2);
81 | String domain = "";
82 | String[] websiteDomain = website.split("\\.",2);
83 |
84 | if (Arrays.asList(webAdressKeywords).contains(websiteDomain[0])) {
85 | domain = websiteDomain[1];
86 | } else {
87 | domain = website;
88 | }
89 |
90 | if (!emailDomain[1].equals(domain)) {
91 | return false;
92 | }
93 | return true;
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/JobSeekerManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import kodlama.io.hrms.business.abstracts.JobSeekerService;
9 | import kodlama.io.hrms.business.abstracts.UserService;
10 | import kodlama.io.hrms.core.utilities.results.DataResult;
11 | import kodlama.io.hrms.core.utilities.results.ErrorResult;
12 | import kodlama.io.hrms.core.utilities.results.Result;
13 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
14 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
15 | import kodlama.io.hrms.dataAccess.abstracts.JobSeekerDao;
16 | import kodlama.io.hrms.dataAccess.abstracts.UserDao;
17 | import kodlama.io.hrms.entities.concretes.JobSeeker;
18 |
19 | @Service
20 | public class JobSeekerManager implements JobSeekerService{
21 |
22 |
23 | JobSeekerDao jobSeekerDao;
24 | @Autowired
25 | public JobSeekerManager(JobSeekerDao jobSeekerDao) {
26 | super();
27 | this.jobSeekerDao=jobSeekerDao;
28 | }
29 | public JobSeekerManager() {}
30 | @Override
31 | public DataResult> getAll() {
32 |
33 | return new SuccessDataResult>("Listelendi",this.jobSeekerDao.findAll());
34 | }
35 |
36 | @Override
37 | public Result Add(JobSeeker jobSeeker) {
38 | this.jobSeekerDao.save(jobSeeker);
39 |
40 | return new SuccessResult();
41 | /*if(this.checkIfİsThereUser(jobSeeker.getUser().getUserId()))
42 | {
43 | if(!this.checkIfUserAlreadySeeker(jobSeeker.getUser().getUserId()))
44 | {
45 | this.jobSeekerDao.save(jobSeeker);
46 | return new SuccessResult("İş arayanlara eklendi");
47 | }
48 | return new SuccessResult("Zaten bu kullanıcı iş arayanlardan");
49 | }
50 | else
51 | return new SuccessResult("Böyle bir kullanıcı yok.");
52 | */
53 | }
54 |
55 | // private boolean checkIfİsThereUser(int userId)
56 | // {
57 | // return this.userService.getAll().getData().stream()
58 | // .filter(u -> u.getUserId() == userId)
59 | // .findFirst().isPresent();
60 | // }
61 |
62 | // private boolean checkIfUserAlreadySeeker(int userId){
63 | //
64 | // return this.getAll().getData().stream()
65 | // .filter(u -> u.getUser().getUserId() == userId)
66 | // .findFirst().isPresent();
67 | // }
68 |
69 | @Override
70 | public DataResult getBySeekerId(int seekerId) {
71 | return new SuccessDataResult("İş arayan listelendi.",this.jobSeekerDao.getBySeekerId(seekerId));
72 | }
73 |
74 | }
75 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/JobTitleManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 | import java.util.List;
3 |
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.stereotype.Service;
6 |
7 | import kodlama.io.hrms.business.abstracts.JobTitleService;
8 | import kodlama.io.hrms.core.utilities.results.DataResult;
9 | import kodlama.io.hrms.core.utilities.results.Result;
10 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
11 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
12 | import kodlama.io.hrms.dataAccess.abstracts.JobTitleDao;
13 | import kodlama.io.hrms.entities.concretes.JobTitle;
14 |
15 | @Service
16 | public class JobTitleManager implements JobTitleService {
17 |
18 | @Autowired//
19 | public JobTitleDao jobTitleDao;
20 |
21 |
22 | public JobTitleManager() {}
23 |
24 | public JobTitleManager(JobTitleDao jobTitleDao) {
25 | super();
26 | this.jobTitleDao = jobTitleDao;
27 | }
28 |
29 | @Override
30 | public DataResult> getAll() {
31 | return new SuccessDataResult>
32 | ("Data Listelendi",this.jobTitleDao.findAll());
33 | }
34 |
35 | @Override
36 | public Result Delete(JobTitle jobTitle) {
37 | this.jobTitleDao.delete(jobTitle);
38 | return new SuccessResult();
39 | }
40 |
41 | @Override
42 | public Result Add(JobTitle jobTitle) {
43 | this.jobTitleDao.save(jobTitle);
44 | return new SuccessResult("Yeni iş posizyonu eklendi");
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/ResumeManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 | import org.springframework.web.bind.annotation.RequestBody;
8 |
9 | import kodlama.io.hrms.business.abstracts.ResumeService;
10 | import kodlama.io.hrms.core.utilities.results.DataResult;
11 | import kodlama.io.hrms.core.utilities.results.Result;
12 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
13 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
14 | import kodlama.io.hrms.dataAccess.abstracts.ResumeDao;
15 | import kodlama.io.hrms.entities.concretes.Resume;
16 |
17 | @Service
18 | public class ResumeManager implements ResumeService {
19 |
20 | private ResumeDao resumeDao;
21 |
22 | @Autowired
23 | public ResumeManager(ResumeDao resumeDao) {
24 | super();
25 | this.resumeDao = resumeDao;
26 | }
27 | @Override
28 | public DataResult> getAll() {
29 | return new SuccessDataResult>(this.resumeDao.findAll());
30 | }
31 |
32 | @Override
33 | public Result Add(Resume resume) {
34 |
35 | this.resumeDao.save(resume);
36 |
37 | return new SuccessResult("Özgeçmiş eklendi");
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/ResumePhotoManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.io.File;
4 | import java.io.IOException;
5 | import java.util.Map;
6 |
7 | import org.springframework.beans.factory.annotation.Autowired;
8 | import org.springframework.stereotype.Service;
9 | import org.springframework.web.multipart.MultipartFile;
10 |
11 | import com.cloudinary.Cloudinary;
12 | import com.cloudinary.utils.ObjectUtils;
13 |
14 | import kodlama.io.hrms.business.abstracts.ResumePhotoService;
15 | import kodlama.io.hrms.core.utilities.results.Result;
16 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
17 | import kodlama.io.hrms.dataAccess.abstracts.ResumePhotoDao;
18 | import kodlama.io.hrms.entities.concretes.ResumePhoto;
19 |
20 | @Service
21 | public class ResumePhotoManager implements ResumePhotoService {
22 |
23 | private ResumePhotoDao resumePhotoDao;
24 |
25 | @Autowired
26 | public ResumePhotoManager(ResumePhotoDao resumePhotoDao) {
27 | super();
28 | this.resumePhotoDao = resumePhotoDao;
29 | }
30 |
31 | @Override
32 | public Result Add(MultipartFile multipartFile) throws IOException {
33 |
34 | Cloudinary cloudinary = new Cloudinary(ObjectUtils.asMap(
35 | "cloud_name", "uur**",
36 | "api_key", "****************",
37 | "api_secret", "***********************"));
38 |
39 | String fileName = multipartFile.getOriginalFilename();
40 | String prefix = fileName.substring(fileName.lastIndexOf("."));
41 |
42 | File file = null;
43 |
44 | file = File.createTempFile(fileName, prefix);
45 | multipartFile.transferTo(file);
46 |
47 | File myFile = new File(file.toURI());
48 | Map uploadResult = cloudinary.uploader().upload(myFile, ObjectUtils.emptyMap());
49 |
50 | ResumePhoto resumePhoto =new ResumePhoto();
51 | resumePhoto.setPhotoUrl(uploadResult.get("url").toString());
52 |
53 | this.resumePhotoDao.save(resumePhoto);
54 |
55 | return new SuccessResult("Resim Eklendi");
56 | }
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/SalaryScaleManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.stereotype.Service;
6 |
7 | import kodlama.io.hrms.business.abstracts.SalaryScaleService;
8 | import kodlama.io.hrms.core.utilities.results.DataResult;
9 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
10 | import kodlama.io.hrms.dataAccess.abstracts.SalaryScaleDao;
11 | import kodlama.io.hrms.entities.concretes.SalaryScale;
12 |
13 | @Service
14 | public class SalaryScaleManager implements SalaryScaleService {
15 |
16 | SalaryScaleDao salaryScaleDao;
17 |
18 | public SalaryScaleManager(SalaryScaleDao salaryScaleDao) {
19 | super();
20 | this.salaryScaleDao = salaryScaleDao;
21 | }
22 |
23 | @Override
24 | public DataResult> GetAll() {
25 | return new SuccessDataResult>(this.salaryScaleDao.findAll());
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/UserManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.beans.factory.annotation.Autowired;
6 | import org.springframework.stereotype.Service;
7 |
8 | import kodlama.io.hrms.business.abstracts.UserService;
9 | import kodlama.io.hrms.core.utilities.results.DataResult;
10 | import kodlama.io.hrms.core.utilities.results.ErrorResult;
11 | import kodlama.io.hrms.core.utilities.results.Result;
12 | import kodlama.io.hrms.core.utilities.results.SuccessDataResult;
13 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
14 | import kodlama.io.hrms.core.utilities.validations.EmailVerificationService;
15 | import kodlama.io.hrms.core.utilities.validations.MernisVerificationService;
16 | import kodlama.io.hrms.dataAccess.abstracts.UserDao;
17 | import kodlama.io.hrms.entities.concretes.JobTitle;
18 | import kodlama.io.hrms.entities.concretes.User;
19 |
20 | @Service
21 | public class UserManager implements UserService{
22 |
23 | @Autowired
24 | public UserDao userDao;
25 | public EmailVerificationService emailVerificationService;
26 | public MernisVerificationService mernisVerificaionService;
27 |
28 | public UserManager(UserDao userDao,EmailVerificationService emailVerificationService,
29 | MernisVerificationService mernisVerificaionService ) {
30 | super();
31 | this.userDao = userDao;
32 | this.emailVerificationService= emailVerificationService;
33 | this.mernisVerificaionService=mernisVerificaionService;
34 | }
35 |
36 | @Override
37 | public DataResult> getAll() {
38 |
39 | return new SuccessDataResult>
40 | ("Data Listelendi",this.userDao.findAll());
41 | }
42 |
43 | @Override
44 | public Result Delete(User user) {
45 | this.userDao.delete(user);
46 | return new SuccessResult();
47 | }
48 |
49 | @Override
50 | public Result Add(User user) {
51 | if(findAllByEmail(user.getEmail())) {
52 | if(emailVerificationService.checkIfRealEmail(user)) {
53 | if(mernisVerificaionService.checkIfRealPerson(user)) {
54 | this.userDao.save(user);
55 | }
56 | else
57 | return new ErrorResult("Böyle Tc'ye ait kişi yok.");
58 | }
59 | else
60 | return new ErrorResult("Böyle bir email yok.");
61 | }
62 | else
63 | return new ErrorResult("Bu email üzerine zaten kayıt var.");
64 |
65 | return new SuccessResult();
66 | }
67 |
68 | public boolean findAllByEmail(String email){
69 |
70 | for (var iterable_element : this.getAll().getData()) {
71 | if(iterable_element.getEmail()==email)
72 | return false;
73 | }
74 | return true;
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/business/concretes/WorkExperienceManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.business.concretes;
2 |
3 | import org.springframework.beans.factory.annotation.Autowired;
4 | import org.springframework.stereotype.Service;
5 | import org.springframework.web.bind.annotation.RequestBody;
6 |
7 | import kodlama.io.hrms.business.abstracts.WorkExperienceService;
8 | import kodlama.io.hrms.core.utilities.results.Result;
9 | import kodlama.io.hrms.core.utilities.results.SuccessResult;
10 | import kodlama.io.hrms.dataAccess.abstracts.WorkExperienceDao;
11 | import kodlama.io.hrms.entities.concretes.WorkExperience;
12 |
13 | @Service
14 | public class WorkExperienceManager implements WorkExperienceService{
15 |
16 | private WorkExperienceDao workExperienceDao;
17 |
18 | @Autowired
19 | public WorkExperienceManager( WorkExperienceDao workExperienceDao) {
20 | super();
21 | this.workExperienceDao = workExperienceDao;
22 | }
23 |
24 |
25 | @Override
26 | public Result Add(WorkExperience workExperience) {
27 | if(workExperience.getEndDate() == null)
28 | workExperience.setStatus("devam ediyor");
29 | this.workExperienceDao.save(workExperience);
30 |
31 | return new SuccessResult("İş tecrübesi eklendi.");
32 | }
33 |
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/configurations/AppConfiguration.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.configurations;
2 |
3 | import org.springframework.context.annotation.Bean;
4 | import org.springframework.context.annotation.Configuration;
5 |
6 | import kodlama.io.hrms.business.abstracts.AdvertisementService;
7 | import kodlama.io.hrms.business.concretes.AdvertisementManager;
8 | import kodlama.io.hrms.core.utilities.validations.EmailVerificationManager;
9 | import kodlama.io.hrms.core.utilities.validations.EmailVerificationService;
10 | import kodlama.io.hrms.core.utilities.validations.MernisVerificationManager;
11 | import kodlama.io.hrms.core.utilities.validations.MernisVerificationService;
12 |
13 | @Configuration
14 | public class AppConfiguration {
15 | @Bean
16 | public EmailVerificationService mailVerificationService(){
17 | return new EmailVerificationManager();
18 | }
19 |
20 | @Bean
21 | public MernisVerificationService mernisVerificationService(){
22 | return new MernisVerificationManager();
23 | }
24 |
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/results/DataResult.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.results;
2 |
3 | public class DataResult extends Result{
4 |
5 | private T data;
6 | public DataResult(boolean success, String message,T data) {
7 | super(success, message);
8 | this.data=data;
9 | }
10 |
11 | public DataResult(boolean success,T data) {
12 | super(success);
13 | this.data=data;
14 | }
15 |
16 | public T getData() {
17 | return this.data;
18 | } {
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/results/ErrorDataResult.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.results;
2 |
3 |
4 |
5 | public class ErrorDataResult extends DataResult{
6 |
7 | public ErrorDataResult(String message, T data) {
8 | super(false, message, data);
9 | }
10 | public ErrorDataResult(T data) {
11 | super(false,data);
12 | }
13 | public ErrorDataResult(String message) {
14 | super(false,message,null);
15 | }
16 | public ErrorDataResult() {
17 | super(false,null);
18 | } {
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/results/ErrorResult.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.results;
2 |
3 |
4 | public class ErrorResult extends Result{
5 |
6 | public ErrorResult() {
7 | super(false);
8 | }
9 | public ErrorResult(String message) {
10 | super(false,message);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/results/Result.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.results;
2 |
3 | public class Result {
4 |
5 | private boolean success;
6 | private String message;
7 |
8 | public Result(boolean success) {
9 | this.success=success;
10 | }
11 |
12 | public Result(boolean success,String message) {
13 | this(success);
14 | this.message=message;
15 | }
16 |
17 | public boolean isSuccess() {
18 | return this.success;
19 | }
20 | public String getMessage() {
21 | return this.message;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/results/SuccessDataResult.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.results;
2 |
3 |
4 | public class SuccessDataResult extends DataResult{
5 |
6 | public SuccessDataResult(String message, T data) {
7 | super(true, message, data);
8 | }
9 | public SuccessDataResult(T data) {
10 | super(true,data);
11 | }
12 | public SuccessDataResult(String message) {
13 | super(true,message,null);
14 | }
15 | public SuccessDataResult() {
16 | super(true,null);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/results/SuccessResult.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.results;
2 |
3 |
4 | public class SuccessResult extends Result {
5 |
6 | public SuccessResult() {
7 | super(true);
8 | }
9 | public SuccessResult(String message) {
10 | super(true,message);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/validations/EmailVerificationManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.validations;
2 |
3 | public class EmailVerificationManager implements EmailVerificationService {
4 |
5 | @Override
6 | public boolean checkIfRealEmail(T entity) {
7 | return true;
8 | }
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/validations/EmailVerificationService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.validations;
2 |
3 | public interface EmailVerificationService {
4 | public boolean checkIfRealEmail(T entity);
5 | }
6 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/validations/MernisVerificationManager.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.validations;
2 |
3 | public class MernisVerificationManager implements MernisVerificationService {
4 |
5 | @Override
6 | public boolean checkIfRealPerson(T entity) {
7 | return true;
8 | }
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/core/utilities/validations/MernisVerificationService.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.core.utilities.validations;
2 |
3 | public interface MernisVerificationService {
4 | public boolean checkIfRealPerson(T entity);
5 | }
6 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/AdvertisementDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import java.util.List;
4 |
5 | import org.springframework.data.jpa.repository.JpaRepository;
6 |
7 |
8 |
9 | import kodlama.io.hrms.entities.concretes.Advertisement;
10 |
11 |
12 |
13 | public interface AdvertisementDao extends JpaRepository{
14 |
15 | List getByJobTitle_TitleId(int titleId);
16 |
17 | List getByStatus(boolean status);//Req 8 : Sistemdeki tüm aktif iş ilanları listelenebilmelidir.
18 |
19 |
20 | List findByStatusTrueOrderByApplicationDeadlineDesc();//Req 9 : Sistemdeki tüm aktif iş ilanları tarihe göre listelenebilmelidir.
21 |
22 | List findByIsVerifiedTrueAndStatusTrue();
23 |
24 | List getByStatusAndEmployer_EmployerId(boolean status ,int employerId);//Req 10 : Sistemde bir firmaya ait tüm aktif iş ilanları listelenebilmelidir.
25 |
26 | Advertisement getByid(int advertisementId);//Req 11 : Sistemde bir firmaya ait tüm aktif iş ilanları listelenebilmelidir.
27 |
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/CityDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.City;
6 |
7 | public interface CityDao extends JpaRepository{
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/EducationInformationDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.EducationInformation;
6 |
7 |
8 |
9 | public interface EducationInformationDao extends JpaRepository{
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/EmployerDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.Employer;
6 |
7 |
8 |
9 | public interface EmployerDao extends JpaRepository{
10 |
11 | }
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/JobSeekerDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 | import org.springframework.data.jpa.repository.Query;
5 |
6 | import kodlama.io.hrms.core.utilities.results.DataResult;
7 | import kodlama.io.hrms.entities.concretes.JobSeeker;
8 |
9 |
10 | public interface JobSeekerDao extends JpaRepository{
11 |
12 | JobSeeker getBySeekerId(int seekerId);
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/JobTitleDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.JobTitle;
6 |
7 |
8 | public interface JobTitleDao extends JpaRepository{
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/ResumeDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.Resume;
6 |
7 |
8 |
9 | public interface ResumeDao extends JpaRepository{
10 |
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/ResumePhotoDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.ResumePhoto;
6 |
7 |
8 |
9 | public interface ResumePhotoDao extends JpaRepository{
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/SalaryScaleDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.SalaryScale;
6 |
7 | public interface SalaryScaleDao extends JpaRepository{
8 | }
9 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/UserDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.User;
6 |
7 | public interface UserDao extends JpaRepository{
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/dataAccess/abstracts/WorkExperienceDao.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.dataAccess.abstracts;
2 |
3 | import org.springframework.data.jpa.repository.JpaRepository;
4 |
5 | import kodlama.io.hrms.entities.concretes.WorkExperience;
6 |
7 | public interface WorkExperienceDao extends JpaRepository{
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/Advertisement.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.text.SimpleDateFormat;
4 | import java.time.LocalDate;
5 | import java.util.*;
6 |
7 | import javax.persistence.Column;
8 | import javax.persistence.Entity;
9 | import javax.persistence.GeneratedValue;
10 | import javax.persistence.GenerationType;
11 | import javax.persistence.Id;
12 | import javax.persistence.JoinColumn;
13 | import javax.persistence.ManyToOne;
14 | import javax.persistence.Table;
15 |
16 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
17 |
18 | import lombok.AllArgsConstructor;
19 | import lombok.Data;
20 | import lombok.EqualsAndHashCode;
21 | import lombok.NoArgsConstructor;
22 |
23 | @EqualsAndHashCode(callSuper = false)
24 | @Data
25 | @Entity
26 | @Table(name="advertisements")
27 | @AllArgsConstructor
28 | @NoArgsConstructor
29 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
30 | public class Advertisement {
31 |
32 |
33 |
34 | @Id
35 | @GeneratedValue(strategy=GenerationType.IDENTITY)
36 | @Column(name="advertisement_id",unique=true)
37 | private int id;
38 |
39 | @ManyToOne()
40 | @JoinColumn(name="title_id")
41 | private JobTitle jobTitle;
42 |
43 | @ManyToOne()
44 | @JoinColumn(name="employer_id")
45 | private Employer employer;
46 |
47 | @Column(name="job_description")
48 | private String jobDescription;
49 |
50 | @ManyToOne()
51 | @JoinColumn(name="city_id")
52 | private City city;
53 |
54 | @ManyToOne()
55 | @JoinColumn(name="scale_id")
56 | private SalaryScale salaryScale;
57 |
58 | @Column(name="number_of_open_positions")
59 | private int numberOfOpenPositions;
60 |
61 | @Column(name="application_deadline")
62 | private Date applicationDeadline;
63 |
64 | @Column(name="status")
65 | private boolean status;
66 |
67 | @Column(name="is_verified")
68 | private boolean isVerified;
69 |
70 | @Column(name="way_of_working")
71 | private String wayOfWorking;
72 |
73 | @Column(name="working_time")
74 | private String workingTime;
75 |
76 | @Column(name="created_date")
77 | private LocalDate createdDate;
78 |
79 |
80 | public String getWayOfWorking() {
81 | return wayOfWorking;
82 | }
83 |
84 | public void setWayOfWorking(String wayOfWorking) {
85 | this.wayOfWorking = wayOfWorking;
86 | }
87 |
88 | public String getWorkingTime() {
89 | return workingTime;
90 | }
91 |
92 | public void setWorkingTime(String workingTime) {
93 | this.workingTime = workingTime;
94 | }
95 |
96 | public boolean isVerified() {
97 | return isVerified;
98 | }
99 |
100 | public void setVerified(boolean isVerified) {
101 | this.isVerified = isVerified;
102 | }
103 |
104 | public int getId() {
105 | return id;
106 | }
107 |
108 | public void setId(int id) {
109 | this.id = id;
110 | }
111 |
112 | public JobTitle getJobTitle() {
113 | return jobTitle;
114 | }
115 |
116 | public void setJobTitle(JobTitle jobTitle) {
117 | this.jobTitle = jobTitle;
118 | }
119 |
120 | public Employer getEmployer() {
121 | return employer;
122 | }
123 |
124 | public void setEmployer(Employer employer) {
125 | this.employer = employer;
126 | }
127 |
128 | public String getJobDescription() {
129 | return jobDescription;
130 | }
131 |
132 | public void setJobDescription(String jobDescription) {
133 | this.jobDescription = jobDescription;
134 | }
135 |
136 | public City getCity() {
137 | return city;
138 | }
139 |
140 | public void setCity(City city) {
141 | this.city = city;
142 | }
143 |
144 | public SalaryScale getSalaryScale() {
145 | return salaryScale;
146 | }
147 |
148 | public void setSalaryScale(SalaryScale salaryScale) {
149 | this.salaryScale = salaryScale;
150 | }
151 |
152 | public int getNumberOfOpenPositions() {
153 | return numberOfOpenPositions;
154 | }
155 |
156 | public void setNumberOfOpenPositions(int numberOfOpenPositions) {
157 | this.numberOfOpenPositions = numberOfOpenPositions;
158 | }
159 |
160 | public Date getApplicationDeadline() {
161 | return applicationDeadline;
162 | }
163 |
164 | public void setApplicationDeadline(Date applicationDeadline) {
165 | this.applicationDeadline = applicationDeadline;
166 | }
167 |
168 | public boolean isStatus() {
169 | return status;
170 | }
171 |
172 | public void setStatus(boolean status) {
173 | this.status = status;
174 | }
175 |
176 |
177 | }
178 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/City.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.OneToMany;
11 | import javax.persistence.Table;
12 |
13 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
14 |
15 |
16 | import lombok.AllArgsConstructor;
17 | import lombok.Data;
18 | import lombok.NoArgsConstructor;
19 |
20 | @Data
21 | @Entity
22 | @Table(name="cities")
23 | @AllArgsConstructor
24 | @NoArgsConstructor
25 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","advertisements","universities"})
26 | public class City {
27 | @Id
28 | @GeneratedValue(strategy=GenerationType.IDENTITY)
29 | @Column(name="city_id",unique = true)
30 | private int id;
31 |
32 | @Column(name="code",unique = false)
33 | private String code;
34 |
35 | @Column(name="name",unique = false)
36 | private String name;
37 |
38 | @OneToMany(mappedBy = "city")
39 | private List Advertisements;
40 |
41 | @OneToMany(mappedBy = "city")
42 | private List universities;
43 |
44 | public List getUniversities() {
45 | return universities;
46 | }
47 |
48 | public void setUniversities(List universities) {
49 | this.universities = universities;
50 | }
51 |
52 | public int getId() {
53 | return id;
54 | }
55 |
56 | public void setId(int id) {
57 | this.id = id;
58 | }
59 |
60 | public String getCode() {
61 | return code;
62 | }
63 |
64 | public void setCode(String code) {
65 | this.code = code;
66 | }
67 |
68 | public String getName() {
69 | return name;
70 | }
71 |
72 | public void setName(String name) {
73 | this.name = name;
74 | }
75 |
76 | public List getAdvertisements() {
77 | return Advertisements;
78 | }
79 |
80 | public void setAdvertisements(List advertisements) {
81 | Advertisements = advertisements;
82 | }
83 |
84 |
85 |
86 |
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/CoverLetter.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.OneToMany;
11 | import javax.persistence.Table;
12 |
13 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
14 |
15 | import lombok.AllArgsConstructor;
16 | import lombok.Data;
17 | import lombok.EqualsAndHashCode;
18 | import lombok.NoArgsConstructor;
19 |
20 | @EqualsAndHashCode(callSuper = false)
21 | @Data
22 | @Entity
23 | @Table(name="cover_letters")
24 | @AllArgsConstructor
25 | @NoArgsConstructor
26 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","resumes"})
27 | public class CoverLetter {
28 |
29 | @Id
30 | @GeneratedValue(strategy=GenerationType.IDENTITY)
31 | @Column(name="letter_id",unique=true)
32 | private int letterId;
33 |
34 | @Column(name="letter_name",nullable=false)
35 | private String letterName;
36 |
37 | @Column(name="letter_content",nullable=false)
38 | private String letterContent;
39 |
40 | @OneToMany(mappedBy="coverLetter")
41 | private List resumes;
42 |
43 | public int getLetterId() {
44 | return letterId;
45 | }
46 |
47 | public void setLetterId(int letterId) {
48 | this.letterId = letterId;
49 | }
50 |
51 | public String getLetterName() {
52 | return letterName;
53 | }
54 |
55 | public void setLetterName(String letterName) {
56 | this.letterName = letterName;
57 | }
58 |
59 | public String getLetterContent() {
60 | return letterContent;
61 | }
62 |
63 | public void setLetterContent(String letterContent) {
64 | this.letterContent = letterContent;
65 | }
66 |
67 | public List getResumes() {
68 | return resumes;
69 | }
70 |
71 | public void setResumes(List resume) {
72 | this.resumes = resume;
73 | }
74 |
75 |
76 | }
77 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/EducationInformation.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.sql.Date;
4 | import java.util.List;
5 |
6 | import javax.persistence.Column;
7 | import javax.persistence.Entity;
8 | import javax.persistence.GeneratedValue;
9 | import javax.persistence.GenerationType;
10 | import javax.persistence.Id;
11 | import javax.persistence.JoinColumn;
12 | import javax.persistence.JoinTable;
13 | import javax.persistence.ManyToOne;
14 | import javax.persistence.Table;
15 |
16 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
17 | import com.fasterxml.jackson.annotation.JsonProperty;
18 | import com.fasterxml.jackson.annotation.JsonProperty.Access;
19 |
20 | import lombok.AllArgsConstructor;
21 | import lombok.Data;
22 | //import lombok.EqualsAndHashCode;
23 | import lombok.NoArgsConstructor;
24 |
25 | //@EqualsAndHashCode(callSuper = false)
26 | @Data
27 | @Entity
28 | @Table(name="education_informations")
29 | @AllArgsConstructor
30 | @NoArgsConstructor
31 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","resume"})
32 | public class EducationInformation {
33 |
34 | @Id
35 | @GeneratedValue(strategy=GenerationType.IDENTITY)
36 | @Column(name="education_information_id",unique=true)
37 | private int educationInformationId;
38 |
39 | @Column(name="status",nullable = true)
40 | public String status;
41 |
42 | @ManyToOne()
43 | @JoinColumn(name="university_id",nullable = false)
44 | private University university;
45 |
46 | @ManyToOne()
47 | @JoinColumn(name="department_id",nullable = false)
48 | private UniversityDepartment universityDepartment;
49 |
50 | @Column(name="starting_date",nullable = false)
51 | private Date startingDate;
52 |
53 |
54 | @Column(name="end_date",nullable = true)
55 | private Date endDate;
56 |
57 | @ManyToOne()
58 | @JoinColumn(name="resume_id")
59 | private Resume resume;
60 |
61 | public int getEducationInformationId() {
62 | return educationInformationId;
63 | }
64 |
65 | public void setEducationInformationId(int educationInformationId) {
66 | this.educationInformationId = educationInformationId;
67 | }
68 |
69 | public University getUniversity() {
70 | return university;
71 | }
72 |
73 | public void setUniversity(University university) {
74 | this.university = university;
75 | }
76 |
77 | public String getStatus() {
78 | return status;
79 | }
80 |
81 | public void setStatus(String status) {
82 | this.status = status;
83 | }
84 |
85 | public UniversityDepartment getUniversityDepartment() {
86 | return universityDepartment;
87 | }
88 |
89 | public void setUniversityDepartment(UniversityDepartment universityDepartment) {
90 | this.universityDepartment = universityDepartment;
91 | }
92 |
93 | public Date getStartingDate() {
94 | return startingDate;
95 | }
96 |
97 | public void setStartingDate(Date startingDate) {
98 | this.startingDate = startingDate;
99 | }
100 |
101 | public Date getEndDate() {
102 | return endDate;
103 | }
104 |
105 | public void setEndDate(Date endDate) {
106 | this.endDate = endDate;
107 | }
108 |
109 | public Resume getResume() {
110 | return resume;
111 | }
112 |
113 | public void setResume(Resume resume) {
114 | this.resume = resume;
115 | }
116 |
117 |
118 |
119 | }
120 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/Employer.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.OneToMany;
11 | import javax.persistence.Table;
12 |
13 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
14 |
15 | import lombok.AllArgsConstructor;
16 | import lombok.Data;
17 | import lombok.EqualsAndHashCode;
18 | import lombok.NoArgsConstructor;
19 |
20 | @EqualsAndHashCode(callSuper = false)
21 | @Data
22 | @Entity
23 | @Table(name="employers")
24 | @AllArgsConstructor
25 | @NoArgsConstructor
26 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","advertisements"})
27 | public class Employer {
28 |
29 | @Id
30 | @GeneratedValue(strategy=GenerationType.IDENTITY)
31 | @Column(name="employer_id",unique = true)
32 | private int employerId;
33 |
34 | @Column(name="company_name",unique = false)
35 | private String companyName;
36 |
37 | @Column(name="web_addres",unique = false)
38 | private String webSite;
39 |
40 | @Column(name="email",unique = false)
41 | private String email;
42 |
43 | @Column(name="phone_number",unique = false)
44 | private String phoneNumber;
45 |
46 | @Column(name="password",unique = false)
47 | private String password;
48 |
49 | @OneToMany(mappedBy = "employer")
50 | private List Advertisements;
51 |
52 | public int getEmployerId() {
53 | return employerId;
54 | }
55 |
56 | public void setEmployerId(int employerId) {
57 | this.employerId = employerId;
58 | }
59 |
60 | public String getCompanyName() {
61 | return companyName;
62 | }
63 |
64 | public void setCompanyName(String companyName) {
65 | this.companyName = companyName;
66 | }
67 |
68 | public String getWebSite() {
69 | return webSite;
70 | }
71 |
72 | public void setWebSite(String webSite) {
73 | this.webSite = webSite;
74 | }
75 |
76 | public String getEmail() {
77 | return email;
78 | }
79 |
80 | public void setEmail(String email) {
81 | this.email = email;
82 | }
83 |
84 | public String getPhoneNumber() {
85 | return phoneNumber;
86 | }
87 |
88 | public void setPhoneNumber(String phoneNumber) {
89 | this.phoneNumber = phoneNumber;
90 | }
91 |
92 | public String getPassword() {
93 | return password;
94 | }
95 |
96 | public void setPassword(String password) {
97 | this.password = password;
98 | }
99 |
100 | public List getAdvertisements() {
101 | return Advertisements;
102 | }
103 |
104 | public void setAdvertisements(List advertisements) {
105 | Advertisements = advertisements;
106 | }
107 |
108 |
109 | }
110 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/Faculty.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.JoinColumn;
11 | import javax.persistence.ManyToOne;
12 | import javax.persistence.OneToMany;
13 | import javax.persistence.Table;
14 |
15 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
16 |
17 | import lombok.AllArgsConstructor;
18 | import lombok.Data;
19 | import lombok.NoArgsConstructor;
20 |
21 | @Data
22 | @Entity
23 | @Table(name="faculties")
24 | @AllArgsConstructor
25 | @NoArgsConstructor
26 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","universityDepartment"})
27 | public class Faculty {
28 | @Id
29 | @GeneratedValue(strategy=GenerationType.IDENTITY)
30 | @Column(name="faculty_id",unique=true)
31 | private int facultyId;
32 |
33 | @Column(name="faculty_name")
34 | private String facultyName;
35 |
36 | @Column(name="status")
37 | private int status;
38 |
39 | @OneToMany(mappedBy="faculty")
40 | private List universityDepartment;
41 |
42 | public int getFacultyId() {
43 | return facultyId;
44 | }
45 |
46 | public void setFacultyId(int facultyId) {
47 | this.facultyId = facultyId;
48 | }
49 |
50 | public String getFacultyName() {
51 | return facultyName;
52 | }
53 |
54 | public void setFacultyName(String facultyName) {
55 | this.facultyName = facultyName;
56 | }
57 |
58 | public int getStatus() {
59 | return status;
60 | }
61 |
62 | public void setStatus(int status) {
63 | this.status = status;
64 | }
65 |
66 | public List getUniversityDepartment() {
67 | return universityDepartment;
68 | }
69 |
70 | public void setUniversityDepartment(List universityDepartment) {
71 | this.universityDepartment = universityDepartment;
72 | }
73 |
74 |
75 |
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/ForeignLanguage.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import javax.persistence.Column;
4 | import javax.persistence.Entity;
5 | import javax.persistence.GeneratedValue;
6 | import javax.persistence.GenerationType;
7 | import javax.persistence.Id;
8 | import javax.persistence.JoinColumn;
9 | import javax.persistence.ManyToOne;
10 | import javax.persistence.Table;
11 | import javax.validation.constraints.Max;
12 | import javax.validation.constraints.Min;
13 |
14 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
15 |
16 | import lombok.AllArgsConstructor;
17 | import lombok.Data;
18 | import lombok.NoArgsConstructor;
19 |
20 | @Data
21 | @Entity
22 | @Table(name="foreign_languages")
23 | @AllArgsConstructor
24 | @NoArgsConstructor
25 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","resume"})
26 |
27 | public class ForeignLanguage {
28 |
29 | @Id
30 | @GeneratedValue(strategy=GenerationType.IDENTITY)
31 | @Column(name="language_id",unique=true)
32 | private int languageId;
33 |
34 | @Column(name="language_name",nullable=false)
35 | private String languageName;
36 |
37 | @Min(0)
38 | @Max(5)
39 | @Column(name="language_level",nullable=false)
40 | private int languageLevel;
41 |
42 | @ManyToOne()
43 | @JoinColumn(name="resume_id")
44 | private Resume resume;
45 |
46 | public int getLanguageId() {
47 | return languageId;
48 | }
49 |
50 | public void setLanguageId(int languageId) {
51 | this.languageId = languageId;
52 | }
53 |
54 | public String getLanguageName() {
55 | return languageName;
56 | }
57 |
58 | public void setLanguageName(String languageName) {
59 | this.languageName = languageName;
60 | }
61 |
62 | public int getLanguageLevel() {
63 | return languageLevel;
64 | }
65 |
66 | public void setLanguageLevel(int languageLevel) {
67 | this.languageLevel = languageLevel;
68 | }
69 |
70 | public Resume getResume() {
71 | return resume;
72 | }
73 |
74 | public void setResume(Resume resume) {
75 | this.resume = resume;
76 | }
77 |
78 |
79 |
80 |
81 |
82 |
83 | }
84 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/JobSeeker.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.sql.Date;
4 | import java.util.List;
5 |
6 | import javax.persistence.Column;
7 | import javax.persistence.Entity;
8 | import javax.persistence.GeneratedValue;
9 | import javax.persistence.GenerationType;
10 | import javax.persistence.Id;
11 | import javax.persistence.JoinColumn;
12 | import javax.persistence.ManyToOne;
13 | import javax.persistence.OneToMany;
14 | import javax.persistence.OneToOne;
15 | import javax.persistence.Table;
16 |
17 | import lombok.AllArgsConstructor;
18 | import lombok.Data;
19 | import lombok.NoArgsConstructor;
20 |
21 | @Data
22 | @Entity
23 | @Table(name="job_seekers")
24 | @AllArgsConstructor
25 | @NoArgsConstructor
26 | public class JobSeeker {
27 |
28 | @Id
29 | @GeneratedValue(strategy=GenerationType.IDENTITY)
30 | @Column(name="seeker_id")
31 | private int seekerId;
32 |
33 | @Column(name="first_name")
34 | private String firstName;
35 |
36 | @Column(name="last_name")
37 | private String lastName;
38 |
39 | @Column(name="tr_identity_number")
40 | private String identityNumber;
41 |
42 | @Column(name="email")
43 | private String email;
44 |
45 | @Column(name="date_of_birth")
46 | private Date dateOfBirth;
47 |
48 | @Column(name="password")
49 | private String password;
50 |
51 |
52 |
53 | @Column(name="status")
54 | private boolean status;
55 |
56 | @OneToMany(mappedBy="jobSeeker")
57 | private List resumes;
58 |
59 | public List getResumes() {
60 | return resumes;
61 | }
62 |
63 | public void setResumes(List resumes) {
64 | this.resumes = resumes;
65 | }
66 |
67 | public int getSeekerId() {
68 | return seekerId;
69 | }
70 |
71 | public void setSeekerId(int seekerId) {
72 | this.seekerId = seekerId;
73 | }
74 |
75 |
76 | public boolean isStatus() {
77 | return status;
78 | }
79 |
80 | public void setStatus(boolean status) {
81 | this.status = status;
82 | }
83 | public String getFirstName() {
84 | return firstName;
85 | }
86 |
87 | public void setFirstName(String firstName) {
88 | this.firstName = firstName;
89 | }
90 |
91 | public String getLastName() {
92 | return lastName;
93 | }
94 |
95 | public void setLastName(String lastName) {
96 | this.lastName = lastName;
97 | }
98 |
99 | public String getIdentityNumber() {
100 | return identityNumber;
101 | }
102 |
103 | public void setIdentityNumber(String identityNumber) {
104 | this.identityNumber = identityNumber;
105 | }
106 |
107 | public String getEmail() {
108 | return email;
109 | }
110 |
111 | public void setEmail(String email) {
112 | this.email = email;
113 | }
114 |
115 | public Date getDateOfBirth() {
116 | return dateOfBirth;
117 | }
118 |
119 | public void setDateOfBirth(Date dateOfBirth) {
120 | this.dateOfBirth = dateOfBirth;
121 | }
122 |
123 | public String getPassword() {
124 | return password;
125 | }
126 |
127 | public void setPassword(String password) {
128 | this.password = password;
129 | }
130 |
131 | }
132 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/JobTitle.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.OneToMany;
11 | import javax.persistence.Table;
12 |
13 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
14 |
15 | import lombok.AllArgsConstructor;
16 | import lombok.Data;
17 | import lombok.NoArgsConstructor;
18 |
19 | @Data
20 | @Entity
21 | @Table(name="job_titles")
22 | @AllArgsConstructor
23 | @NoArgsConstructor
24 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","advertisements"})
25 | public class JobTitle {
26 |
27 | @Id
28 | @GeneratedValue(strategy=GenerationType.IDENTITY)
29 | @Column(name="title_id",unique = true)
30 | private int titleId;
31 |
32 | @Column(name="title_name",unique = false)
33 | private String title;
34 |
35 | @OneToMany(mappedBy = "jobTitle")
36 | private List Advertisements;
37 |
38 | public int getTitleId() {
39 | return titleId;
40 | }
41 |
42 | public void setTitleId(int titleId) {
43 | this.titleId = titleId;
44 | }
45 |
46 | public List getAdvertisements() {
47 | return Advertisements;
48 | }
49 |
50 | public void setAdvertisements(List advertisements) {
51 | Advertisements = advertisements;
52 | }
53 |
54 | public String getTitle() {
55 | return title;
56 | }
57 |
58 | public void setTitle(String title) {
59 | this.title = title;
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/ProgrammingSkill.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.JoinColumn;
11 | import javax.persistence.ManyToOne;
12 | import javax.persistence.Table;
13 |
14 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
15 | import com.fasterxml.jackson.annotation.JsonProperty;
16 | import com.fasterxml.jackson.annotation.JsonProperty.Access;
17 |
18 | import lombok.AllArgsConstructor;
19 | import lombok.Data;
20 | import lombok.EqualsAndHashCode;
21 | import lombok.NoArgsConstructor;
22 |
23 | @EqualsAndHashCode(callSuper = false)
24 | @Data
25 | @Entity
26 | @Table(name="programming_skills")
27 | @AllArgsConstructor
28 | @NoArgsConstructor
29 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","resume"})
30 |
31 | public class ProgrammingSkill {
32 |
33 | @Id
34 | @GeneratedValue(strategy=GenerationType.IDENTITY)
35 | @Column(name="skill_id",unique=true)
36 | private int skillId;
37 |
38 | @Column(name="skill_name")
39 | private String skillName;
40 |
41 | @JsonProperty(access = Access.WRITE_ONLY)
42 | @ManyToOne()
43 | @JoinColumn(name = "resume_id")
44 | private Resume resume;
45 |
46 | public int getSkillId() {
47 | return skillId;
48 | }
49 |
50 | public void setSkillId(int skillId) {
51 | this.skillId = skillId;
52 | }
53 |
54 | public String getSkillName() {
55 | return skillName;
56 | }
57 |
58 | public void setSkillName(String skillName) {
59 | this.skillName = skillName;
60 | }
61 |
62 | public Resume getResume() {
63 | return resume;
64 | }
65 |
66 | public void setResume(Resume resume) {
67 | this.resume = resume;
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/Resume.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 |
4 | import java.time.LocalDateTime;
5 | import java.time.format.DateTimeFormatter;
6 | import java.util.Date;
7 | import java.util.List;
8 |
9 | import javax.persistence.CascadeType;
10 | import javax.persistence.Column;
11 | import javax.persistence.Entity;
12 | import javax.persistence.GeneratedValue;
13 | import javax.persistence.GenerationType;
14 | import javax.persistence.Id;
15 | import javax.persistence.JoinColumn;
16 | import javax.persistence.ManyToOne;
17 | import javax.persistence.OneToMany;
18 | import javax.persistence.Table;
19 |
20 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
21 |
22 | import lombok.AllArgsConstructor;
23 | import lombok.Data;
24 | import lombok.EqualsAndHashCode;
25 | import lombok.NoArgsConstructor;
26 |
27 | @EqualsAndHashCode(callSuper = false)
28 | @Data
29 | @Entity
30 | @Table(name="resumes")
31 | @AllArgsConstructor
32 | @NoArgsConstructor
33 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","jobSeeker"})
34 | public class Resume {
35 |
36 | @Id
37 | @GeneratedValue(strategy=GenerationType.IDENTITY)
38 | @Column(name="resume_id",unique=true)
39 | private int resumeId;
40 |
41 | @ManyToOne
42 | @JoinColumn(name="seeker_id")
43 | private JobSeeker jobSeeker;
44 |
45 |
46 | @ManyToOne
47 | @JoinColumn(name="letter_id")
48 | private CoverLetter coverLetter;
49 |
50 | @ManyToOne
51 | @JoinColumn(name="photo_id")
52 | private ResumePhoto resumePhoto;
53 |
54 |
55 | @OneToMany(mappedBy ="resume",cascade = CascadeType.ALL)
56 | private List educationInformation;
57 |
58 | @OneToMany(mappedBy ="resume",cascade = CascadeType.ALL)
59 | private List workExperience;
60 |
61 | @OneToMany(mappedBy ="resume",cascade = CascadeType.ALL)
62 | private List foreignLanguage;
63 |
64 | @OneToMany(mappedBy ="resume",cascade = CascadeType.ALL)
65 | private List socialMedia;
66 |
67 | @OneToMany(mappedBy ="resume",cascade = CascadeType.ALL)
68 | private List programmingSkill;
69 |
70 | public int getResumeId() {
71 | return resumeId;
72 | }
73 |
74 | public void setResumeId(int resumeId) {
75 | this.resumeId = resumeId;
76 | }
77 |
78 | public JobSeeker getJobSeeker() {
79 | return jobSeeker;
80 | }
81 |
82 | public void setJobSeeker(JobSeeker jobSeeker) {
83 | this.jobSeeker = jobSeeker;
84 | }
85 |
86 |
87 | public CoverLetter getCoverLetter() {
88 | return coverLetter;
89 | }
90 |
91 | public void setCoverLetter(CoverLetter coverLetter) {
92 | this.coverLetter = coverLetter;
93 | }
94 |
95 | public ResumePhoto getResumePhoto() {
96 | return resumePhoto;
97 | }
98 |
99 | public void setResumePhoto(ResumePhoto resumePhoto) {
100 | this.resumePhoto = resumePhoto;
101 | }
102 |
103 |
104 |
105 | public List getEducationInformation() {
106 | return educationInformation;
107 | }
108 |
109 | public void setEducationInformation(List educationInformation) {
110 | this.educationInformation = educationInformation;
111 | }
112 |
113 | public List getWorkExperience() {
114 | return workExperience;
115 | }
116 |
117 | public void setWorkExperience(List workExperience) {
118 | this.workExperience = workExperience;
119 | }
120 |
121 | public List getForeignLanguage() {
122 | return foreignLanguage;
123 | }
124 |
125 | public void setForeignLanguage(List foreignLanguage) {
126 | this.foreignLanguage = foreignLanguage;
127 | }
128 |
129 | public List getSocialMedia() {
130 | return socialMedia;
131 | }
132 |
133 | public void setSocialMedia(List socialMedia) {
134 | this.socialMedia = socialMedia;
135 | }
136 |
137 | public List getProgrammingSkill() {
138 | return programmingSkill;
139 | }
140 |
141 | public void setProgrammingSkill(List programmingSkill) {
142 | this.programmingSkill = programmingSkill;
143 | }
144 |
145 |
146 |
147 |
148 |
149 | }
150 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/ResumePhoto.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.OneToMany;
11 | import javax.persistence.Table;
12 |
13 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
14 |
15 | import lombok.AllArgsConstructor;
16 | import lombok.Data;
17 | import lombok.EqualsAndHashCode;
18 | import lombok.NoArgsConstructor;
19 |
20 | @Data
21 | @Entity
22 | @Table(name="resume_photos")
23 | @AllArgsConstructor
24 | @NoArgsConstructor
25 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","resumes"})
26 | public class ResumePhoto {
27 |
28 | @Id
29 | @GeneratedValue(strategy=GenerationType.IDENTITY)
30 | @Column(name="photo_id",unique=true)
31 | private int photoId;
32 |
33 | @Column(name="photo_url",nullable=false)
34 | private String photoUrl;
35 |
36 | @OneToMany(mappedBy="resumePhoto")
37 | private List resumes;
38 |
39 | public int getPhotoId() {
40 | return photoId;
41 | }
42 |
43 | public void setPhotoId(int photoId) {
44 | this.photoId = photoId;
45 | }
46 |
47 | public String getPhotoUrl() {
48 | return photoUrl;
49 | }
50 |
51 | public void setPhotoUrl(String photoUrl) {
52 | this.photoUrl = photoUrl;
53 | }
54 |
55 | public List getResumes() {
56 | return resumes;
57 | }
58 |
59 | public void setResumes(List resumes) {
60 | this.resumes = resumes;
61 | }
62 |
63 |
64 |
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/SalaryScale.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.OneToMany;
11 |
12 | import javax.persistence.Table;
13 |
14 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
15 |
16 | import lombok.AllArgsConstructor;
17 | import lombok.Data;
18 | import lombok.NoArgsConstructor;
19 |
20 | @Data
21 | @Entity
22 | @Table(name="salary_scale")
23 | @AllArgsConstructor
24 | @NoArgsConstructor
25 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","advertisements"})
26 | public class SalaryScale {
27 |
28 | @Id
29 | @GeneratedValue(strategy=GenerationType.IDENTITY)
30 | @Column(name="scale_id",unique = true)
31 | private int scaleId;
32 |
33 | @Column(name="max",unique = false)
34 | private String max;
35 |
36 | @Column(name="min",unique = false)
37 | private String min;
38 |
39 |
40 | @OneToMany(mappedBy = "salaryScale")
41 | private List Advertisements;
42 |
43 |
44 | public List getAdvertisements() {
45 | return Advertisements;
46 | }
47 |
48 | public void setAdvertisements(List advertisements) {
49 | Advertisements = advertisements;
50 | }
51 |
52 | public int getScaleId() {
53 | return scaleId;
54 | }
55 |
56 | public void setScaleId(int scaleId) {
57 | this.scaleId = scaleId;
58 | }
59 |
60 | public String getMax() {
61 | return max;
62 | }
63 |
64 | public void setMax(String max) {
65 | this.max = max;
66 | }
67 |
68 | public String getMin() {
69 | return min;
70 | }
71 |
72 | public void setMin(String min) {
73 | this.min = min;
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/SocialMedia.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import javax.persistence.Column;
4 | import javax.persistence.Entity;
5 | import javax.persistence.GeneratedValue;
6 | import javax.persistence.GenerationType;
7 | import javax.persistence.Id;
8 | import javax.persistence.JoinColumn;
9 | import javax.persistence.ManyToOne;
10 | import javax.persistence.Table;
11 |
12 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
13 | import com.fasterxml.jackson.annotation.JsonProperty;
14 | import com.fasterxml.jackson.annotation.JsonProperty.Access;
15 |
16 | import lombok.AllArgsConstructor;
17 | import lombok.Data;
18 |
19 | @Data
20 | @AllArgsConstructor
21 | @Table(name="social_media")
22 | @Entity
23 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","resume"})
24 |
25 | public class SocialMedia {
26 |
27 | @Id
28 | @GeneratedValue(strategy=GenerationType.IDENTITY)
29 | @Column(name="social_media_id",unique=true)
30 | private int mediaId;
31 |
32 | @Column(name="social_media_name",nullable=false)
33 | private String mediaName;
34 |
35 | @Column(name="social_media_address",nullable=false)
36 | private String mediaAdress;
37 |
38 | @JsonProperty(access = Access.WRITE_ONLY)
39 | @ManyToOne()
40 | @JoinColumn(name = "resume_id")
41 | private Resume resume;
42 |
43 | public int getMediaId() {
44 | return mediaId;
45 | }
46 |
47 | public void setMediaId(int mediaId) {
48 | this.mediaId = mediaId;
49 | }
50 |
51 | public String getMediaName() {
52 | return mediaName;
53 | }
54 |
55 | public void setMediaName(String mediaName) {
56 | this.mediaName = mediaName;
57 | }
58 |
59 | public String getMediaAdress() {
60 | return mediaAdress;
61 | }
62 |
63 | public void setMediaAdress(String mediaAdress) {
64 | this.mediaAdress = mediaAdress;
65 | }
66 |
67 | public Resume getResume() {
68 | return resume;
69 | }
70 |
71 | public void setResume(Resume resume) {
72 | this.resume = resume;
73 | }
74 |
75 | }
76 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/University.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.JoinColumn;
11 | import javax.persistence.ManyToOne;
12 | import javax.persistence.OneToMany;
13 | import javax.persistence.Table;
14 |
15 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
16 |
17 | import lombok.AllArgsConstructor;
18 | import lombok.Data;
19 | import lombok.NoArgsConstructor;
20 |
21 | @Data
22 | @Entity
23 | @Table(name="universities")
24 | @AllArgsConstructor
25 | @NoArgsConstructor
26 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","educationInformation"})
27 | public class University {
28 |
29 | @Id
30 | @GeneratedValue(strategy=GenerationType.IDENTITY)
31 | @Column(name="university_id",unique=true)
32 | private int universityId;
33 |
34 | @Column(name="university_name")
35 | private String universityName;
36 |
37 | @ManyToOne()
38 | @JoinColumn(name="city_id")
39 | private City city;
40 |
41 | @Column(name="status")
42 | private int status;
43 |
44 | @OneToMany(mappedBy="university")
45 | private List educationInformation;
46 |
47 | public int getUniversityId() {
48 | return universityId;
49 | }
50 |
51 | public void setUniversityId(int universityId) {
52 | this.universityId = universityId;
53 | }
54 |
55 | public String getUniversityName() {
56 | return universityName;
57 | }
58 |
59 | public void setUniversityName(String universityName) {
60 | this.universityName = universityName;
61 | }
62 |
63 | public City getCity() {
64 | return city;
65 | }
66 |
67 | public void setCity(City city) {
68 | this.city = city;
69 | }
70 |
71 | public int getStatus() {
72 | return status;
73 | }
74 |
75 | public void setStatus(int status) {
76 | this.status = status;
77 | }
78 |
79 | public List getEducationInformation() {
80 | return educationInformation;
81 | }
82 |
83 | public void setEducationInformation(List educationInformation) {
84 | this.educationInformation = educationInformation;
85 | }
86 |
87 | }
88 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/UniversityDepartment.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.util.List;
4 |
5 | import javax.persistence.Column;
6 | import javax.persistence.Entity;
7 | import javax.persistence.GeneratedValue;
8 | import javax.persistence.GenerationType;
9 | import javax.persistence.Id;
10 | import javax.persistence.JoinColumn;
11 | import javax.persistence.ManyToOne;
12 | import javax.persistence.OneToMany;
13 | import javax.persistence.Table;
14 |
15 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
16 |
17 | import lombok.AllArgsConstructor;
18 | import lombok.Data;
19 | import lombok.NoArgsConstructor;
20 |
21 | @Data
22 | @Entity
23 | @Table(name="university_departments")
24 | @AllArgsConstructor
25 | @NoArgsConstructor
26 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","educationInformation"})
27 | public class UniversityDepartment {
28 | @Id
29 | @GeneratedValue(strategy=GenerationType.IDENTITY)
30 | @Column(name="department_id",unique = true)
31 | private int departmendId;
32 |
33 | @Column(name="department_name",unique = true)
34 | private String departmentName;
35 |
36 | @ManyToOne()
37 | @JoinColumn(name="faculty_id")
38 | private Faculty faculty;
39 |
40 | @OneToMany(mappedBy="universityDepartment")
41 | private List educationInformation;
42 |
43 | @Column(name="status",unique = true)
44 | private int status;
45 |
46 | public int getDepartmendId() {
47 | return departmendId;
48 | }
49 |
50 | public void setDepartmendId(int departmendId) {
51 | this.departmendId = departmendId;
52 | }
53 |
54 | public String getDepartmentName() {
55 | return departmentName;
56 | }
57 |
58 | public void setDepartmentName(String departmentName) {
59 | this.departmentName = departmentName;
60 | }
61 |
62 | public Faculty getFaculty() {
63 | return faculty;
64 | }
65 |
66 | public void setFaculty(Faculty faculty) {
67 | this.faculty = faculty;
68 | }
69 |
70 | public List getEducationInformation() {
71 | return educationInformation;
72 | }
73 |
74 | public void setEducationInformation(List educationInformation) {
75 | this.educationInformation = educationInformation;
76 | }
77 |
78 | public int getStatus() {
79 | return status;
80 | }
81 |
82 | public void setStatus(int status) {
83 | this.status = status;
84 | }
85 |
86 | }
87 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/User.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.sql.Date;
4 | import java.util.List;
5 |
6 | import javax.persistence.Column;
7 | import javax.persistence.Entity;
8 | import javax.persistence.GeneratedValue;
9 | import javax.persistence.GenerationType;
10 | import javax.persistence.Id;
11 | import javax.persistence.JoinColumn;
12 | import javax.persistence.OneToMany;
13 | import javax.persistence.OneToOne;
14 | import javax.persistence.Table;
15 |
16 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
17 |
18 | import lombok.AllArgsConstructor;
19 | import lombok.Data;
20 | import lombok.NoArgsConstructor;
21 |
22 | @Data
23 | @Entity
24 | @Table(name="users")
25 | @AllArgsConstructor
26 | @NoArgsConstructor
27 | @JsonIgnoreProperties({"hibernateLazyInitializer"})
28 | public class User {
29 |
30 | @Id
31 | @GeneratedValue(strategy=GenerationType.IDENTITY)
32 | @Column(name="user_id")
33 | private int userId;
34 |
35 | @Column(name="first_name")
36 | private String firstName;
37 |
38 | @Column(name="last_name")
39 | private String lastName;
40 |
41 | @Column(name="tr_identity_number")
42 | private String identityNumber;
43 |
44 | @Column(name="email")
45 | private String email;
46 |
47 | @Column(name="date_of_birth")
48 | private Date dateOfBirth;
49 |
50 | @Column(name="password")
51 | private String password;
52 |
53 |
54 |
55 | public int getUserId() {
56 | return userId;
57 | }
58 |
59 | public void setUserId(int userId) {
60 | this.userId = userId;
61 | }
62 |
63 | public String getFirstName() {
64 | return firstName;
65 | }
66 |
67 | public void setFirstName(String firstName) {
68 | this.firstName = firstName;
69 | }
70 |
71 | public String getLastName() {
72 | return lastName;
73 | }
74 |
75 | public void setLastName(String lastName) {
76 | this.lastName = lastName;
77 | }
78 |
79 | public String getIdentityNumber() {
80 | return identityNumber;
81 | }
82 |
83 | public void setIdentityNumber(String identityNumber) {
84 | this.identityNumber = identityNumber;
85 | }
86 |
87 | public String getEmail() {
88 | return email;
89 | }
90 |
91 | public void setEmail(String email) {
92 | this.email = email;
93 | }
94 |
95 | public Date getDateOfBirth() {
96 | return dateOfBirth;
97 | }
98 |
99 | public void setDateOfBirth(Date dateOfBirth) {
100 | this.dateOfBirth = dateOfBirth;
101 | }
102 |
103 | public String getPassword() {
104 | return password;
105 | }
106 |
107 | public void setPassword(String password) {
108 | this.password = password;
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/concretes/WorkExperience.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.concretes;
2 |
3 | import java.sql.Date;
4 | import java.util.List;
5 |
6 | import javax.persistence.Column;
7 | import javax.persistence.Entity;
8 | import javax.persistence.GeneratedValue;
9 | import javax.persistence.GenerationType;
10 | import javax.persistence.Id;
11 | import javax.persistence.JoinColumn;
12 | import javax.persistence.ManyToOne;
13 | import javax.persistence.Table;
14 |
15 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
16 | import com.fasterxml.jackson.annotation.JsonProperty;
17 | import com.fasterxml.jackson.annotation.JsonProperty.Access;
18 |
19 | import lombok.AllArgsConstructor;
20 | import lombok.Data;
21 | import lombok.NoArgsConstructor;
22 |
23 | @Data
24 | @Entity
25 | @Table(name="work_experiences")
26 | @AllArgsConstructor
27 | @NoArgsConstructor
28 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","resume"})
29 | public class WorkExperience {
30 |
31 | @Id
32 | @GeneratedValue(strategy=GenerationType.IDENTITY)
33 | @Column(name="experience_id",unique=true)
34 | private int experienceId;
35 |
36 | @Column(name="company_name" ,nullable=false)
37 | private String companyName;
38 |
39 | @Column(name="job_title" ,nullable=false)
40 | private String jobTitle;
41 |
42 | @Column(name="starting_date" ,nullable=false)
43 | private Date startingDate;
44 |
45 | @Column(name="end_date" ,nullable=true)
46 | private Date endDate;
47 |
48 | @Column(name="status" ,nullable=true)
49 | private String status;
50 |
51 | @ManyToOne()
52 | @JoinColumn(name = "resume_id")
53 | private Resume resume;
54 |
55 | public int getExperienceId() {
56 | return experienceId;
57 | }
58 |
59 | public void setExperienceId(int experienceId) {
60 | this.experienceId = experienceId;
61 | }
62 |
63 | public String getCompanyName() {
64 | return companyName;
65 | }
66 |
67 | public void setCompanyName(String companyName) {
68 | this.companyName = companyName;
69 | }
70 |
71 | public String getJobTitle() {
72 | return jobTitle;
73 | }
74 |
75 | public void setJobTitle(String jobTitle) {
76 | this.jobTitle = jobTitle;
77 | }
78 |
79 | public Date getStartingDate() {
80 | return startingDate;
81 | }
82 |
83 | public void setStartingDate(Date startingDate) {
84 | this.startingDate = startingDate;
85 | }
86 |
87 | public Date getEndDate() {
88 | return endDate;
89 | }
90 |
91 | public void setEndDate(Date endDate) {
92 | this.endDate = endDate;
93 | }
94 |
95 | public String getStatus() {
96 | return status;
97 | }
98 |
99 | public void setStatus(String status) {
100 | this.status = status;
101 | }
102 |
103 | public Resume getResume() {
104 | return resume;
105 | }
106 |
107 | public void setResume(Resume resume) {
108 | this.resume = resume;
109 | }
110 |
111 |
112 |
113 |
114 |
115 | }
116 |
--------------------------------------------------------------------------------
/src/main/java/kodlama/io/hrms/entities/dtos/DetailSeekerDto.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms.entities.dtos;
2 |
3 | import java.util.List;
4 |
5 | import kodlama.io.hrms.entities.concretes.City;
6 | import kodlama.io.hrms.entities.concretes.EducationInformation;
7 | import kodlama.io.hrms.entities.concretes.ForeignLanguage;
8 | import kodlama.io.hrms.entities.concretes.JobSeeker;
9 | import kodlama.io.hrms.entities.concretes.ProgrammingSkill;
10 | import kodlama.io.hrms.entities.concretes.Resume;
11 | import kodlama.io.hrms.entities.concretes.WorkExperience;
12 |
13 | public class DetailSeekerDto {
14 | public DetailSeekerDto() {
15 | super();
16 | // TODO Auto-generated constructor stub
17 | }
18 |
19 | public DetailSeekerDto(JobSeeker jobSeeker, List educationInformation, List foreignLanguage,
20 | List programmingSkill, City city, List workExperience,
21 | List resumes) {
22 | super();
23 | this.candidate = candidate;
24 | this.schools = schools;
25 | this.languages = languages;
26 | this.programmingLanguages = programmingLanguages;
27 | this.city = city;
28 | this.jobExperiences = jobExperiences;
29 | this.resumes = resumes;
30 | }
31 |
32 | Candidate candidate;
33 | List schools;
34 | List languages;
35 | List programmingLanguages;
36 | City city;
37 | List jobExperiences;
38 | List resumes;
39 |
40 | public Candidate getCandidate() {
41 | return candidate;
42 | }
43 |
44 | public void setCandidate(Candidate candidate) {
45 | this.candidate = candidate;
46 | }
47 |
48 | public List getSchools() {
49 | return schools;
50 | }
51 |
52 | public void setSchools(List schools) {
53 | this.schools = schools;
54 | }
55 |
56 | public List getLanguages() {
57 | return languages;
58 | }
59 |
60 | public void setLanguages(List languages) {
61 | this.languages = languages;
62 | }
63 |
64 | public List getProgrammingLanguages() {
65 | return programmingLanguages;
66 | }
67 |
68 | public void setProgrammingLanguages(List programmingLanguages) {
69 | this.programmingLanguages = programmingLanguages;
70 | }
71 |
72 | public City getCity() {
73 | return city;
74 | }
75 |
76 | public void setCity(City city) {
77 | this.city = city;
78 | }
79 |
80 | public List getJobExperiences() {
81 | return jobExperiences;
82 | }
83 |
84 | public void setJobExperiences(List jobExperiences) {
85 | this.jobExperiences = jobExperiences;
86 | }
87 |
88 | public List getResumes() {
89 | return resumes;
90 | }
91 |
92 | public void setResumes(List resumes) {
93 | this.resumes = resumes;
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
2 | spring.jpa.hibernate.ddl-auto=update
3 | spring.jpa.hibernate.show-sql=true
4 | spring.datasource.url=jdbc:postgresql://localhost:5432/hrms
5 | spring.datasource.username=postgres
6 | spring.datasource.password=1234
7 | spring.jpa.properties.javax.persistence.validation.mode = none
8 | server.port=8080
--------------------------------------------------------------------------------
/src/test/java/kodlama/io/hrms/HrmsApplicationTests.java:
--------------------------------------------------------------------------------
1 | package kodlama.io.hrms;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class HrmsApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/system.properties:
--------------------------------------------------------------------------------
1 | java.runtime.version=11
--------------------------------------------------------------------------------