├── .gitignore ├── intro ├── .gitignore ├── src │ └── intro │ │ └── Main.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── HomeWorks ├── .gitignore ├── Day3 │ ├── .gitignore │ ├── day3.1 │ │ ├── .gitignore │ │ ├── src │ │ │ └── inheritance │ │ │ │ └── Main.java │ │ ├── .classpath │ │ └── .project │ ├── day3.2 │ │ ├── .gitignore │ │ ├── src │ │ │ ├── Main.java │ │ │ ├── UserManager.java │ │ │ ├── Ekran Görüntüsü.PNG │ │ │ ├── StudentManager.java │ │ │ ├── InstructorManager.java │ │ │ ├── Instructor.java │ │ │ ├── Student.java │ │ │ └── User.java │ │ ├── .classpath │ │ └── .project │ └── .project ├── Day1 │ ├── day1.1 │ │ ├── .gitignore │ │ ├── src │ │ │ └── Main.java │ │ ├── .classpath │ │ └── .project │ ├── day1.2 │ │ ├── .gitignore │ │ ├── src │ │ │ ├── Ekran Alıntısı1.PNG │ │ │ └── Main.java │ │ ├── .classpath │ │ └── .project │ ├── day1.3 │ │ ├── .gitignore │ │ ├── src │ │ │ ├── Classes │ │ │ │ └── Main.java │ │ │ ├── Methods │ │ │ │ └── Main.java │ │ │ ├── Methods1 │ │ │ │ └── Main.java │ │ │ ├── veriables │ │ │ │ └── Main.java │ │ │ ├── mukemmelSayi │ │ │ │ └── Main.java │ │ │ ├── reCampDemo1 │ │ │ │ └── Main.java │ │ │ ├── sesliHarfler │ │ │ │ └── Main.java │ │ │ ├── Main.java │ │ │ └── miniProjeAsalSayi │ │ │ │ └── Main.java │ │ ├── .classpath │ │ └── .project │ └── .project ├── Day2 │ ├── day2.1 │ │ ├── .gitignore │ │ ├── src │ │ │ ├── Main.java │ │ │ ├── Course.java │ │ │ ├── Instructor.java │ │ │ ├── InstructorManager.java │ │ │ └── CourseManager.java │ │ ├── .classpath │ │ └── .project │ └── day2.2 │ │ ├── .gitignore │ │ ├── src │ │ ├── Classes │ │ │ ├── Main.java │ │ │ ├── CustomerManager.java │ │ │ └── DortIslem.java │ │ └── classesWithAttribute │ │ │ ├── Main.java │ │ │ ├── Product.java │ │ │ └── ProductManager.java │ │ ├── .classpath │ │ └── .project ├── Day4 │ ├── Day4.1 │ │ ├── .gitignore │ │ ├── .classpath │ │ └── .project │ ├── Day4.2 │ │ ├── .gitignore │ │ ├── src │ │ │ ├── Abstract │ │ │ │ ├── Entitiy.java │ │ │ │ ├── CustomerService.java │ │ │ │ ├── CustomerCheckService.java │ │ │ │ └── BaseCustomerManager.java │ │ │ ├── Main.java │ │ │ ├── Entities │ │ │ │ └── Customer.java │ │ │ ├── Concrete │ │ │ │ ├── NeroCustomerManager.java │ │ │ │ ├── CustomerCheckManager.java │ │ │ │ └── StarbucksCustomerManager.java │ │ │ ├── Adapters │ │ │ │ ├── MernisServiceAdapter.java │ │ │ │ └── MernisAdaptor.java │ │ │ └── tr │ │ │ │ └── gov │ │ │ │ └── nvi │ │ │ │ └── tckimlik │ │ │ │ └── WS │ │ │ │ ├── KPSPublicSoap.java │ │ │ │ ├── KPSPublic.java │ │ │ │ └── KPSPublicSoapProxy.java │ │ ├── .settings │ │ │ ├── org.eclipse.core.resources.prefs │ │ │ └── org.eclipse.jdt.core.prefs │ │ ├── .project │ │ └── .classpath │ └── Day4.3 │ │ ├── .gitignore │ │ ├── src │ │ ├── Absrtact │ │ │ ├── Entity.java │ │ │ ├── SaleService.java │ │ │ ├── GameService.java │ │ │ ├── PlayerService.java │ │ │ └── CampainService.java │ │ ├── Main.java │ │ ├── Concrete │ │ │ ├── GameManager.java │ │ │ ├── SaleManager.java │ │ │ ├── PlayerManager.java │ │ │ ├── CampaignManager.java │ │ │ └── FakeCheckUserService.java │ │ ├── Adapters │ │ │ └── PersonCheckService.java │ │ └── Entities │ │ │ ├── NewYearCampaing.java │ │ │ ├── Campaing.java │ │ │ ├── Player.java │ │ │ └── Game.java │ │ ├── .classpath │ │ └── .project ├── Day5 │ └── Day5.1 │ │ ├── .gitignore │ │ ├── src │ │ ├── Main.java │ │ ├── entities │ │ │ ├── abstracts │ │ │ │ └── Entity.java │ │ │ └── concretes │ │ │ │ └── User.java │ │ ├── business │ │ │ ├── abstrasts │ │ │ │ ├── EmailService.java │ │ │ │ ├── AuthService.java │ │ │ │ └── UserService.java │ │ │ └── concretes │ │ │ │ ├── AuthManager.java │ │ │ │ ├── UserManager.java │ │ │ │ └── EmailManager.java │ │ ├── dataAccess │ │ │ ├── concretes │ │ │ │ └── InMemoryUserDao.java │ │ │ └── abstracts │ │ │ │ └── UserDao.java │ │ ├── core │ │ │ ├── googleRegisterAdapter │ │ │ │ └── GoogleManager.java │ │ │ └── utilities │ │ │ │ └── BusinessRules.java │ │ └── signUpWithGoogle │ │ │ └── Register.java │ │ ├── .classpath │ │ └── .project └── .project ├── inheritance ├── .gitignore ├── src │ └── inheritance │ │ ├── Customer.java │ │ ├── Employee.java │ │ ├── Person.java │ │ └── Main.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── inheritance1 ├── .gitignore ├── src │ └── inheritance1 │ │ ├── Main.java │ │ ├── Customer.java │ │ ├── CustomerManager.java │ │ ├── CorpotareCustomer.java │ │ ├── indivudualCustomer.java │ │ └── SendikaCustomer.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── inheritance2 ├── .gitignore ├── src │ └── inheritance2 │ │ ├── Main.java │ │ ├── EmailLogger.java │ │ ├── FileLogger.java │ │ ├── SmsLogger.java │ │ ├── CustomerManager.java │ │ ├── DatabaseLogger.java │ │ ├── Logger.java │ │ └── LogManager.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── interfaces ├── .gitignore ├── src │ └── interfaces │ │ ├── Main.java │ │ ├── EmailLoger.java │ │ ├── FileLogger.java │ │ ├── SmsLogger.java │ │ ├── CustomerManager.java │ │ ├── DatabaseLogger.java │ │ ├── Logger.java │ │ ├── Utils.java │ │ └── Customer.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── nLayeredDemo ├── .gitignore ├── src │ └── nLayeredDemo │ │ ├── Main.java │ │ ├── entities │ │ ├── abstracts │ │ │ └── Entity.java │ │ └── concretes │ │ │ └── Product.java │ │ ├── core │ │ ├── LoggerService.java │ │ └── JLoggerManagerAdapter.java │ │ ├── jLogger │ │ └── JLoggerManager.java │ │ ├── dataAccess │ │ ├── abstracts │ │ │ └── ProductDao.java │ │ └── concretes │ │ │ ├── AbcProductDao.java │ │ │ └── HibernateProductDao.java │ │ └── business │ │ ├── concretes │ │ └── ProductManager.java │ │ └── abstracts │ │ └── ProductService.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── oopIntro ├── .gitignore ├── src │ └── oopIntro │ │ ├── Main.java │ │ ├── Product.java │ │ ├── ProductManager.java │ │ └── Category.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── overriding ├── .gitignore ├── src │ └── overriding │ │ ├── Main.java │ │ ├── TarımKrediManager.java │ │ ├── OgrenciKrediManager.java │ │ ├── OgretmenKrediManager.java │ │ └── BaseKrediManager.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── polymorphism ├── .gitignore ├── src │ └── polymorphism │ │ ├── Main.java │ │ ├── CustomerManager.java │ │ ├── BaseLoger.java │ │ ├── EmailLogger.java │ │ ├── FileLogger.java │ │ ├── DatabaseLogger.java │ │ └── ConsoleLogger.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── staticDemo ├── .gitignore ├── src │ └── staticDemo │ │ ├── Main.java │ │ ├── ProductManager.java │ │ ├── ProductValidator.java │ │ └── Product.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── absrtractDemo ├── .gitignore ├── src │ └── absrtractDemo │ │ ├── MySqlDatabaseManager.java │ │ ├── BaseDatabaseManager.java │ │ ├── CustomerManager.java │ │ ├── OracleDatabaseManager.java │ │ ├── SqlServerDatabaseManager.java │ │ └── Main.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── abstractClasses ├── .gitignore ├── src │ └── abstractClasses │ │ ├── Main.java │ │ ├── ManGameCalculator.java │ │ ├── WomenGameCalculator.java │ │ ├── KidsGameCalculator.java │ │ ├── OlderGameCalculator.java │ │ └── GameCalculator.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── inheritanceDemo ├── .gitignore ├── src │ └── inheritanceDemo │ │ ├── BaseKrediManager.java │ │ ├── Main.java │ │ ├── TarimKrediManager.java │ │ ├── OgretmenKrediManager.java │ │ └── KrediUI.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── interfacesDemo ├── .gitignore ├── src │ └── interfacesDemo │ │ ├── IRepository.java │ │ ├── Main.java │ │ ├── ICustomerDal.java │ │ ├── MySqlCustomerDal.java │ │ ├── OracleCustomerDal.java │ │ └── CustomerManager.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── interfacesDemo2 ├── .gitignore ├── src │ └── interfacesDemo2 │ │ ├── IEatable.java │ │ ├── IPayable.java │ │ ├── IWorkable.java │ │ ├── Robot.java │ │ ├── Worker.java │ │ ├── OutsourceWorker.java │ │ └── Main.java ├── .classpath ├── .project └── .settings │ └── org.eclipse.jdt.core.prefs ├── hrms ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── src │ ├── main │ │ ├── java │ │ │ └── kodlamaio │ │ │ │ └── hrms │ │ │ │ ├── core │ │ │ │ ├── utilities │ │ │ │ │ ├── adapter │ │ │ │ │ │ ├── UserValidationService.java │ │ │ │ │ │ └── UserValidationManager.java │ │ │ │ │ └── results │ │ │ │ │ │ ├── ErrorResult.java │ │ │ │ │ │ ├── SuccessResult.java │ │ │ │ │ │ ├── DataResult.java │ │ │ │ │ │ ├── ErrorDataResult.java │ │ │ │ │ │ ├── Result.java │ │ │ │ │ │ └── SuccessDataResult.java │ │ │ │ └── imageUpload │ │ │ │ │ ├── ImageUploadService.java │ │ │ │ │ └── ImageUploadManager.java │ │ │ │ ├── dataAccess │ │ │ │ └── abstracts │ │ │ │ │ ├── CoverLetterForCvDao.java │ │ │ │ │ ├── UserDao.java │ │ │ │ │ ├── VerificationCodeDao.java │ │ │ │ │ ├── ImageForCvDao.java │ │ │ │ │ ├── JobPositionDao.java │ │ │ │ │ ├── LinkForCvDao.java │ │ │ │ │ ├── SkillForCvDao.java │ │ │ │ │ ├── CityDao.java │ │ │ │ │ ├── LanguageForCvDao.java │ │ │ │ │ ├── EducationForCvDao.java │ │ │ │ │ ├── ExperienceForCvDao.java │ │ │ │ │ ├── JobSeekerDao.java │ │ │ │ │ ├── EmployerDao.java │ │ │ │ │ └── JobAdvertDao.java │ │ │ │ ├── business │ │ │ │ ├── abstracts │ │ │ │ │ ├── EmailVerificationService.java │ │ │ │ │ ├── UserService.java │ │ │ │ │ ├── CityService.java │ │ │ │ │ ├── EmployerService.java │ │ │ │ │ ├── JobPositionService.java │ │ │ │ │ ├── CoverLetterForCvService.java │ │ │ │ │ ├── LinkForCvService.java │ │ │ │ │ ├── SkillForCvService.java │ │ │ │ │ ├── VerificationCodeService.java │ │ │ │ │ ├── LanguageForCvService.java │ │ │ │ │ ├── ImageForCvService.java │ │ │ │ │ ├── EducationForCvService.java │ │ │ │ │ ├── JobSeekerService.java │ │ │ │ │ ├── ExperienceForCvService.java │ │ │ │ │ └── JobAdvertService.java │ │ │ │ └── concretes │ │ │ │ │ ├── VerificationCodeManager.java │ │ │ │ │ ├── UserManager.java │ │ │ │ │ ├── SkillForCvManager.java │ │ │ │ │ ├── LinkForCvManager.java │ │ │ │ │ ├── CoverLetterForManager.java │ │ │ │ │ ├── JobPositionManager.java │ │ │ │ │ └── CityManager.java │ │ │ │ ├── entities │ │ │ │ ├── dtos │ │ │ │ │ ├── JobAdvertDto.java │ │ │ │ │ └── JobSeekerCvDto.java │ │ │ │ └── concretes │ │ │ │ │ ├── SkillForCv.java │ │ │ │ │ ├── LinkForCv.java │ │ │ │ │ ├── CoverLetterForCv.java │ │ │ │ │ ├── Base.java │ │ │ │ │ ├── ImageForCv.java │ │ │ │ │ ├── LanguageForCv.java │ │ │ │ │ ├── Employee.java │ │ │ │ │ ├── City.java │ │ │ │ │ ├── EducationForCv.java │ │ │ │ │ ├── VerificationCode.java │ │ │ │ │ ├── Employer.java │ │ │ │ │ ├── ExperienceForCv.java │ │ │ │ │ ├── JobPosition.java │ │ │ │ │ └── User.java │ │ │ │ ├── services │ │ │ │ └── FakeMernis.java │ │ │ │ ├── api │ │ │ │ └── controllers │ │ │ │ │ ├── VerificationCodesController.java │ │ │ │ │ ├── EmployersController.java │ │ │ │ │ ├── CitiesController.java │ │ │ │ │ ├── JobPositionsController.java │ │ │ │ │ └── CoverLettersController.java │ │ │ │ └── HrmsApplication.java │ │ └── resources │ │ │ └── application.properties │ └── test │ │ └── java │ │ └── kodlamaio │ │ └── hrms │ │ └── HrmsApplicationTests.java └── .gitignore └── northwind └── northwind ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── src ├── main │ ├── java │ │ └── kodlamaio │ │ │ └── northwind │ │ │ ├── business │ │ │ ├── abstracts │ │ │ │ ├── CategoryService.java │ │ │ │ ├── UserService.java │ │ │ │ └── ProductService.java │ │ │ └── concretes │ │ │ │ ├── CategoryManager.java │ │ │ │ └── UserManager.java │ │ │ ├── dataAcces │ │ │ └── abstracts │ │ │ │ ├── CategoryDao.java │ │ │ │ └── ProductDao.java │ │ │ ├── core │ │ │ ├── dataAccess │ │ │ │ └── UserDao.java │ │ │ ├── utilities │ │ │ │ └── results │ │ │ │ │ ├── ErrorResult.java │ │ │ │ │ ├── SuccesResult.java │ │ │ │ │ ├── ErrorDataResult.java │ │ │ │ │ ├── SuccesDataResult.java │ │ │ │ │ ├── Result.java │ │ │ │ │ └── DataResult.java │ │ │ └── entities │ │ │ │ └── User.java │ │ │ ├── entities │ │ │ ├── dtos │ │ │ │ └── ProductWithCategoryDto.java │ │ │ └── concretes │ │ │ │ ├── Category.java │ │ │ │ └── Product.java │ │ │ ├── NorthwindApplication.java │ │ │ └── api │ │ │ └── controllers │ │ │ └── UsersController.java │ └── resources │ │ └── application.properties └── test │ └── java │ └── kodlamaio │ └── northwind │ └── NorthwindApplicationTests.java └── .gitignore /.gitignore: -------------------------------------------------------------------------------- 1 | /.metadata/ 2 | -------------------------------------------------------------------------------- /intro/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /inheritance/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /inheritance1/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /inheritance2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /interfaces/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /nLayeredDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /oopIntro/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /overriding/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /polymorphism/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /staticDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day3/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /absrtractDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /abstractClasses/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /inheritanceDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /interfacesDemo/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /interfacesDemo2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.1/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.1/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.1/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.1/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Absrtact/Entity.java: -------------------------------------------------------------------------------- 1 | package Absrtact; 2 | 3 | public interface Entity { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /intro/src/intro/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/intro/src/intro/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Abstract/Entitiy.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | public interface Entitiy { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /oopIntro/src/oopIntro/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/oopIntro/src/oopIntro/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.1/src/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.1/src/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.1/src/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.1/src/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/src/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day3/day3.2/src/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day4/Day4.2/src/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day4/Day4.3/src/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day5/Day5.1/src/Main.java -------------------------------------------------------------------------------- /hrms/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/hrms/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /interfaces/src/interfaces/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfaces/src/interfaces/Main.java -------------------------------------------------------------------------------- /interfacesDemo/src/interfacesDemo/IRepository.java: -------------------------------------------------------------------------------- 1 | package interfacesDemo; 2 | 3 | public interface IRepository { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /oopIntro/src/oopIntro/Product.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/oopIntro/src/oopIntro/Product.java -------------------------------------------------------------------------------- /overriding/src/overriding/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/overriding/src/overriding/Main.java -------------------------------------------------------------------------------- /staticDemo/src/staticDemo/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/staticDemo/src/staticDemo/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.1/src/Course.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.1/src/Course.java -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/entities/abstracts/Entity.java: -------------------------------------------------------------------------------- 1 | package entities.abstracts; 2 | 3 | public interface Entity { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /inheritanceDemo/src/inheritanceDemo/BaseKrediManager.java: -------------------------------------------------------------------------------- 1 | package inheritanceDemo; 2 | 3 | public class BaseKrediManager { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.1/src/Instructor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.1/src/Instructor.java -------------------------------------------------------------------------------- /inheritance/src/inheritance/Customer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance/src/inheritance/Customer.java -------------------------------------------------------------------------------- /inheritance/src/inheritance/Employee.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance/src/inheritance/Employee.java -------------------------------------------------------------------------------- /inheritance/src/inheritance/Person.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance/src/inheritance/Person.java -------------------------------------------------------------------------------- /inheritance1/src/inheritance1/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance1/src/inheritance1/Main.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance2/src/inheritance2/Main.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/EmailLoger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfaces/src/interfaces/EmailLoger.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/FileLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfaces/src/interfaces/FileLogger.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/SmsLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfaces/src/interfaces/SmsLogger.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/nLayeredDemo/src/nLayeredDemo/Main.java -------------------------------------------------------------------------------- /polymorphism/src/polymorphism/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/polymorphism/src/polymorphism/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/Classes/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.3/src/Classes/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/Methods/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.3/src/Methods/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/src/Classes/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.2/src/Classes/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/src/UserManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day3/day3.2/src/UserManager.java -------------------------------------------------------------------------------- /inheritance1/src/inheritance1/Customer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance1/src/inheritance1/Customer.java -------------------------------------------------------------------------------- /interfacesDemo/src/interfacesDemo/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfacesDemo/src/interfacesDemo/Main.java -------------------------------------------------------------------------------- /interfacesDemo2/src/interfacesDemo2/IEatable.java: -------------------------------------------------------------------------------- 1 | package interfacesDemo2; 2 | 3 | public interface IEatable { 4 | 5 | void eat(); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /interfacesDemo2/src/interfacesDemo2/IPayable.java: -------------------------------------------------------------------------------- 1 | package interfacesDemo2; 2 | 3 | public interface IPayable { 4 | 5 | void pay(); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /interfacesDemo2/src/interfacesDemo2/IWorkable.java: -------------------------------------------------------------------------------- 1 | package interfacesDemo2; 2 | 3 | public interface IWorkable { 4 | 5 | void work(); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.2/src/Ekran Alıntısı1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.2/src/Ekran Alıntısı1.PNG -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/Methods1/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.3/src/Methods1/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/veriables/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.3/src/veriables/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/src/Ekran Görüntüsü.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day3/day3.2/src/Ekran Görüntüsü.PNG -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/src/StudentManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day3/day3.2/src/StudentManager.java -------------------------------------------------------------------------------- /abstractClasses/src/abstractClasses/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/abstractClasses/src/abstractClasses/Main.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/EmailLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance2/src/inheritance2/EmailLogger.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/FileLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance2/src/inheritance2/FileLogger.java -------------------------------------------------------------------------------- /inheritanceDemo/src/inheritanceDemo/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritanceDemo/src/inheritanceDemo/Main.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfaces/src/interfaces/CustomerManager.java -------------------------------------------------------------------------------- /interfaces/src/interfaces/DatabaseLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfaces/src/interfaces/DatabaseLogger.java -------------------------------------------------------------------------------- /interfacesDemo/src/interfacesDemo/ICustomerDal.java: -------------------------------------------------------------------------------- 1 | package interfacesDemo; 2 | 3 | public interface ICustomerDal { 4 | 5 | void Add(); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /interfacesDemo2/src/interfacesDemo2/Robot.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfacesDemo2/src/interfacesDemo2/Robot.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/entities/abstracts/Entity.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.entities.abstracts; 2 | 3 | public interface Entity { 4 | 5 | 6 | } 7 | -------------------------------------------------------------------------------- /staticDemo/src/staticDemo/ProductManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/staticDemo/src/staticDemo/ProductManager.java -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/mukemmelSayi/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.3/src/mukemmelSayi/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/reCampDemo1/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.3/src/reCampDemo1/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/sesliHarfler/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day1/day1.3/src/sesliHarfler/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.1/src/InstructorManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.1/src/InstructorManager.java -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/src/InstructorManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day3/day3.2/src/InstructorManager.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Entities/Customer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day4/Day4.2/src/Entities/Customer.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/SmsLogger.java: -------------------------------------------------------------------------------- 1 | package inheritance2; 2 | 3 | public class SmsLogger extends Logger { 4 | 5 | 6 | 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /interfacesDemo2/src/interfacesDemo2/Worker.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfacesDemo2/src/interfacesDemo2/Worker.java -------------------------------------------------------------------------------- /overriding/src/overriding/TarımKrediManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/overriding/src/overriding/TarımKrediManager.java -------------------------------------------------------------------------------- /staticDemo/src/staticDemo/ProductValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/staticDemo/src/staticDemo/ProductValidator.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Concrete/GameManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day4/Day4.3/src/Concrete/GameManager.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Concrete/SaleManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day4/Day4.3/src/Concrete/SaleManager.java -------------------------------------------------------------------------------- /inheritance1/src/inheritance1/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance1/src/inheritance1/CustomerManager.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance2/src/inheritance2/CustomerManager.java -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/DatabaseLogger.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance2/src/inheritance2/DatabaseLogger.java -------------------------------------------------------------------------------- /inheritanceDemo/src/inheritanceDemo/TarimKrediManager.java: -------------------------------------------------------------------------------- 1 | package inheritanceDemo; 2 | 3 | public class TarimKrediManager extends BaseKrediManager { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /northwind/northwind/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/northwind/northwind/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /overriding/src/overriding/OgrenciKrediManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/overriding/src/overriding/OgrenciKrediManager.java -------------------------------------------------------------------------------- /polymorphism/src/polymorphism/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/polymorphism/src/polymorphism/CustomerManager.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Concrete/PlayerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day4/Day4.3/src/Concrete/PlayerManager.java -------------------------------------------------------------------------------- /inheritance1/src/inheritance1/CorpotareCustomer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance1/src/inheritance1/CorpotareCustomer.java -------------------------------------------------------------------------------- /inheritance1/src/inheritance1/indivudualCustomer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/inheritance1/src/inheritance1/indivudualCustomer.java -------------------------------------------------------------------------------- /inheritanceDemo/src/inheritanceDemo/OgretmenKrediManager.java: -------------------------------------------------------------------------------- 1 | package inheritanceDemo; 2 | 3 | public class OgretmenKrediManager extends BaseKrediManager { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /staticDemo/src/staticDemo/Product.java: -------------------------------------------------------------------------------- 1 | package staticDemo; 2 | 3 | public class Product { 4 | 5 | int id; 6 | String name; 7 | double price; 8 | 9 | } 10 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/src/Classes/CustomerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.2/src/Classes/CustomerManager.java -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/src/classesWithAttribute/Main.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.2/src/classesWithAttribute/Main.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Concrete/CampaignManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day4/Day4.3/src/Concrete/CampaignManager.java -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/business/abstrasts/EmailService.java: -------------------------------------------------------------------------------- 1 | package business.abstrasts; 2 | 3 | public interface EmailService { 4 | 5 | int emailSend(); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /inheritance1/src/inheritance1/SendikaCustomer.java: -------------------------------------------------------------------------------- 1 | package inheritance1; 2 | 3 | public class SendikaCustomer extends Customer { 4 | 5 | String sendikabiseyi; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /interfacesDemo/src/interfacesDemo/MySqlCustomerDal.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfacesDemo/src/interfacesDemo/MySqlCustomerDal.java -------------------------------------------------------------------------------- /interfacesDemo2/src/interfacesDemo2/OutsourceWorker.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/interfacesDemo2/src/interfacesDemo2/OutsourceWorker.java -------------------------------------------------------------------------------- /absrtractDemo/src/absrtractDemo/MySqlDatabaseManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/absrtractDemo/src/absrtractDemo/MySqlDatabaseManager.java -------------------------------------------------------------------------------- /abstractClasses/src/abstractClasses/ManGameCalculator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/abstractClasses/src/abstractClasses/ManGameCalculator.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/core/LoggerService.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.core; 2 | 3 | public interface LoggerService { 4 | 5 | void logToSystem(String message); 6 | 7 | } 8 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/jLogger/JLoggerManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/nLayeredDemo/src/nLayeredDemo/jLogger/JLoggerManager.java -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/src/classesWithAttribute/Product.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.2/src/classesWithAttribute/Product.java -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Concrete/FakeCheckUserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day4/Day4.3/src/Concrete/FakeCheckUserService.java -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/business/concretes/AuthManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day5/Day5.1/src/business/concretes/AuthManager.java -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/business/concretes/UserManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day5/Day5.1/src/business/concretes/UserManager.java -------------------------------------------------------------------------------- /abstractClasses/src/abstractClasses/WomenGameCalculator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/abstractClasses/src/abstractClasses/WomenGameCalculator.java -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.2/src/Main.java: -------------------------------------------------------------------------------- 1 | 2 | public class Main { 3 | 4 | public static void main(String[] args) { 5 | 6 | 7 | 8 | 9 | 10 | 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /interfaces/src/interfaces/Logger.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public interface Logger { 4 | 5 | void log(String message) ; 6 | 7 | 8 | 9 | 10 | 11 | 12 | } 13 | -------------------------------------------------------------------------------- /overriding/src/overriding/OgretmenKrediManager.java: -------------------------------------------------------------------------------- 1 | package overriding; 2 | 3 | public class OgretmenKrediManager extends BaseKrediManager { 4 | 5 | 6 | 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/src/classesWithAttribute/ProductManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day2/day2.2/src/classesWithAttribute/ProductManager.java -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/dataAccess/abstracts/ProductDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/nLayeredDemo/src/nLayeredDemo/dataAccess/abstracts/ProductDao.java -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/dataAccess/concretes/InMemoryUserDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day5/Day5.1/src/dataAccess/concretes/InMemoryUserDao.java -------------------------------------------------------------------------------- /interfacesDemo2/src/interfacesDemo2/Main.java: -------------------------------------------------------------------------------- 1 | package interfacesDemo2; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | 7 | 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/business/concretes/ProductManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/nLayeredDemo/src/nLayeredDemo/business/concretes/ProductManager.java -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/core/googleRegisterAdapter/GoogleManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yilmazmusa/Java-React-Bootcamp/HEAD/HomeWorks/Day5/Day5.1/src/core/googleRegisterAdapter/GoogleManager.java -------------------------------------------------------------------------------- /inheritanceDemo/src/inheritanceDemo/KrediUI.java: -------------------------------------------------------------------------------- 1 | package inheritanceDemo; 2 | 3 | public class KrediUI { 4 | 5 | public void KrediHesapla() { 6 | 7 | 8 | 9 | } 10 | 11 | 12 | } 13 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.1/src/inheritance/Main.java: -------------------------------------------------------------------------------- 1 | package inheritance; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | 7 | 8 | 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Adapters/PersonCheckService.java: -------------------------------------------------------------------------------- 1 | package Adapters; 2 | 3 | import Entities.Player; 4 | 5 | public interface PersonCheckService { 6 | 7 | boolean validation(Player player); 8 | } 9 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/Main.java: -------------------------------------------------------------------------------- 1 | 2 | public class Main { 3 | 4 | public static void main(String[] args) { 5 | 6 | System.out.println("Hello World "); 7 | 8 | 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Concrete/NeroCustomerManager.java: -------------------------------------------------------------------------------- 1 | package Concrete; 2 | 3 | import Abstract.BaseCustomerManager; 4 | 5 | public class NeroCustomerManager extends BaseCustomerManager { 6 | 7 | 8 | } 9 | -------------------------------------------------------------------------------- /absrtractDemo/src/absrtractDemo/BaseDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package absrtractDemo; 2 | 3 | public abstract class BaseDatabaseManager { 4 | 5 | public abstract void getData(); { 6 | 7 | 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/Logger.java: -------------------------------------------------------------------------------- 1 | package inheritance2; 2 | 3 | public class Logger { 4 | 5 | public void log() { 6 | 7 | System.out.println("Ortak Konfigirasyon"); 8 | 9 | 10 | 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Absrtact/SaleService.java: -------------------------------------------------------------------------------- 1 | package Absrtact; 2 | 3 | import Entities.Game; 4 | import Entities.Player; 5 | 6 | public interface SaleService { 7 | 8 | void saleGame(Player player,Game game); 9 | 10 | } 11 | -------------------------------------------------------------------------------- /abstractClasses/src/abstractClasses/KidsGameCalculator.java: -------------------------------------------------------------------------------- 1 | package abstractClasses; 2 | 3 | public class KidsGameCalculator extends GameCalculator { 4 | 5 | @Override 6 | public void hesapla() { 7 | 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /overriding/src/overriding/BaseKrediManager.java: -------------------------------------------------------------------------------- 1 | package overriding; 2 | 3 | public class BaseKrediManager { 4 | 5 | public double hesapla (double tutar) { 6 | 7 | return tutar*1.18; 8 | 9 | 10 | } 11 | 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /polymorphism/src/polymorphism/BaseLoger.java: -------------------------------------------------------------------------------- 1 | package polymorphism; 2 | 3 | public class BaseLoger { 4 | 5 | public void logg(String message ) { 6 | 7 | System.out.println("Default Logger :" + message ); 8 | 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /hrms/.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 | -------------------------------------------------------------------------------- /oopIntro/src/oopIntro/ProductManager.java: -------------------------------------------------------------------------------- 1 | package oopIntro; 2 | 3 | public class ProductManager { 4 | 5 | public void addToCart(Product product) { 6 | 7 | System.out.println("Sepete Eklendi : " + product.getName() ); 8 | } 9 | 10 | 11 | } 12 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Absrtact/GameService.java: -------------------------------------------------------------------------------- 1 | package Absrtact; 2 | 3 | import Entities.Game; 4 | 5 | public interface GameService { 6 | 7 | void add(Game game); 8 | 9 | void update(Game game); 10 | 11 | void delete(Game game); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/business/abstrasts/AuthService.java: -------------------------------------------------------------------------------- 1 | package business.abstrasts; 2 | 3 | import entities.concretes.User; 4 | 5 | public interface AuthService { 6 | 7 | boolean login(User user); 8 | 9 | boolean validate(User user); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /polymorphism/src/polymorphism/EmailLogger.java: -------------------------------------------------------------------------------- 1 | package polymorphism; 2 | 3 | public class EmailLogger extends BaseLoger { 4 | 5 | public void logg(String message ) { 6 | 7 | System.out.println("Logged to email :" + message ); 8 | 9 | 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /abstractClasses/src/abstractClasses/OlderGameCalculator.java: -------------------------------------------------------------------------------- 1 | package abstractClasses; 2 | 3 | public class OlderGameCalculator extends GameCalculator { 4 | 5 | @Override 6 | public void hesapla() { 7 | // TODO Auto-generated method stub 8 | 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /inheritance/src/inheritance/Main.java: -------------------------------------------------------------------------------- 1 | package inheritance; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | 7 | Customer customer=new Customer(); 8 | Employee employee=new Employee(); 9 | 10 | 11 | 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /northwind/northwind/.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 | -------------------------------------------------------------------------------- /polymorphism/src/polymorphism/FileLogger.java: -------------------------------------------------------------------------------- 1 | package polymorphism; 2 | 3 | public class FileLogger extends BaseLoger { 4 | 5 | public void logg(String message ) { 6 | 7 | System.out.println("Logged to file :" + message ); 8 | 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /interfaces/src/interfaces/Utils.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public class Utils { 4 | 5 | public static void runLoggers(Logger[] loggers, String message) { 6 | 7 | for (Logger logger : loggers) { 8 | 9 | logger.log(message); 10 | 11 | } 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Absrtact/PlayerService.java: -------------------------------------------------------------------------------- 1 | package Absrtact; 2 | 3 | import Entities.Player; 4 | 5 | public interface PlayerService { 6 | 7 | void add(Player player); 8 | 9 | void update(Player player); 10 | 11 | void delete(Player player); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /absrtractDemo/src/absrtractDemo/CustomerManager.java: -------------------------------------------------------------------------------- 1 | package absrtractDemo; 2 | 3 | public class CustomerManager { 4 | 5 | BaseDatabaseManager databaseManager; 6 | 7 | 8 | public void getCustomers() { 9 | 10 | databaseManager.getData(); 11 | 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /inheritance2/src/inheritance2/LogManager.java: -------------------------------------------------------------------------------- 1 | package inheritance2; 2 | 3 | public class LogManager { 4 | 5 | 6 | public void log() { 7 | 8 | 9 | 10 | 11 | 12 | } 13 | 14 | } 15 | 16 | 17 | //1-DataBase loglama 18 | //2.-Dosya loglama 19 | //3.-Email loglama -------------------------------------------------------------------------------- /polymorphism/src/polymorphism/DatabaseLogger.java: -------------------------------------------------------------------------------- 1 | package polymorphism; 2 | 3 | public class DatabaseLogger extends BaseLoger { 4 | 5 | public void Logg(String message ) { 6 | 7 | System.out.println("Logged to database :" + message ); 8 | 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /interfacesDemo/src/interfacesDemo/OracleCustomerDal.java: -------------------------------------------------------------------------------- 1 | package interfacesDemo; 2 | 3 | public class OracleCustomerDal implements ICustomerDal { 4 | 5 | @Override 6 | public void Add() { 7 | 8 | System.out.println("Oracle eklendi"); 9 | 10 | } 11 | 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /polymorphism/src/polymorphism/ConsoleLogger.java: -------------------------------------------------------------------------------- 1 | package polymorphism; 2 | 3 | public class ConsoleLogger extends BaseLoger { 4 | 5 | public void logg(String message ) { 6 | 7 | System.out.println("Logged to email :" + message ); 8 | 9 | 10 | } 11 | 12 | 13 | } 14 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/utilities/adapter/UserValidationService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.utilities.adapter; 2 | 3 | 4 | 5 | public interface UserValidationService { 6 | 7 | void sendLink(String email); 8 | String sendCode(); 9 | 10 | 11 | 12 | 13 | } 14 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Abstract/CustomerService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import java.rmi.RemoteException; 4 | 5 | import Entities.Customer; 6 | 7 | public interface CustomerService { 8 | 9 | void save(Customer customer)throws NumberFormatException, RemoteException; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Absrtact/CampainService.java: -------------------------------------------------------------------------------- 1 | package Absrtact; 2 | 3 | import Entities.Campaing; 4 | 5 | public interface CampainService { 6 | 7 | void add(Campaing campaing); 8 | 9 | void update(Campaing campaing); 10 | 11 | void delete(Campaing campaing); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /absrtractDemo/src/absrtractDemo/OracleDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package absrtractDemo; 2 | 3 | public class OracleDatabaseManager extends BaseDatabaseManager { 4 | 5 | @Override 6 | public void getData() { 7 | 8 | System.out.println("Veri getirildi: Oracle"); 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/business/abstracts/CategoryService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.business.abstracts; 2 | 3 | import kodlamaio.northwind.entities.concretes.Category; 4 | 5 | public interface CategoryService { 6 | 7 | boolean addCategory(Category category); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /absrtractDemo/src/absrtractDemo/SqlServerDatabaseManager.java: -------------------------------------------------------------------------------- 1 | package absrtractDemo; 2 | 3 | public class SqlServerDatabaseManager extends BaseDatabaseManager { 4 | 5 | @Override 6 | public void getData() { 7 | 8 | System.out.println("Veri getirildi: Sql Server"); 9 | 10 | } 11 | 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /hrms/src/test/java/kodlamaio/hrms/HrmsApplicationTests.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.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 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Abstract/CustomerCheckService.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import java.rmi.RemoteException; 4 | 5 | import Entities.Customer; 6 | 7 | public interface CustomerCheckService { 8 | 9 | boolean checkIfRealPerson(Customer customer)throws NumberFormatException, RemoteException ; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/business/abstracts/ProductService.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import nLayeredDemo.entities.concretes.Product; 6 | 7 | public interface ProductService { 8 | 9 | void add(Product product); 10 | List getAll(); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/utilities/results/ErrorResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.utilities.results; 2 | 3 | public class ErrorResult extends Result{ 4 | 5 | 6 | public ErrorResult() { 7 | super(false); 8 | } 9 | 10 | public ErrorResult(String message) { 11 | super(false,message); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /absrtractDemo/src/absrtractDemo/Main.java: -------------------------------------------------------------------------------- 1 | package absrtractDemo; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | 7 | CustomerManager customerManager= new CustomerManager(); 8 | customerManager.databaseManager= new MySqlDatabaseManager(); 9 | customerManager.getCustomers(); 10 | 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublic.java=UTF-8 3 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicLocator.java=UTF-8 4 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java=UTF-8 5 | encoding//src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapStub.java=UTF-8 6 | -------------------------------------------------------------------------------- /northwind/northwind/src/test/java/kodlamaio/northwind/NorthwindApplicationTests.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class NorthwindApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /abstractClasses/src/abstractClasses/GameCalculator.java: -------------------------------------------------------------------------------- 1 | package abstractClasses; 2 | 3 | public abstract class GameCalculator { 4 | 5 | public abstract void hesapla(); 6 | 7 | public void gameOver() { 8 | 9 | System.out.println("Oyun bitti.."); 10 | 11 | } 12 | 13 | 14 | 15 | 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/dataAcces/abstracts/CategoryDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.dataAcces.abstracts; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import kodlamaio.northwind.entities.concretes.Category; 6 | 7 | public interface CategoryDao extends JpaRepository { 8 | 9 | } 10 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/core/utilities/BusinessRules.java: -------------------------------------------------------------------------------- 1 | package core.utilities; 2 | 3 | public class BusinessRules { 4 | 5 | public static boolean Run (boolean ... logics ) { 6 | 7 | for(boolean logic:logics) { 8 | 9 | if(!logic) { 10 | 11 | return false; 12 | } 13 | 14 | 15 | } 16 | return true; 17 | 18 | 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/core/dataAccess/UserDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.core.dataAccess; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import kodlamaio.northwind.core.entities.User; 6 | 7 | public interface UserDao extends JpaRepository{ 8 | 9 | User findByEmail(String email); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Concrete/CustomerCheckManager.java: -------------------------------------------------------------------------------- 1 | package Concrete; 2 | 3 | import Abstract.CustomerCheckService; 4 | import Entities.Customer; 5 | 6 | public class CustomerCheckManager implements CustomerCheckService { 7 | 8 | @Override 9 | public boolean checkIfRealPerson(Customer customer) { 10 | 11 | return true; 12 | } 13 | 14 | 15 | 16 | } 17 | 18 | 19 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Entities/NewYearCampaing.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | public class NewYearCampaing extends Campaing { 4 | 5 | 6 | public NewYearCampaing() { 7 | 8 | super.setDiscount(50); 9 | 10 | 11 | } 12 | 13 | public NewYearCampaing(int id, String name, double discount) { 14 | 15 | super(id,name,discount); 16 | 17 | 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /interfacesDemo/src/interfacesDemo/CustomerManager.java: -------------------------------------------------------------------------------- 1 | package interfacesDemo; 2 | 3 | public class CustomerManager { 4 | 5 | private ICustomerDal customerDal; 6 | 7 | public CustomerManager(ICustomerDal customerDal) { 8 | 9 | this.customerDal=customerDal; 10 | 11 | 12 | } 13 | 14 | public void add() { 15 | 16 | customerDal.Add(); 17 | 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/core/JLoggerManagerAdapter.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.core; 2 | 3 | import nLayeredDemo.jLogger.JLoggerManager; 4 | 5 | public class JLoggerManagerAdapter implements LoggerService{ 6 | 7 | @Override 8 | public void logToSystem(String message) { 9 | 10 | JLoggerManager manager =new JLoggerManager(); 11 | manager.log(message); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.1/src/CourseManager.java: -------------------------------------------------------------------------------- 1 | 2 | public class CourseManager { 3 | 4 | public void addCourse(Course course) { 5 | 6 | System.out.println(course.name +course.detail+ " kursu eklendi."); 7 | 8 | } 9 | 10 | public void deleteCourse(Course course) { 11 | 12 | System.out.println(course.name +course.detail + " kursu silindi."); 13 | 14 | } 15 | 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/dataAccess/abstracts/UserDao.java: -------------------------------------------------------------------------------- 1 | package dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import entities.concretes.User; 6 | 7 | public interface UserDao { 8 | 9 | void add(User user); 10 | void update(User user); 11 | void delete(User user); 12 | 13 | User get(int id); 14 | List getAll(); 15 | User getEmail(String email ); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/CoverLetterForCvDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import kodlamaio.hrms.entities.concretes.CoverLetterForCv; 6 | 7 | public interface CoverLetterForCvDao extends JpaRepository{ 8 | 9 | CoverLetterForCv getById(int id); 10 | } 11 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/UserDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import kodlamaio.hrms.entities.concretes.User; 6 | 7 | public interface UserDao extends JpaRepository{ 8 | 9 | User findByEmail(String email); 10 | boolean existsByEmail(String eMail); 11 | 12 | } 13 | -------------------------------------------------------------------------------- /hrms/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=123456 7 | spring.jpa.properties.javax.persistence.validation.mode = none 8 | 9 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/VerificationCodeDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import kodlamaio.hrms.entities.concretes.VerificationCode; 6 | 7 | public interface VerificationCodeDao extends JpaRepository { 8 | 9 | 10 | VerificationCode getById(int id); 11 | } 12 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/business/abstrasts/UserService.java: -------------------------------------------------------------------------------- 1 | package business.abstrasts; 2 | 3 | import java.util.List; 4 | 5 | import entities.concretes.User; 6 | 7 | public interface UserService { 8 | 9 | void add(User user); 10 | void update(User user); 11 | void delete(User user); 12 | User get(int id); 13 | List getAll(); 14 | 15 | void userVerify(User user, int verificationcode); 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/signUpWithGoogle/Register.java: -------------------------------------------------------------------------------- 1 | package signUpWithGoogle; 2 | 3 | public class Register { 4 | 5 | public boolean register(int id,String firstName,String lastName,String email,String password) { 6 | 7 | if (firstName.length()>2 && lastName.length()>2&&email.length()>=6&&password.length()>=6) { 8 | return true; 9 | } 10 | return false; 11 | } 12 | 13 | 14 | 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /northwind/northwind/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/Northwind 5 | spring.datasource.username=postgres 6 | spring.datasource.password=123456 7 | spring.jpa.properties.javax.persistence.validation.mode = none 8 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/ImageForCvDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import kodlamaio.hrms.entities.concretes.ImageForCv; 6 | 7 | public interface ImageForCvDao extends JpaRepository { 8 | 9 | 10 | ImageForCv getById(int id); 11 | ImageForCv getByJobSeeker_id(int id); 12 | } 13 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/EmailVerificationService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import kodlamaio.hrms.core.utilities.results.Result; 4 | import kodlamaio.hrms.entities.concretes.VerificationCode; 5 | 6 | public interface EmailVerificationService { 7 | 8 | void generateCode(VerificationCode code, Integer id); 9 | Result verify(String verificationCode, Integer id); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /intro/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/imageUpload/ImageUploadService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.imageUpload; 2 | 3 | import java.util.Map; 4 | 5 | import org.springframework.web.multipart.MultipartFile; 6 | 7 | import kodlamaio.hrms.core.utilities.results.DataResult; 8 | 9 | public interface ImageUploadService { 10 | 11 | @SuppressWarnings("rawtypes") 12 | DataResult uploadImageFile(MultipartFile imageFile); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /interfaces/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /oopIntro/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /overriding/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /staticDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /absrtractDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /abstractClasses/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/utilities/results/SuccessResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.utilities.results; 2 | 3 | public class SuccessResult extends Result { 4 | 5 | public SuccessResult() { 6 | super(true); 7 | // TODO Auto-generated constructor stub 8 | } 9 | 10 | public SuccessResult( String message) { 11 | super(true, message); 12 | // TODO Auto-generated constructor stub 13 | } 14 | 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /inheritance/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /inheritance1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /inheritance2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /inheritanceDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /interfacesDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /interfacesDemo2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /nLayeredDemo/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /polymorphism/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /intro/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | intro 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | HomeWorks 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Day1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day3/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Day3 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/JobPositionDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import kodlamaio.hrms.entities.concretes.JobPosition; 8 | 9 | public interface JobPositionDao extends JpaRepository { 10 | 11 | List findAllByJobPosition(String jobPosition); 12 | 13 | } 14 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/LinkForCvDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import kodlamaio.hrms.entities.concretes.LinkForCv; 8 | 9 | public interface LinkForCvDao extends JpaRepository{ 10 | 11 | LinkForCv getById(int id); 12 | List getAllByJobSeeker_id(int id); 13 | } -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/entities/dtos/ProductWithCategoryDto.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.entities.dtos; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class ProductWithCategoryDto { 11 | 12 | private int id; 13 | private String productName; 14 | private String categoryName; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /oopIntro/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | oopIntro 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Adapters/MernisServiceAdapter.java: -------------------------------------------------------------------------------- 1 | package Adapters; 2 | 3 | import java.rmi.RemoteException; 4 | 5 | import Abstract.CustomerCheckService; 6 | import Entities.Customer; 7 | 8 | public class MernisServiceAdapter implements CustomerCheckService{ 9 | 10 | @Override 11 | public boolean checkIfRealPerson(Customer customer)throws NumberFormatException, RemoteException { 12 | 13 | return true; 14 | } 15 | 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /inheritance/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | inheritance 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /inheritance1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | inheritance1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /inheritance2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | inheritance2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /interfaces/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | interfaces 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /nLayeredDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | nLayeredDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /overriding/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | overriding 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /polymorphism/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | polymorphism 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /staticDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | staticDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day1.1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day1.2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day1.3 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day2.1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day2.2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day3.1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | day3.2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Day4.1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Day4.3 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Day5.1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /absrtractDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | absrtractDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/SkillForCvDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import kodlamaio.hrms.entities.concretes.SkillForCv; 8 | 9 | public interface SkillForCvDao extends JpaRepository{ 10 | 11 | SkillForCv getById(int id); 12 | List getAllByJobSeeker_id(int id); 13 | } 14 | -------------------------------------------------------------------------------- /interfacesDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | interfacesDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /abstractClasses/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | abstractClasses 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /inheritanceDemo/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | inheritanceDemo 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /interfacesDemo2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | interfacesDemo2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/core/utilities/results/ErrorResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.core.utilities.results; 2 | 3 | public class ErrorResult extends Result { 4 | 5 | public ErrorResult() { //işlem sonuucu başarısız ama başarısız mesaj vermiyor çünkü parametro yok 6 | 7 | super(false); 8 | 9 | } 10 | 11 | 12 | public ErrorResult(String message) { 13 | 14 | super(false,message); 15 | 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/CityDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import kodlamaio.hrms.entities.concretes.City; 8 | 9 | public interface CityDao extends JpaRepository { 10 | 11 | boolean existsById(int id); 12 | List findAllByName(String cityName); 13 | boolean getById(int id); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/business/abstracts/UserService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.business.abstracts; 2 | 3 | import kodlamaio.northwind.core.entities.User; 4 | import kodlamaio.northwind.core.utilities.results.DataResult; 5 | import kodlamaio.northwind.core.utilities.results.Result; 6 | 7 | 8 | 9 | public interface UserService { 10 | 11 | Result add(User user); 12 | 13 | DataResult findByEmail(String email); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Abstract/BaseCustomerManager.java: -------------------------------------------------------------------------------- 1 | package Abstract; 2 | 3 | import java.rmi.RemoteException; 4 | 5 | import Entities.Customer; 6 | 7 | public class BaseCustomerManager implements CustomerService { 8 | 9 | @Override 10 | public void save(Customer customer) throws NumberFormatException, RemoteException { 11 | 12 | System.out.println("Save to db : " + customer.getFistName() +" "+customer.getLastName()); 13 | 14 | } 15 | 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/UserService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.User; 8 | 9 | public interface UserService { 10 | 11 | Result add(User user); 12 | DataResult> getAll(); 13 | Boolean existsByeMail(String eMail); 14 | 15 | 16 | } 17 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoap.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublicSoap.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public interface KPSPublicSoap extends java.rmi.Remote { 11 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException; 12 | } 13 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/core/utilities/results/SuccesResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.core.utilities.results; 2 | 3 | public class SuccesResult extends Result { 4 | 5 | public SuccesResult() { //işlem sonuucu başarılı ama mesaj vermiyor çünkü parametro yok 6 | 7 | super(true); 8 | 9 | } 10 | 11 | public SuccesResult(String message) { // burda işlem başarılı ve mesaj dönecek 12 | 13 | super(true,message); 14 | 15 | 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/CityService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | 4 | import java.util.List; 5 | 6 | import kodlamaio.hrms.core.utilities.results.DataResult; 7 | import kodlamaio.hrms.core.utilities.results.Result; 8 | import kodlamaio.hrms.entities.concretes.City; 9 | 10 | public interface CityService { 11 | 12 | DataResult> getAll(); 13 | 14 | Result add(City city); 15 | Result update(City city); 16 | Result delete(int cityId); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/utilities/results/DataResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.utilities.results; 2 | 3 | public class DataResult extends Result{ 4 | 5 | private T data; 6 | public DataResult(T data,boolean success, String message) { 7 | super(success, message); 8 | this.data = data; 9 | } 10 | 11 | public DataResult(T data,boolean success) { 12 | super(success); 13 | this.data = data; 14 | } 15 | 16 | public T getData() { 17 | return this.data; 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /HomeWorks/Day2/day2.2/src/Classes/DortIslem.java: -------------------------------------------------------------------------------- 1 | package Classes; 2 | 3 | public class DortIslem { 4 | 5 | public static int topla(int sayi1, int sayi2) { 6 | 7 | return sayi1+sayi2; 8 | } 9 | 10 | public static int cikar(int sayi1, int sayi2) { 11 | 12 | return sayi1-sayi2; 13 | 14 | } 15 | 16 | public static int carp(int sayi1, int sayi2) { 17 | 18 | return sayi1*sayi2; 19 | 20 | } 21 | 22 | public static int bol(int sayi1, int sayi2) { 23 | 24 | return sayi1/sayi2; 25 | 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Day4.2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jem.workbench.JavaEMFNature 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/business/concretes/EmailManager.java: -------------------------------------------------------------------------------- 1 | package business.concretes; 2 | 3 | import java.util.Random; 4 | 5 | import business.abstrasts.EmailService; 6 | 7 | public class EmailManager implements EmailService{ 8 | 9 | int verificationcode; 10 | 11 | public EmailManager() { 12 | Random code= new Random(); 13 | 14 | this.verificationcode=code.nextInt(1000)*10; 15 | 16 | } 17 | 18 | @Override 19 | public int emailSend() { 20 | 21 | return this.verificationcode; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/LanguageForCvDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import kodlamaio.hrms.entities.concretes.LanguageForCv; 8 | 9 | public interface LanguageForCvDao extends JpaRepository { 10 | 11 | LanguageForCv getById(int id); 12 | List getAllByJobSeeker_id(int id); 13 | List findAllByLanguage(String language); 14 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/EmployerService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.Employer; 8 | 9 | public interface EmployerService { 10 | 11 | DataResult> getAll(); 12 | 13 | Result add(Employer employer); 14 | Result update(Employer employer); 15 | Result delete(int id); 16 | 17 | } 18 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/utilities/results/ErrorDataResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.utilities.results; 2 | 3 | public class ErrorDataResult extends DataResult { 4 | 5 | public ErrorDataResult(T data, String message) { 6 | super(data, false , message); 7 | } 8 | 9 | public ErrorDataResult(T data) { 10 | super(data,false); 11 | } 12 | 13 | public ErrorDataResult(String message) { 14 | super(null, false , message); 15 | } 16 | 17 | public ErrorDataResult() { 18 | super(null, false); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /hrms/.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 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/JobPositionService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.JobPosition; 8 | 9 | 10 | public interface JobPositionService { 11 | 12 | DataResult> getAll(); 13 | 14 | Result add(JobPosition jobTitle); 15 | Result update(JobPosition jobTitle); 16 | Result delete(int id); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /northwind/northwind/.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 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/EducationForCvDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | 8 | import kodlamaio.hrms.entities.concretes.EducationForCv; 9 | 10 | public interface EducationForCvDao extends JpaRepository{ 11 | 12 | EducationForCv getById(int id); 13 | List getAllByJobSeeker_idOrderByGraduationYearDesc(int id); 14 | List getAllByJobSeeker_id(int id); 15 | } 16 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/ExperienceForCvDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import kodlamaio.hrms.entities.concretes.ExperienceForCv; 8 | 9 | public interface ExperienceForCvDao extends JpaRepository { 10 | 11 | ExperienceForCv getById(int id); 12 | List getAllByJobSeeker_idOrderByLeaveDateDesc(int id); 13 | List getAllByJobSeeker_id(int id); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/JobSeekerDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | import kodlamaio.hrms.entities.concretes.JobSeeker; 8 | 9 | public interface JobSeekerDao extends JpaRepository{ 10 | 11 | List findAllByEmail(String email); 12 | List findAllByNationalId(String nationalId); 13 | JobSeeker findJobseekerByNationalId(String nationalId); 14 | //JobSeeker getById(int id); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/utilities/results/Result.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.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 | 21 | public String getMessage() { 22 | return this.message; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/dtos/JobAdvertDto.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.dtos; 2 | 3 | import java.time.LocalDateTime; 4 | 5 | import lombok.AllArgsConstructor; 6 | import lombok.Data; 7 | import lombok.NoArgsConstructor; 8 | 9 | 10 | @Data 11 | @AllArgsConstructor 12 | @NoArgsConstructor 13 | public class JobAdvertDto { 14 | 15 | private int id; 16 | private String companyName; 17 | private String cityName; 18 | private String jobPosition; 19 | private int openPositionCount; 20 | private LocalDateTime publishedAt = LocalDateTime.now(); 21 | private LocalDateTime deadline; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/CoverLetterForCvService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.CoverLetterForCv; 8 | 9 | public interface CoverLetterForCvService { 10 | 11 | Result add(CoverLetterForCv coverLetterForCv); 12 | Result update(CoverLetterForCv coverLetterForCv); 13 | Result delete(int id); 14 | DataResult getById(int id); 15 | DataResult> getAll(); 16 | } -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/tr/gov/nvi/tckimlik/WS/KPSPublic.java: -------------------------------------------------------------------------------- 1 | /** 2 | * KPSPublic.java 3 | * 4 | * This file was auto-generated from WSDL 5 | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. 6 | */ 7 | 8 | package tr.gov.nvi.tckimlik.WS; 9 | 10 | public interface KPSPublic extends javax.xml.rpc.Service { 11 | public java.lang.String getKPSPublicSoapAddress(); 12 | 13 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() throws javax.xml.rpc.ServiceException; 14 | 15 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; 16 | } 17 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/services/FakeMernis.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.services; 2 | 3 | import java.util.regex.Matcher; 4 | import java.util.regex.Pattern; 5 | 6 | public class FakeMernis { 7 | 8 | public static boolean validate(String tcNo) { 9 | 10 | String regex = "^[0-9]+$"; 11 | Pattern pattern = Pattern.compile(regex); 12 | Matcher matcher = pattern.matcher(tcNo); 13 | 14 | if(tcNo.length() > 11) { 15 | return false; 16 | } 17 | 18 | else if(matcher.matches() && !tcNo.startsWith("0")) { 19 | return true; 20 | } 21 | 22 | 23 | 24 | else { 25 | return false; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /oopIntro/src/oopIntro/Category.java: -------------------------------------------------------------------------------- 1 | package oopIntro; 2 | 3 | public class Category { 4 | 5 | 6 | private int id; 7 | private String name; 8 | 9 | 10 | public Category() { 11 | 12 | 13 | 14 | } 15 | 16 | 17 | public Category(int id, String name) { 18 | 19 | this.id = id; 20 | this.name = name; 21 | } 22 | 23 | public int getId() { 24 | return id; 25 | } 26 | 27 | public void setId(int id) { 28 | this.id = id; 29 | } 30 | 31 | 32 | 33 | 34 | public String getName() { 35 | return name + "!!"; 36 | } 37 | 38 | public void setName(String name) { 39 | this.name = name; 40 | } 41 | 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/LinkForCvService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.LinkForCv; 8 | 9 | public interface LinkForCvService { 10 | 11 | 12 | Result add(LinkForCv linkForCv); 13 | Result update(LinkForCv linkForCv); 14 | Result delete(int id); 15 | 16 | 17 | 18 | DataResult> getAll(); 19 | DataResult getById(int id); 20 | DataResult> getAllByJobSeekerId(int id); 21 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/SkillForCvService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | 6 | import kodlamaio.hrms.core.utilities.results.DataResult; 7 | import kodlamaio.hrms.core.utilities.results.Result; 8 | import kodlamaio.hrms.entities.concretes.SkillForCv; 9 | 10 | public interface SkillForCvService { 11 | 12 | Result add(SkillForCv skillForCv); 13 | Result delete(int id); 14 | Result update(SkillForCv skillForCv); 15 | 16 | 17 | DataResult getById(int id); 18 | DataResult> getAll(); 19 | DataResult> getAllByJobSeekerId(int id); 20 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/VerificationCodeService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.VerificationCode; 8 | 9 | public interface VerificationCodeService { 10 | 11 | 12 | Result add(VerificationCode code); 13 | //Result delete(VerificationCode code); 14 | //Result update(VerificationCode code); 15 | 16 | //DataResult getById(int id); 17 | //DataResult> getAll(); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/LanguageForCvService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.LanguageForCv; 8 | 9 | public interface LanguageForCvService { 10 | 11 | Result add(LanguageForCv languageForCv); 12 | Result update(LanguageForCv languageForCv); 13 | Result delete(int id); 14 | 15 | DataResult getById(int id); 16 | DataResult> getAll(); 17 | DataResult>getAllByJobSeekerId(int id); 18 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/utilities/results/SuccessDataResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.utilities.results; 2 | 3 | public class SuccessDataResult extends DataResult{ 4 | 5 | public SuccessDataResult(T data, String message) { 6 | super(data, true, message); 7 | // TODO Auto-generated constructor stub 8 | } 9 | 10 | public SuccessDataResult(T data) { 11 | super(data, true); 12 | // TODO Auto-generated constructor stub 13 | } 14 | public SuccessDataResult(String message) { 15 | super(null,true, message); 16 | // TODO Auto-generated constructor stub 17 | } 18 | public SuccessDataResult() { 19 | super(null,true); 20 | // TODO Auto-generated constructor stub 21 | } 22 | } -------------------------------------------------------------------------------- /nLayeredDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.8 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.release=disabled 12 | org.eclipse.jdt.core.compiler.source=1.8 13 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/core/utilities/results/ErrorDataResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.core.utilities.results; 2 | 3 | public class ErrorDataResult extends DataResult{ 4 | 5 | public ErrorDataResult(T data, String message) { 6 | super(data, false, message); 7 | 8 | 9 | } 10 | 11 | public ErrorDataResult (T data) { //data ve sonuç bilgisi dönderiyor 12 | 13 | super(data,false); 14 | 15 | } 16 | 17 | public ErrorDataResult(String message) { // sonuç ve mesaj bilgisi dönderiyor 18 | 19 | super(null,false,message); 20 | } 21 | 22 | public ErrorDataResult() { //sadece sonuc bilgisi dönderiyor 23 | 24 | super(null,false); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/core/utilities/results/SuccesDataResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.core.utilities.results; 2 | 3 | public class SuccesDataResult extends DataResult{ 4 | 5 | public SuccesDataResult(T data, String message) { 6 | super(data, true, message); 7 | 8 | 9 | } 10 | 11 | public SuccesDataResult (T data) { //data ve sonuç bilgisi dönderiyor 12 | 13 | super(data,true); 14 | 15 | } 16 | 17 | public SuccesDataResult(String message) { // sonuç ve mesaj bilgisi dönderiyor 18 | 19 | super(null,true,message); 20 | } 21 | 22 | public SuccesDataResult() { //sadece sonuc bilgisi dönderiyor 23 | 24 | super(null,true); 25 | } 26 | 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/ImageForCvService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.web.multipart.MultipartFile; 6 | 7 | import kodlamaio.hrms.core.utilities.results.DataResult; 8 | import kodlamaio.hrms.core.utilities.results.Result; 9 | import kodlamaio.hrms.entities.concretes.ImageForCv; 10 | 11 | public interface ImageForCvService { 12 | 13 | Result add(ImageForCv jobSeekerImage,MultipartFile imageFile); 14 | Result update(ImageForCv imageForCv); 15 | Result delete(int id); 16 | 17 | DataResult getById(int id); 18 | DataResult> getAll(); 19 | DataResult getByJobSeekerId(int id); 20 | 21 | } -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/business/concretes/CategoryManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.business.concretes; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | 6 | import kodlamaio.northwind.business.abstracts.CategoryService; 7 | import kodlamaio.northwind.dataAcces.abstracts.CategoryDao; 8 | import kodlamaio.northwind.entities.concretes.Category; 9 | 10 | @Service 11 | public class CategoryManager implements CategoryService{ 12 | 13 | @Autowired 14 | private CategoryDao categoryDao; 15 | @Override 16 | public boolean addCategory(Category category) { 17 | this.categoryDao.save(category); 18 | return true; 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/EducationForCvService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.EducationForCv; 8 | 9 | public interface EducationForCvService { 10 | 11 | Result add(EducationForCv educationForCv); 12 | Result update(EducationForCv educationForCv); 13 | Result delete(int id); 14 | 15 | DataResult> getAll(); 16 | DataResultgetById(int id); 17 | DataResult> getByJobSeekerIdOrderByGraduationYearDesc(int id); 18 | DataResult> getAllByJobSeekerId(int id); 19 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/api/controllers/VerificationCodesController.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.api.controllers; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RestController; 6 | 7 | import kodlamaio.hrms.business.abstracts.VerificationCodeService; 8 | 9 | @RestController 10 | @RequestMapping("/api/verificationcodes/") 11 | public class VerificationCodesController { 12 | 13 | 14 | private VerificationCodeService verificationCodeService; 15 | 16 | @Autowired 17 | public VerificationCodesController (VerificationCodeService verificationCodeService) { 18 | this.verificationCodeService=verificationCodeService; 19 | } 20 | 21 | 22 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/JobSeekerService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.JobSeeker; 8 | import kodlamaio.hrms.entities.dtos.JobSeekerCvDto; 9 | 10 | public interface JobSeekerService { 11 | 12 | 13 | DataResult> getAll(); 14 | DataResult getById(int id); 15 | DataResult getJobseekerByNationalId(String nationalId); 16 | 17 | Result add(JobSeeker jobseeker); 18 | Result update(JobSeeker jobseeker); 19 | Result delete(int id); 20 | 21 | DataResult getJobseekerCVById(int id); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/ExperienceForCvService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.ExperienceForCv; 8 | 9 | public interface ExperienceForCvService { 10 | 11 | 12 | Result add(ExperienceForCv experienceForCv); 13 | Result update(ExperienceForCv experienceForCv); 14 | Result delete(int id); 15 | 16 | DataResult getById(int id); 17 | DataResult> getAll(); 18 | DataResult> getAllByJobSeekerIdOrderByLeaveDateDesc(int id); 19 | DataResult> getAllByJobSeekerId(int id); 20 | } -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/src/Instructor.java: -------------------------------------------------------------------------------- 1 | 2 | public class Instructor extends User { 3 | 4 | 5 | private double salary; 6 | private int experience; 7 | 8 | 9 | public Instructor(int id, String firstName, String lastName, int age, 10 | String email, String password,double salary,int experience) { 11 | super(id, firstName, lastName, age, email, password); 12 | 13 | this.salary=salary; 14 | this.experience=experience; 15 | 16 | } 17 | 18 | 19 | public double getSalary() { 20 | return salary; 21 | } 22 | 23 | 24 | public void setSalary(double salary) { 25 | this.salary = salary; 26 | } 27 | 28 | 29 | public int getExperience() { 30 | return experience; 31 | } 32 | 33 | 34 | public void setExperience(int experience) { 35 | this.experience = experience; 36 | } 37 | 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /HomeWorks/Day1/day1.3/src/miniProjeAsalSayi/Main.java: -------------------------------------------------------------------------------- 1 | package miniProjeAsalSayi; 2 | 3 | public class Main { 4 | 5 | public static void main(String[] args) { 6 | 7 | int sayi = 1; 8 | int remainder = sayi % 2; 9 | System.out.println(remainder); 10 | 11 | boolean isPrime = true; 12 | 13 | if (sayi < 1) { 14 | 15 | System.out.println("Gecersiz Deger"); 16 | return; 17 | 18 | } 19 | 20 | if (sayi == 1) { 21 | 22 | System.out.println("Sayi asal degildir"); 23 | return; 24 | } 25 | 26 | for (int i = 2; i < sayi; i++) { 27 | 28 | if (sayi % i == 0) { 29 | isPrime = false; 30 | 31 | } 32 | 33 | } 34 | 35 | if (isPrime) { 36 | 37 | System.out.println(sayi + " asaldir"); 38 | 39 | } 40 | 41 | else { 42 | 43 | System.out.println(sayi + " asal degildir"); 44 | } 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /intro/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /oopIntro/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /absrtractDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /inheritance/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /inheritance1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /inheritance2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /interfaces/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /overriding/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /polymorphism/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /staticDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /abstractClasses/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /inheritanceDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /interfacesDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /interfacesDemo2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=15 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=15 15 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Entities/Campaing.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | import Absrtact.Entity; 4 | 5 | public class Campaing implements Entity { 6 | 7 | int id; 8 | String name; 9 | double discount; 10 | 11 | public Campaing() { 12 | 13 | 14 | } 15 | 16 | public Campaing(int id, String name, double discount) { 17 | super(); 18 | this.id = id; 19 | this.name = name; 20 | this.discount = discount; 21 | } 22 | 23 | public int getId() { 24 | return id; 25 | } 26 | 27 | public void setId(int id) { 28 | this.id = id; 29 | } 30 | 31 | public String getName() { 32 | return name; 33 | } 34 | 35 | public void setName(String name) { 36 | this.name = name; 37 | } 38 | 39 | public double getDiscount() { 40 | return discount; 41 | } 42 | 43 | public void setDiscount(double discount) { 44 | this.discount = discount; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /interfaces/src/interfaces/Customer.java: -------------------------------------------------------------------------------- 1 | package interfaces; 2 | 3 | public class Customer { 4 | 5 | private int id; 6 | private String firstName; 7 | private String lastNme; 8 | 9 | public Customer() { 10 | 11 | 12 | } 13 | 14 | public Customer(int id, String firstName, String lastNme) { 15 | 16 | this.id = id; 17 | this.firstName = firstName; 18 | this.lastNme = lastNme; 19 | } 20 | 21 | public int getId() { 22 | return id; 23 | } 24 | 25 | public void setId(int id) { 26 | this.id = id; 27 | } 28 | 29 | public String getFirstName() { 30 | return firstName; 31 | } 32 | 33 | public void setFirstName(String firstName) { 34 | this.firstName = firstName; 35 | } 36 | 37 | public String getLastNme() { 38 | return lastNme; 39 | } 40 | 41 | public void setLastNme(String lastNme) { 42 | this.lastNme = lastNme; 43 | } 44 | 45 | 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/SkillForCv.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.JoinColumn; 6 | import javax.persistence.ManyToOne; 7 | import javax.persistence.Table; 8 | import javax.validation.constraints.NotNull; 9 | 10 | import lombok.AllArgsConstructor; 11 | import lombok.Data; 12 | import lombok.EqualsAndHashCode; 13 | import lombok.NoArgsConstructor; 14 | 15 | @Data 16 | @EqualsAndHashCode(callSuper = false) 17 | @Entity 18 | @NoArgsConstructor 19 | @AllArgsConstructor 20 | @Table(name="cv_skills") 21 | public class SkillForCv extends Base { 22 | 23 | @Column(name="name") 24 | @NotNull(message="Name can not be null") 25 | private String name; 26 | 27 | @ManyToOne 28 | @JoinColumn(name="job_seeker_id") 29 | private JobSeeker jobSeeker; 30 | } 31 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Adapters/MernisAdaptor.java: -------------------------------------------------------------------------------- 1 | package Adapters; 2 | 3 | import java.rmi.RemoteException; 4 | 5 | import Abstract.CustomerCheckService; 6 | import Entities.Customer; 7 | import tr.gov.nvi.tckimlik.WS.KPSPublicSoap; 8 | import tr.gov.nvi.tckimlik.WS.KPSPublicSoapProxy; 9 | 10 | public class MernisAdaptor implements CustomerCheckService { 11 | @Override 12 | public boolean checkIfRealPerson(Customer customer) throws NumberFormatException, RemoteException { 13 | 14 | KPSPublicSoap client = new KPSPublicSoapProxy(); 15 | if (client.TCKimlikNoDogrula(Long.parseLong(customer.getNationalityId()), customer.getFistName().toUpperCase(), 16 | customer.getLastName().toUpperCase(), customer.getDateOfBirth())) { 17 | return true; 18 | 19 | } else { 20 | 21 | return false; 22 | } 23 | 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/Concrete/StarbucksCustomerManager.java: -------------------------------------------------------------------------------- 1 | package Concrete; 2 | 3 | import java.rmi.RemoteException; 4 | 5 | import Abstract.BaseCustomerManager; 6 | import Abstract.CustomerCheckService; 7 | import Entities.Customer; 8 | 9 | public class StarbucksCustomerManager extends BaseCustomerManager{ 10 | 11 | private CustomerCheckService customerCheckService; 12 | 13 | 14 | public StarbucksCustomerManager(CustomerCheckService customerCheckService) { 15 | super(); 16 | this.customerCheckService = customerCheckService; 17 | } 18 | 19 | 20 | @Override 21 | public void save(Customer customer) throws NumberFormatException, RemoteException { 22 | 23 | if(customerCheckService.checkIfRealPerson(customer)) { 24 | 25 | super.save(customer); 26 | 27 | } 28 | else { 29 | 30 | System.out.println("Not a valid person"); 31 | } 32 | 33 | 34 | } 35 | 36 | 37 | } 38 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/abstracts/JobAdvertService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.core.utilities.results.DataResult; 6 | import kodlamaio.hrms.core.utilities.results.Result; 7 | import kodlamaio.hrms.entities.concretes.JobAdvert; 8 | import kodlamaio.hrms.entities.dtos.JobAdvertDto; 9 | 10 | public interface JobAdvertService { 11 | 12 | 13 | DataResult> getAll(); 14 | 15 | Result add(JobAdvert jobAdvertisement); 16 | Result update(JobAdvert jobAdvertisement); 17 | Result delete(int jobAdvertisementId); 18 | 19 | DataResult> getByIsActiveTrueOrderByDeadlineAsc(); 20 | 21 | DataResult> getByisActiveTrueAndEmployerId(int id); 22 | 23 | DataResult> findAllByIsActiveTrue(); 24 | 25 | DataResult> getJobAdvertDetails(); 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/core/utilities/results/Result.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.core.utilities.results; 2 | 3 | public class Result { 4 | 5 | private boolean succes; 6 | private String message; 7 | 8 | 9 | public Result(boolean succes) { // burda sadece başarılı mı bilgisini dönüyoruz mesaaj bilgisini dönmüyoruz 10 | 11 | this.succes=succes; 12 | 13 | } 14 | 15 | public Result(boolean succes,String message) { // burda hem başarılı mı bilgisini hemde mesaj bilgisini dönüyoruz 16 | 17 | this(succes); 18 | this.message=message; 19 | 20 | } 21 | 22 | public boolean isSucces() { //burda getter oluşturduk,başarılı bilgisini dönecek,isSucces yerine getSucceste yazabilirdik 23 | 24 | return this.succes; 25 | } 26 | 27 | 28 | public String getMassage() { //burda getter oluşturduk,mesaj bilgisini dönecek 29 | 30 | return this.message; 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 12 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 13 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 14 | org.eclipse.jdt.core.compiler.release=enabled 15 | org.eclipse.jdt.core.compiler.source=1.8 16 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/dataAccess/concretes/AbcProductDao.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.dataAccess.concretes; 2 | 3 | import java.util.List; 4 | 5 | import nLayeredDemo.dataAccess.abstracts.ProductDao; 6 | import nLayeredDemo.entities.concretes.Product; 7 | 8 | public class AbcProductDao implements ProductDao{ 9 | 10 | @Override 11 | public void add(Product product) { 12 | System.out.println("Abc ile Eklendi: " + product.getName()); 13 | 14 | } 15 | 16 | @Override 17 | public void update(Product product) { 18 | // TODO Auto-generated method stub 19 | 20 | } 21 | 22 | @Override 23 | public void delete(Product product) { 24 | // TODO Auto-generated method stub 25 | 26 | } 27 | 28 | @Override 29 | public Product get(int id) { 30 | // TODO Auto-generated method stub 31 | return null; 32 | } 33 | 34 | @Override 35 | public List getAll() { 36 | // TODO Auto-generated method stub 37 | return null; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/utilities/adapter/UserValidationManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.utilities.adapter; 2 | 3 | import java.util.UUID; 4 | 5 | import org.springframework.stereotype.Service; 6 | 7 | 8 | @Service 9 | public class UserValidationManager implements UserValidationService{ 10 | 11 | @Override 12 | public void sendLink(String email) { 13 | 14 | UUID uuid = UUID.randomUUID(); 15 | String verificationLink = "https://hrmsverificationmail/" + uuid.toString(); 16 | System.out.println("Verification link has been sent to " + email ); 17 | System.out.println("Please click on the link to verify your account: " + verificationLink ); 18 | } 19 | 20 | @Override 21 | public String sendCode() { 22 | 23 | UUID uuid = UUID.randomUUID(); 24 | String verificationCode = uuid.toString(); 25 | System.out.println("Your activation code: " + verificationCode ); 26 | return verificationCode; 27 | } 28 | 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/LinkForCv.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.JoinColumn; 6 | import javax.persistence.ManyToOne; 7 | import javax.persistence.Table; 8 | import javax.validation.constraints.NotNull; 9 | 10 | import lombok.AllArgsConstructor; 11 | import lombok.Data; 12 | import lombok.EqualsAndHashCode; 13 | import lombok.NoArgsConstructor; 14 | 15 | @Data 16 | @EqualsAndHashCode(callSuper = false) 17 | @Entity 18 | @NoArgsConstructor 19 | @AllArgsConstructor 20 | @Table(name="cv_links") 21 | public class LinkForCv extends Base{ 22 | 23 | @Column(name = "name") 24 | @NotNull(message = "Name cannot be null") 25 | private String name; 26 | 27 | @Column(name = "url") 28 | @NotNull(message = "Url can not be null") 29 | private String url; 30 | 31 | @ManyToOne 32 | @JoinColumn(name = "jobseeker_id") 33 | private JobSeeker jobSeeker; 34 | } -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/dataAccess/concretes/HibernateProductDao.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.dataAccess.concretes; 2 | 3 | import java.util.List; 4 | 5 | import nLayeredDemo.dataAccess.abstracts.ProductDao; 6 | import nLayeredDemo.entities.concretes.Product; 7 | 8 | public class HibernateProductDao implements ProductDao { 9 | 10 | @Override 11 | public void add(Product product) { 12 | 13 | System.out.println("Hibernate ile Eklendi: " + product.getName()); 14 | 15 | } 16 | 17 | @Override 18 | public void update(Product product) { 19 | // TODO Auto-generated method stub 20 | 21 | } 22 | 23 | @Override 24 | public void delete(Product product) { 25 | // TODO Auto-generated method stub 26 | 27 | } 28 | 29 | @Override 30 | public Product get(int id) { 31 | // TODO Auto-generated method stub 32 | return null; 33 | } 34 | 35 | @Override 36 | public List getAll() { 37 | // TODO Auto-generated method stub 38 | return null; 39 | } 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/CoverLetterForCv.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.JoinColumn; 6 | import javax.persistence.ManyToOne; 7 | import javax.persistence.Table; 8 | 9 | import lombok.AllArgsConstructor; 10 | import lombok.Data; 11 | import lombok.EqualsAndHashCode; 12 | import lombok.NoArgsConstructor; 13 | 14 | @Data 15 | @EqualsAndHashCode(callSuper = false) 16 | @Entity 17 | @Table(name = "cv_cover_letters") 18 | @NoArgsConstructor 19 | @AllArgsConstructor 20 | public class CoverLetterForCv extends Base{ 21 | 22 | @Column(name = "content") 23 | private String content; 24 | 25 | public CoverLetterForCv(String content, int jobseekerId) { 26 | super(); 27 | this.content = content; 28 | this.jobSeeker.setId(jobseekerId); 29 | } 30 | 31 | //@JsonIgnore 32 | @ManyToOne 33 | @JoinColumn(name = "jobseeker_id") 34 | private JobSeeker jobSeeker; 35 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/EmployerDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | 4 | 5 | import java.util.List; 6 | 7 | import org.springframework.data.jpa.repository.JpaRepository; 8 | import org.springframework.data.jpa.repository.Modifying; 9 | import org.springframework.data.jpa.repository.Query; 10 | import org.springframework.stereotype.Repository; 11 | import org.springframework.transaction.annotation.Transactional; 12 | 13 | import kodlamaio.hrms.entities.concretes.Employer; 14 | 15 | @Repository 16 | public interface EmployerDao extends JpaRepository{ 17 | 18 | @Modifying 19 | @Transactional 20 | @Query("update Employer e set e.email=:mail, e.password=:password, e.companyName=:companyName, e.webSite=:webSite, e.phone=:phone where e.id=:id") 21 | void updateEmployer(String mail, String password, String companyName, String webSite, String phone, int id); 22 | 23 | List findAllByEmail(String email); 24 | boolean getById(int id); 25 | } 26 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/dtos/JobSeekerCvDto.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.dtos; 2 | 3 | import java.util.List; 4 | 5 | import kodlamaio.hrms.entities.concretes.EducationForCv; 6 | import kodlamaio.hrms.entities.concretes.ExperienceForCv; 7 | import kodlamaio.hrms.entities.concretes.ImageForCv; 8 | import kodlamaio.hrms.entities.concretes.JobSeeker; 9 | import kodlamaio.hrms.entities.concretes.LanguageForCv; 10 | import kodlamaio.hrms.entities.concretes.LinkForCv; 11 | import kodlamaio.hrms.entities.concretes.SkillForCv; 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | @Data 17 | @AllArgsConstructor 18 | @NoArgsConstructor 19 | public class JobSeekerCvDto { 20 | 21 | public JobSeeker jobSeeker; 22 | public List educations; 23 | public List skills; 24 | public List links; 25 | public List languages; 26 | public List experiences; 27 | public ImageForCv image; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/core/utilities/results/DataResult.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.core.utilities.results; 2 | 3 | public class DataResult extends Result { //Burda data döndereceğimiz için datanın tipi her şey olabilir o yüzde şeklinde yaptık 4 | 5 | private T data; 6 | 7 | public DataResult(T data, boolean succes, String message) { 8 | super(succes, message); // super sayesinde base sınıftan(Result) boolean succes, String message bilgileri set ediliyo biz sadece T data bilgisini set etmemiz gerekiyo 9 | this.data=data; 10 | } 11 | 12 | public DataResult(T data, boolean succes) { // burda message bilgisi dönmedik.data ve sonuc bilgisi döndük 13 | 14 | super(succes); // super sayesinde base sınıftan(Result) boolean succes bilgisi ediliyo biz sadece T data bilgisini set etmemiz gerekiyo 15 | this.data=data; 16 | } 17 | 18 | public T getData() { //Datanın tipi her şey olabilir o yüzden T belirledik. 19 | 20 | return this.data; 21 | 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/dataAccess/abstracts/JobAdvertDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.dataAccess.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.jpa.repository.Query; 7 | 8 | import kodlamaio.hrms.entities.concretes.JobAdvert; 9 | import kodlamaio.hrms.entities.dtos.JobAdvertDto; 10 | 11 | public interface JobAdvertDao extends JpaRepository { 12 | 13 | 14 | List getByIsActiveTrueOrderByDeadlineAsc(); 15 | 16 | List findAllByIsActiveTrue(); 17 | 18 | List getByIsActiveTrueAndEmployer_Id(int id); 19 | 20 | @Query("Select new kodlamaio.hrms.entities.dtos.JobAdvertDto(j.id,p.jobPosition,c.name,e.companyName,j.openPositionCount,j.publishedAt,j.deadline) " 21 | + "From JobAdvert j " 22 | + "Inner Join j.employer e " 23 | + "Inner Join j.jobPosition p " 24 | + "Inner Join j.city c") 25 | 26 | List getJobAdvertDetails(); 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/core/entities/User.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.core.entities; 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.Table; 9 | import javax.validation.constraints.Email; 10 | import javax.validation.constraints.NotBlank; 11 | import javax.validation.constraints.NotNull; 12 | 13 | import lombok.AllArgsConstructor; 14 | import lombok.Data; 15 | import lombok.NoArgsConstructor; 16 | 17 | 18 | @Entity 19 | @Data 20 | @AllArgsConstructor 21 | @NoArgsConstructor 22 | @Table(name="users") 23 | public class User { 24 | 25 | @Id 26 | @GeneratedValue(strategy = GenerationType.IDENTITY) 27 | @Column(name="id") 28 | private int id; 29 | 30 | @Column(name="email") 31 | @Email 32 | @NotBlank 33 | @NotNull 34 | private String email; 35 | 36 | @Column(name="password") 37 | @NotBlank 38 | @NotNull 39 | private String password; 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/HrmsApplication.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Bean; 6 | 7 | import springfox.documentation.builders.RequestHandlerSelectors; 8 | import springfox.documentation.spi.DocumentationType; 9 | import springfox.documentation.spring.web.plugins.Docket; 10 | import springfox.documentation.swagger2.annotations.EnableSwagger2; 11 | 12 | @EnableSwagger2 13 | @SpringBootApplication 14 | public class HrmsApplication { 15 | 16 | public static void main(String[] args) { 17 | SpringApplication.run(HrmsApplication.class, args); 18 | } 19 | 20 | @Bean 21 | public Docket api() { 22 | return new Docket(DocumentationType.SWAGGER_2) 23 | .select() 24 | .apis(RequestHandlerSelectors.basePackage("kodlamaio.hrms")) 25 | .build(); 26 | } 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/concretes/VerificationCodeManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.concretes; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | 6 | import kodlamaio.hrms.business.abstracts.VerificationCodeService; 7 | import kodlamaio.hrms.core.utilities.results.Result; 8 | import kodlamaio.hrms.core.utilities.results.SuccessResult; 9 | import kodlamaio.hrms.dataAccess.abstracts.VerificationCodeDao; 10 | import kodlamaio.hrms.entities.concretes.VerificationCode; 11 | 12 | 13 | @Service 14 | public class VerificationCodeManager implements VerificationCodeService{ 15 | 16 | private VerificationCodeDao verificationCodeDao; 17 | 18 | @Autowired 19 | public VerificationCodeManager(VerificationCodeDao verificationCodeDao) { 20 | super(); 21 | this.verificationCodeDao = verificationCodeDao; 22 | } 23 | 24 | @Override 25 | public Result add(VerificationCode code) { 26 | this.verificationCodeDao.save(code); 27 | return new SuccessResult("Code has been saved."); 28 | } 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/Base.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import java.time.LocalDate; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.GeneratedValue; 7 | import javax.persistence.GenerationType; 8 | import javax.persistence.Id; 9 | import javax.persistence.MappedSuperclass; 10 | 11 | import com.fasterxml.jackson.annotation.JsonIgnore; 12 | 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | @MappedSuperclass 17 | @Data 18 | @NoArgsConstructor 19 | public class Base { 20 | 21 | @Id 22 | @GeneratedValue(strategy = GenerationType.IDENTITY) 23 | @Column(name = "id") 24 | private int id; 25 | 26 | @JsonIgnore 27 | @Column(name = "created_at", columnDefinition = "Date default CURRENT_DATE") 28 | private LocalDate createdAt = LocalDate.now(); 29 | 30 | @JsonIgnore 31 | @Column(name = "is_active", columnDefinition = "boolean default true") 32 | private boolean isActive = true; 33 | 34 | @JsonIgnore 35 | @Column(name = "is_deleted", columnDefinition = "boolean default false") 36 | private boolean isDeleted = false; 37 | } 38 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/ImageForCv.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import java.time.LocalDateTime; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.JoinColumn; 8 | import javax.persistence.OneToOne; 9 | import javax.persistence.Table; 10 | import javax.validation.constraints.NotNull; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.EqualsAndHashCode; 15 | import lombok.NoArgsConstructor; 16 | 17 | @Data 18 | @EqualsAndHashCode(callSuper=false) 19 | @Entity 20 | @NoArgsConstructor 21 | @AllArgsConstructor 22 | @Table(name = "cv_images") 23 | public class ImageForCv extends Base{ 24 | 25 | @Column(name = "url") 26 | @NotNull(message="Url can not be null") 27 | private String url; 28 | 29 | @Column(name = "uploaded_at" , columnDefinition = "Date default CURRENT_DATE") 30 | private LocalDateTime uploadedAt; 31 | 32 | //@JsonIgnore() 33 | @OneToOne() 34 | @JoinColumn(name = "jobseeker_id",referencedColumnName="user_id") 35 | private JobSeeker jobSeeker; 36 | 37 | } 38 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/LanguageForCv.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.JoinColumn; 6 | import javax.persistence.ManyToOne; 7 | import javax.persistence.Table; 8 | import javax.validation.constraints.Max; 9 | import javax.validation.constraints.Min; 10 | import javax.validation.constraints.NotNull; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.EqualsAndHashCode; 15 | import lombok.NoArgsConstructor; 16 | 17 | @Data 18 | @EqualsAndHashCode(callSuper = false) 19 | @Entity 20 | @NoArgsConstructor 21 | @AllArgsConstructor 22 | @Table(name = "cv_foreign_languages") 23 | public class LanguageForCv extends Base { 24 | 25 | 26 | @Column(name = "language") 27 | @NotNull(message="Language can not be null") 28 | private String language; 29 | 30 | @Column(name = "level") 31 | @Min(1) 32 | @Max(5) 33 | @NotNull(message="Level can not be null") 34 | private short level; 35 | 36 | //@JsonIgnore() 37 | @ManyToOne() 38 | @JoinColumn(name = "jobseeker_id") 39 | private JobSeeker jobSeeker; 40 | } -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/NorthwindApplication.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.annotation.Bean; 6 | 7 | import springfox.documentation.builders.RequestHandlerSelectors; 8 | import springfox.documentation.spi.DocumentationType; 9 | import springfox.documentation.spring.web.plugins.Docket; 10 | import springfox.documentation.swagger2.annotations.EnableSwagger2; 11 | 12 | @SpringBootApplication 13 | @EnableSwagger2 14 | public class NorthwindApplication { 15 | 16 | 17 | public static void main(String[] args) { 18 | SpringApplication.run(NorthwindApplication.class, args); 19 | } 20 | 21 | @Bean 22 | public Docket api() { 23 | return new Docket(DocumentationType.SWAGGER_2).select() 24 | .apis(RequestHandlerSelectors.basePackage("kodlamaio.northwind")) // kodlamaio yu gez ordaki 25 | // RequestHandler leri bul(yani 26 | // apileri) bul onları 27 | // dökümantasyona ekle 28 | .build(); 29 | } 30 | 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/Employee.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import javax.persistence.Column; 4 | import javax.persistence.Entity; 5 | import javax.persistence.PrimaryKeyJoinColumn; 6 | import javax.persistence.Table; 7 | import javax.validation.constraints.NotBlank; 8 | import javax.validation.constraints.NotNull; 9 | import javax.validation.constraints.Size; 10 | 11 | import lombok.AllArgsConstructor; 12 | import lombok.Data; 13 | import lombok.EqualsAndHashCode; 14 | import lombok.NoArgsConstructor; 15 | 16 | @Data 17 | @EqualsAndHashCode(callSuper = false) 18 | @Entity 19 | @NoArgsConstructor 20 | @AllArgsConstructor 21 | @PrimaryKeyJoinColumn(name = "user_id") 22 | @Table(name="employees") 23 | public class Employee extends User{ 24 | 25 | @Column(name = "first_name") 26 | @NotNull(message="firstname cannot be null") 27 | @NotBlank 28 | @Size(min=2,max=25,message="FirstName must be between 2 and 25 characters") 29 | private String firstName; 30 | 31 | @Column(name = "last_name") 32 | @NotNull(message="LastName cannot be null") 33 | @NotBlank 34 | @Size(min=2,max=25,message="FirstName must be between 2 and 25 characters") 35 | private String lastName; 36 | } -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/business/concretes/UserManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.business.concretes; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | 6 | import kodlamaio.northwind.business.abstracts.UserService; 7 | import kodlamaio.northwind.core.dataAccess.UserDao; 8 | import kodlamaio.northwind.core.entities.User; 9 | import kodlamaio.northwind.core.utilities.results.DataResult; 10 | import kodlamaio.northwind.core.utilities.results.Result; 11 | import kodlamaio.northwind.core.utilities.results.SuccesDataResult; 12 | import kodlamaio.northwind.core.utilities.results.SuccesResult; 13 | 14 | @Service 15 | public class UserManager implements UserService { 16 | 17 | private UserDao userDao; 18 | 19 | @Autowired 20 | public UserManager(UserDao userDao) { 21 | super(); 22 | this.userDao = userDao; 23 | } 24 | 25 | 26 | @Override 27 | public Result add(User user) { 28 | 29 | this.userDao.save(user); 30 | return new SuccesResult("Kullanıcı Eklendi"); 31 | } 32 | 33 | @Override 34 | public DataResult findByEmail(String email) { 35 | 36 | return new SuccesDataResult(this.userDao.findByEmail(email),"Kullanıcı Bulundu"); 37 | 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/City.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.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 | import javax.validation.constraints.NotBlank; 13 | import javax.validation.constraints.NotNull; 14 | 15 | import com.fasterxml.jackson.annotation.JsonIgnore; 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 | @AllArgsConstructor 25 | @NoArgsConstructor 26 | @Table(name="cities") 27 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","jobAdverts"}) 28 | public class City { 29 | 30 | @Id 31 | @GeneratedValue(strategy = GenerationType.IDENTITY) 32 | @Column(name="id") 33 | private int id; 34 | 35 | @Column(name="name") 36 | @NotBlank 37 | @NotNull(message="CityName cannot be null") 38 | private String name; 39 | 40 | 41 | @JsonIgnore 42 | @OneToMany(mappedBy = "city") 43 | private List jobAdverts; 44 | } 45 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/EducationForCv.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import java.time.LocalDate; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.JoinColumn; 8 | import javax.persistence.ManyToOne; 9 | import javax.persistence.Table; 10 | import javax.validation.constraints.NotNull; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.EqualsAndHashCode; 15 | import lombok.NoArgsConstructor; 16 | 17 | @Data 18 | @EqualsAndHashCode(callSuper = false) 19 | @Entity 20 | @NoArgsConstructor 21 | @AllArgsConstructor 22 | @Table(name="cv_schools") 23 | public class EducationForCv extends Base{ 24 | 25 | @Column(name = "school_name") 26 | @NotNull(message="SchoolName can not be null") 27 | private String schoolName; 28 | 29 | @Column(name = "department_name") 30 | @NotNull(message="DepartmentName can not be null") 31 | private String departmentName; 32 | 33 | @Column(name = "start_year") 34 | @NotNull(message="StartYear can not be null") 35 | private LocalDate startYear; 36 | 37 | @Column(name = "graduation_year",nullable=true) 38 | private LocalDate graduationYear; 39 | 40 | //@JsonIgnore() 41 | @ManyToOne() 42 | @JoinColumn(name = "jobseeker_id") 43 | private JobSeeker jobSeeker; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/VerificationCode.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import java.time.LocalDateTime; 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.Table; 11 | 12 | import lombok.AllArgsConstructor; 13 | import lombok.Data; 14 | import lombok.NoArgsConstructor; 15 | 16 | @Data 17 | @Entity 18 | @Table(name="verification_codes") 19 | @NoArgsConstructor 20 | @AllArgsConstructor 21 | public class VerificationCode { 22 | 23 | @Id 24 | @GeneratedValue(strategy = GenerationType.IDENTITY) 25 | @Column(name="id") 26 | private int id; 27 | 28 | @Column(name="user_id") 29 | private int userId; 30 | 31 | @Column(name="code") 32 | private String code; 33 | 34 | @Column(name="is_confirmed") 35 | private boolean isConfirmed; 36 | 37 | @Column(name="created_at", columnDefinition = "Date default CURRENT_DATE") 38 | private LocalDateTime createAt = LocalDateTime.now(); 39 | 40 | public VerificationCode(int userId, String code, boolean isConfirmed, LocalDateTime createAt) { 41 | super(); 42 | this.userId = userId; 43 | this.code = code; 44 | this.isConfirmed = isConfirmed; 45 | this.createAt = createAt; 46 | } 47 | } -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/entities/concretes/Category.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.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.OneToMany; 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 | @AllArgsConstructor 22 | @NoArgsConstructor 23 | @Table(name="categories") 24 | @Entity 25 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","products"}) 26 | public class Category { 27 | 28 | @Id 29 | @GeneratedValue(strategy = GenerationType.IDENTITY) 30 | @Column(name="category_id") 31 | private int categoryId; 32 | 33 | 34 | @Column(name="category_name") 35 | private String categoryName; 36 | 37 | 38 | 39 | /*@JoinColumn(name="category_id") 40 | @OneToMany(targetEntity = Product.class)*/ 41 | @OneToMany(mappedBy = "category") //mappedby category ile productsı category_id üzerinden join ediyor yani ilişkilendiriyor 42 | private List products; 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/concretes/UserManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.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 kodlamaio.hrms.business.abstracts.UserService; 9 | import kodlamaio.hrms.business.constants.Messages; 10 | import kodlamaio.hrms.core.utilities.results.DataResult; 11 | import kodlamaio.hrms.core.utilities.results.Result; 12 | import kodlamaio.hrms.core.utilities.results.SuccessDataResult; 13 | import kodlamaio.hrms.core.utilities.results.SuccessResult; 14 | import kodlamaio.hrms.dataAccess.abstracts.UserDao; 15 | import kodlamaio.hrms.entities.concretes.User; 16 | 17 | @Service 18 | public class UserManager implements UserService { 19 | 20 | private UserDao userDao; 21 | 22 | @Autowired 23 | public UserManager(UserDao userDao) { 24 | 25 | this.userDao=userDao; 26 | 27 | } 28 | 29 | @Override 30 | public Result add(User user) { 31 | this.userDao.save(user); 32 | return new SuccessResult(); 33 | } 34 | 35 | @Override 36 | public DataResult> getAll() { 37 | 38 | return new SuccessDataResult>(this.userDao.findAll(),Messages.listedUsers); 39 | } 40 | 41 | @Override 42 | public Boolean existsByeMail(String eMail) { 43 | 44 | return this.userDao.existsByEmail(eMail); 45 | 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /HomeWorks/Day5/Day5.1/src/entities/concretes/User.java: -------------------------------------------------------------------------------- 1 | package entities.concretes; 2 | 3 | import entities.abstracts.Entity; 4 | 5 | public class User implements Entity { 6 | 7 | private int id; 8 | private String firstName; 9 | private String latsName; 10 | private String email; 11 | private String password; 12 | 13 | public User() { 14 | 15 | 16 | 17 | } 18 | 19 | public User(int id, String firstName, String latsName, String email, String password) { 20 | super(); 21 | this.id = id; 22 | this.firstName = firstName; 23 | this.latsName = latsName; 24 | this.email = email; 25 | this.password = password; 26 | } 27 | 28 | public int getId() { 29 | return id; 30 | } 31 | 32 | public void setId(int id) { 33 | this.id = id; 34 | } 35 | 36 | public String getFirstName() { 37 | return firstName; 38 | } 39 | 40 | public void setFirstName(String firstName) { 41 | this.firstName = firstName; 42 | } 43 | 44 | public String getLatsName() { 45 | return latsName; 46 | } 47 | 48 | public void setLatsName(String latsName) { 49 | this.latsName = latsName; 50 | } 51 | 52 | public String getEmail() { 53 | return email; 54 | } 55 | 56 | public void setEmail(String email) { 57 | this.email = email; 58 | } 59 | 60 | public String getPassword() { 61 | return password; 62 | } 63 | 64 | public void setPassword(String password) { 65 | this.password = password; 66 | } 67 | 68 | 69 | } 70 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/business/abstracts/ProductService.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.business.abstracts; 2 | 3 | import java.util.List; 4 | 5 | 6 | 7 | import kodlamaio.northwind.core.utilities.results.DataResult; 8 | import kodlamaio.northwind.core.utilities.results.Result; 9 | import kodlamaio.northwind.entities.concretes.Product; 10 | import kodlamaio.northwind.entities.dtos.ProductWithCategoryDto; 11 | 12 | public interface ProductService { 13 | 14 | DataResult> getAll(); 15 | DataResult> getAllSorted(); //datayı bana istediğim şarta göre sıralasın 16 | DataResult> getAll(int pageNo, int pageSize); 17 | 18 | Result add(Product product); 19 | 20 | DataResult getByProductName(String productName); 21 | 22 | DataResult getByProductNameAndCategoryId(String productName,int categoryId); 23 | 24 | DataResult> getByProductNameOrCategoryId(String productName,int categoryId); 25 | 26 | DataResult> getByCategoryIdIn(List categories); 27 | 28 | DataResult> getByProductNameContains(String productName); 29 | 30 | DataResult> getByProductNameStartsWith(String productName); 31 | 32 | 33 | 34 | DataResult> getByNameAndCategory(String productName,int categoryId); 35 | 36 | DataResult> getProductWithCategoryDetails(); 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/core/imageUpload/ImageUploadManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.core.imageUpload; 2 | 3 | import java.io.IOException; 4 | import java.util.Map; 5 | 6 | import org.springframework.stereotype.Service; 7 | import org.springframework.web.multipart.MultipartFile; 8 | 9 | import com.cloudinary.Cloudinary; 10 | import com.cloudinary.utils.ObjectUtils; 11 | 12 | import kodlamaio.hrms.core.utilities.results.DataResult; 13 | import kodlamaio.hrms.core.utilities.results.ErrorDataResult; 14 | import kodlamaio.hrms.core.utilities.results.SuccessDataResult; 15 | 16 | @Service 17 | public final class ImageUploadManager implements ImageUploadService { 18 | 19 | private Cloudinary cloudinary; 20 | 21 | public ImageUploadManager() { 22 | 23 | this.cloudinary = new Cloudinary(ObjectUtils.asMap( 24 | "cloud_name", "ktu", 25 | "api_key", "423195178737626", 26 | "api_secret", "D3xC8y-f_ABgrkF-m_e695XyhEQ")); 27 | } 28 | 29 | @SuppressWarnings("rawtypes") 30 | @Override 31 | public DataResult uploadImageFile(MultipartFile imageFile) { 32 | try { 33 | @SuppressWarnings("unchecked") 34 | Map resultMap =(Map) cloudinary.uploader().upload(imageFile.getBytes(), ObjectUtils.emptyMap()); 35 | return new SuccessDataResult(resultMap); 36 | } catch (IOException e) { 37 | // TODO Auto-generated catch block 38 | e.printStackTrace(); 39 | 40 | } 41 | return new ErrorDataResult(); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Entities/Player.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | public class Player { 4 | 5 | private int id; 6 | private String name; 7 | private String lastName; 8 | private String nationalityId; 9 | private String dateOfBird; 10 | 11 | 12 | public Player() { 13 | 14 | 15 | } 16 | 17 | 18 | public Player(int id, String name, String lastName, String nationalityId, String dateOfBird) { 19 | super(); 20 | this.id = id; 21 | this.name = name; 22 | this.lastName = lastName; 23 | this.nationalityId = nationalityId; 24 | this.dateOfBird = dateOfBird; 25 | } 26 | 27 | 28 | public int getId() { 29 | return id; 30 | } 31 | 32 | 33 | public void setId(int id) { 34 | this.id = id; 35 | } 36 | 37 | 38 | public String getName() { 39 | return name; 40 | } 41 | 42 | 43 | public void setName(String name) { 44 | this.name = name; 45 | } 46 | 47 | 48 | public String getLastName() { 49 | return lastName; 50 | } 51 | 52 | 53 | public void setLastName(String lastName) { 54 | this.lastName = lastName; 55 | } 56 | 57 | 58 | public String getNationalityId() { 59 | return nationalityId; 60 | } 61 | 62 | 63 | public void setNationalityId(String nationalityId) { 64 | this.nationalityId = nationalityId; 65 | } 66 | 67 | 68 | public String getDateOfBird() { 69 | return dateOfBird; 70 | } 71 | 72 | 73 | public void setDateOfBird(String dateOfBird) { 74 | this.dateOfBird = dateOfBird; 75 | } 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | } 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /nLayeredDemo/src/nLayeredDemo/entities/concretes/Product.java: -------------------------------------------------------------------------------- 1 | package nLayeredDemo.entities.concretes; 2 | 3 | import nLayeredDemo.entities.abstracts.Entity; 4 | 5 | public class Product implements Entity{ 6 | 7 | private int id; 8 | private int categoryId; 9 | private String name; 10 | private double unitPrice; 11 | private int unitInStock; 12 | 13 | public Product() { 14 | 15 | 16 | } 17 | 18 | public Product(int id, int categoryId, String name, double unitPrice, int unitInStock) { 19 | super(); 20 | this.id = id; 21 | this.categoryId = categoryId; 22 | this.name = name; 23 | this.unitPrice = unitPrice; 24 | this.unitInStock = unitInStock; 25 | } 26 | 27 | public int getId() { 28 | return id; 29 | } 30 | 31 | public void setId(int id) { 32 | this.id = id; 33 | } 34 | 35 | public int getCategoryId() { 36 | return categoryId; 37 | } 38 | 39 | public void setCategoryId(int categoryId) { 40 | this.categoryId = categoryId; 41 | } 42 | 43 | public String getName() { 44 | return name; 45 | } 46 | 47 | public void setName(String name) { 48 | this.name = name; 49 | } 50 | 51 | public double getUnitPrice() { 52 | return unitPrice; 53 | } 54 | 55 | public void setUnitPrice(double unitPrice) { 56 | this.unitPrice = unitPrice; 57 | } 58 | 59 | public int getUnitInStock() { 60 | return unitInStock; 61 | } 62 | 63 | public void setUnitInStock(int unitInStock) { 64 | this.unitInStock = unitInStock; 65 | } 66 | 67 | 68 | 69 | 70 | } 71 | 72 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/src/Student.java: -------------------------------------------------------------------------------- 1 | 2 | public class Student extends User{ 3 | 4 | 5 | private String studentNumber; 6 | private String department; 7 | private String university; 8 | private String toComment; 9 | 10 | 11 | 12 | public Student(int id, String firstName, String lastName, int age,String email, 13 | String password,String studentNumber,String department,String university,String toComment) { 14 | 15 | super(id, firstName, lastName, age, email, password); 16 | this.studentNumber=studentNumber; 17 | this.department=department; 18 | this.university=university; 19 | this.toComment=toComment; 20 | } 21 | 22 | 23 | 24 | 25 | public String getStudentNumber() { 26 | return studentNumber; 27 | } 28 | 29 | 30 | public void setStudentNumber(String studentNumber) { 31 | this.studentNumber = studentNumber; 32 | } 33 | 34 | 35 | public String getDepartment() { 36 | return department; 37 | } 38 | 39 | 40 | public void setDepartment(String department) { 41 | this.department = department; 42 | } 43 | 44 | 45 | 46 | 47 | public String getUniversity() { 48 | return university; 49 | } 50 | 51 | 52 | 53 | 54 | public void setUniversity(String university) { 55 | this.university = university; 56 | } 57 | 58 | 59 | 60 | 61 | public String getToComment() { 62 | return toComment; 63 | } 64 | 65 | 66 | 67 | 68 | public void setToComment(String toComment) { 69 | this.toComment = toComment; 70 | } 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | } 80 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.3/src/Entities/Game.java: -------------------------------------------------------------------------------- 1 | package Entities; 2 | 3 | public class Game { 4 | 5 | private int id; 6 | private String name; 7 | private String category; 8 | private double price; 9 | Campaing campaing; 10 | 11 | 12 | public Game() { 13 | 14 | 15 | } 16 | 17 | public Game(int id, String name, String category, double price,Campaing campaing) { 18 | super(); 19 | this.id = id; 20 | this.name = name; 21 | this.category = category; 22 | this.price = price; 23 | this.campaing=campaing; 24 | 25 | } 26 | 27 | public Game(int id, String name, String category, double price) { 28 | super(); 29 | this.id = id; 30 | this.name = name; 31 | this.category = category; 32 | this.price = price; 33 | } 34 | 35 | 36 | public int getId() { 37 | 38 | return id; 39 | } 40 | 41 | public void setId(int id) { 42 | this.id = id; 43 | } 44 | 45 | public String getName() { 46 | return name; 47 | } 48 | 49 | public void setName(String name) { 50 | this.name = name; 51 | } 52 | 53 | public String getCategory() { 54 | return category; 55 | } 56 | 57 | public void setCategory(String category) { 58 | this.category = category; 59 | } 60 | 61 | public double getPrice() { 62 | return price; 63 | } 64 | 65 | public void setPrice(double price) { 66 | this.price = price; 67 | } 68 | 69 | public Campaing getCampaing() { 70 | return campaing; 71 | } 72 | 73 | public void setCampaing(Campaing campaing) { 74 | this.campaing = campaing; 75 | } 76 | 77 | 78 | 79 | 80 | 81 | 82 | } 83 | -------------------------------------------------------------------------------- /HomeWorks/Day3/day3.2/src/User.java: -------------------------------------------------------------------------------- 1 | 2 | public class User { 3 | 4 | private int id; 5 | private String firstName; 6 | private String lastName; 7 | private int age; 8 | private String email; 9 | private String password; 10 | 11 | public User() { 12 | 13 | 14 | } 15 | 16 | public User(int id, String firstName, String lastName, int age, String email, String password) { 17 | super(); 18 | this.id = id; 19 | this.firstName = firstName; 20 | this.lastName = lastName; 21 | this.age = age; 22 | this.email = email; 23 | this.password = password; 24 | } 25 | 26 | public int getId() { 27 | return id; 28 | 29 | } 30 | public void setId(int id) { 31 | this.id = id; 32 | } 33 | 34 | 35 | public String getFirstName() { 36 | return firstName; 37 | 38 | } 39 | 40 | public void setFirstName(String firstName) { 41 | this.firstName = firstName; 42 | 43 | } 44 | 45 | 46 | public String getLastName() { 47 | return lastName; 48 | 49 | } 50 | 51 | public void setLastName(String lastName) { 52 | this.lastName = lastName; 53 | 54 | } 55 | 56 | 57 | public int getAge() { 58 | return age; 59 | 60 | } 61 | 62 | public void setAge(int age) { 63 | this.age = age; 64 | } 65 | 66 | 67 | public String getEmail() { 68 | return email; 69 | } 70 | 71 | public void setEmail(String email) { 72 | this.email = email; 73 | 74 | } 75 | 76 | 77 | public String getPasword() { 78 | return password; 79 | 80 | } 81 | 82 | public void setPassword(String password) { 83 | this.password = password; 84 | 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/Employer.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import java.util.List; 4 | 5 | import javax.persistence.CascadeType; 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.OneToMany; 9 | import javax.persistence.Table; 10 | import javax.validation.constraints.NotBlank; 11 | import javax.validation.constraints.NotNull; 12 | 13 | import com.fasterxml.jackson.annotation.JsonIgnore; 14 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 15 | 16 | 17 | import lombok.Data; 18 | import lombok.EqualsAndHashCode; 19 | 20 | @Entity 21 | @Data 22 | @Table(name="employers") 23 | @EqualsAndHashCode(callSuper = false) 24 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","jobPostings"}) 25 | public class Employer extends User { 26 | 27 | 28 | 29 | @NotBlank 30 | @NotNull(message="CompanyName can not be null") 31 | @Column(name="company_name") 32 | private String companyName; 33 | 34 | @NotBlank 35 | @NotNull(message="WebAddress cannot be null") 36 | @Column(name="web_address") 37 | private String webSite; 38 | 39 | @NotBlank 40 | @NotNull(message="Phone cannot be null") 41 | @Column(name="phone") 42 | private String phone; 43 | 44 | 45 | @Column(name="mail_is_verified", columnDefinition = "boolean default false") 46 | private boolean mailIsVerified=false; 47 | 48 | @Column(name="mng_is_verified",columnDefinition = "boolean default false") 49 | private boolean MngIsVerified; 50 | 51 | 52 | 53 | @JsonIgnore 54 | @OneToMany(mappedBy = "employer") 55 | private List jobAdvertisement; 56 | 57 | } 58 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/dataAcces/abstracts/ProductDao.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.dataAcces.abstracts; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | import org.springframework.data.jpa.repository.Query; 7 | 8 | import kodlamaio.northwind.entities.concretes.Product; 9 | import kodlamaio.northwind.entities.dtos.ProductWithCategoryDto; 10 | 11 | public interface ProductDao extends JpaRepository{ 12 | 13 | Product getByProductName(String productName); 14 | 15 | Product getByProductNameAndCategory_CategoryId(String productName, int categoryId); 16 | 17 | List getByProductNameOrCategory_CategoryId(String productName, int categoryId); 18 | 19 | List getByCategoryIn(List categories); 20 | 21 | List getByProductNameContains(String productName); 22 | 23 | List getByProductNameStartsWith(String productName); 24 | 25 | @Query("From Product where productName=:productName and category.categoryId=:categoryId") 26 | List getByNameAndCategory_CategoryId(String productName, int categoryId); 27 | 28 | @Query("select new kodlamaio.northwind.entities.dtos.ProductWithCategoryDto(p.id, p.productName, c.categoryName) From Category c Inner Join c.products p") 29 | List getProductWithCategoryDetails(); 30 | 31 | //select p.productId,p.productName,c.categoryName from Category c inner join product p 32 | //on c.categoryId =p.categoryId 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | //select * from products where productName=bişey and categoryId=bişey 42 | 43 | 44 | } 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/ExperienceForCv.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import java.time.LocalDate; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.JoinColumn; 8 | import javax.persistence.ManyToOne; 9 | import javax.persistence.Table; 10 | import javax.validation.constraints.NotBlank; 11 | import javax.validation.constraints.NotNull; 12 | import javax.validation.constraints.Past; 13 | 14 | import com.fasterxml.jackson.annotation.JsonFormat; 15 | 16 | 17 | import lombok.AllArgsConstructor; 18 | import lombok.Data; 19 | import lombok.EqualsAndHashCode; 20 | import lombok.NoArgsConstructor; 21 | 22 | @Data 23 | @EqualsAndHashCode(callSuper = false) 24 | @Entity 25 | @NoArgsConstructor 26 | @AllArgsConstructor 27 | @Table(name = "cv_experiences") 28 | public class ExperienceForCv extends Base{ 29 | 30 | @Column(name = "workplace_name") 31 | @NotNull(message="Workplace can not be null") 32 | @NotBlank 33 | private String workplaceName; 34 | 35 | @Column(name = "position") 36 | @NotNull(message="Position can not be null") 37 | @NotBlank 38 | private String position; 39 | 40 | @Column(name = "start_date") 41 | @NotNull(message="StartDate can not be null") 42 | @Past 43 | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") 44 | private LocalDate startDate; 45 | 46 | @Column(name = "leave_date",nullable = true) 47 | @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd") 48 | private LocalDate leaveDate; 49 | 50 | 51 | //@JsonIgnore() 52 | @ManyToOne() 53 | @JoinColumn(name = "jobseeker_id") 54 | private JobSeeker jobSeeker; 55 | } 56 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/entities/concretes/Product.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.entities.concretes; 2 | 3 | 4 | import javax.persistence.Column; 5 | import javax.persistence.Entity; 6 | import javax.persistence.GeneratedValue; 7 | import javax.persistence.GenerationType; 8 | import javax.persistence.Id; 9 | import javax.persistence.JoinColumn; 10 | import javax.persistence.ManyToOne; 11 | import javax.persistence.Table; 12 | 13 | import org.hibernate.annotations.ManyToAny; 14 | 15 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 16 | 17 | import lombok.AllArgsConstructor; 18 | import lombok.Data; 19 | import lombok.NoArgsConstructor; 20 | 21 | @Entity 22 | @Table(name="products") // bu class veritabanında hangi tabloya denk geliyo onu belirtiyoruz 23 | @Data 24 | @AllArgsConstructor 25 | @NoArgsConstructor 26 | public class Product { 27 | 28 | @Id // İşlemlerini id ye göre yapacağı için sorgular bu id ye göre yapılandırılır 29 | @GeneratedValue(strategy = GenerationType.IDENTITY) // idyi+1 şeklinde artır her seferinde diyoruz 30 | @Column(name="product_id") // bu class veritabanında hangi kolona denk geliyo onu belirtiyoruz 31 | private int id; 32 | 33 | //@Column(name="category_id") 34 | //private int categoryId; 35 | 36 | @Column(name="product_name") 37 | private String productName; 38 | 39 | @Column(name="unit_price") 40 | private double unitPrice; 41 | 42 | @Column(name="units_in_stock") 43 | private short unitsInStock; 44 | 45 | @Column(name="quantity_per_unit") 46 | private String quantityPerUnit; 47 | 48 | @ManyToOne() 49 | @JoinColumn(name="category_id") 50 | private Category category ; 51 | 52 | } 53 | 54 | 55 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/JobPosition.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import java.time.LocalDateTime; 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.OneToMany; 12 | import javax.persistence.Table; 13 | import javax.validation.constraints.NotBlank; 14 | import javax.validation.constraints.NotNull; 15 | 16 | import com.fasterxml.jackson.annotation.JsonIgnore; 17 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 18 | 19 | import lombok.AllArgsConstructor; 20 | import lombok.Data; 21 | import lombok.NoArgsConstructor; 22 | 23 | @Data 24 | @Entity 25 | @Table(name="job_positions") 26 | @AllArgsConstructor 27 | @NoArgsConstructor 28 | @JsonIgnoreProperties({"hibernateLazyInitializer","handler","jobAdverts"}) 29 | public class JobPosition { 30 | 31 | @Id 32 | @GeneratedValue(strategy = GenerationType.IDENTITY) 33 | @Column(name="id") 34 | private int id; 35 | 36 | @Column(name="job_title") 37 | @NotNull(message="JobTitle can not be null") 38 | @NotBlank 39 | private String jobPosition; 40 | 41 | @JsonIgnore 42 | @Column(name= "created_at", columnDefinition = "Date default CURRENT_DATE") 43 | private LocalDateTime createdDate = LocalDateTime.now(); 44 | 45 | @Column(name= "is_active", columnDefinition = "boolean default true") 46 | private boolean isActive = true; 47 | 48 | @Column(name= "is_deleted", columnDefinition = "boolean default false") 49 | private boolean isDeleted = false; 50 | 51 | @JsonIgnore 52 | @OneToMany(mappedBy = "jobPosition") 53 | private List jobAdverts; 54 | 55 | 56 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/entities/concretes/User.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.entities.concretes; 2 | 3 | import java.time.LocalDateTime; 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.Inheritance; 11 | import javax.persistence.InheritanceType; 12 | import javax.persistence.Table; 13 | import javax.validation.constraints.Email; 14 | import javax.validation.constraints.NotBlank; 15 | import javax.validation.constraints.NotNull; 16 | import javax.validation.constraints.Size; 17 | 18 | import lombok.AllArgsConstructor; 19 | import lombok.Data; 20 | import lombok.NoArgsConstructor; 21 | 22 | @Entity 23 | @Data 24 | @AllArgsConstructor 25 | @NoArgsConstructor 26 | @Inheritance(strategy = InheritanceType.JOINED) 27 | @Table(name="users") 28 | 29 | 30 | public class User { 31 | 32 | @Id 33 | @GeneratedValue(strategy = GenerationType.IDENTITY) 34 | @Column(name="id") 35 | private int id; 36 | 37 | @Column(name="email") 38 | @Email 39 | @NotBlank 40 | @NotNull(message="Email can not be null") 41 | private String email; 42 | 43 | @Column(name="password") 44 | @NotBlank 45 | @NotNull(message="Password can not be null") 46 | @Size(min=6,message = "Şifre en az 6 karakter olucak") 47 | private String password; 48 | 49 | @Column(name= "created_at", columnDefinition = "Date default CURRENT_DATE") 50 | private LocalDateTime createdAt = LocalDateTime.now(); 51 | 52 | @Column(name= "is_active", columnDefinition = "boolean default true") 53 | private boolean isActive = true; 54 | 55 | @Column(name= "is_deleted", columnDefinition = "boolean default false") 56 | private boolean isDeleted = false; 57 | 58 | } 59 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/api/controllers/EmployersController.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.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 kodlamaio.hrms.business.abstracts.EmployerService; 13 | import kodlamaio.hrms.core.utilities.results.DataResult; 14 | import kodlamaio.hrms.core.utilities.results.Result; 15 | import kodlamaio.hrms.entities.concretes.Employer; 16 | 17 | @RestController 18 | @RequestMapping("/api/employers") 19 | public class EmployersController { 20 | 21 | private EmployerService employersService; 22 | 23 | @Autowired 24 | public EmployersController(EmployerService employersService) { 25 | this.employersService = employersService; 26 | } 27 | 28 | @PostMapping("/add") 29 | public Result add(@RequestBody Employer employer) { 30 | 31 | return this.employersService.add(employer); 32 | } 33 | 34 | @GetMapping("/getall") 35 | public DataResult> getAll() { 36 | 37 | return this.employersService.getAll(); 38 | } 39 | 40 | // @PostMapping("/update") 41 | // public Result update(String mail, String password, String companyName, String webSite, String phone, int id) { 42 | // 43 | // return this.employersService.updateEmployer(mail, password, companyName, webSite, phone, id); 44 | // } 45 | // 46 | // @PostMapping("/delete") 47 | // public Result delete(Employer employer) { 48 | // 49 | // return this.employersService.deleteEmployer(employer.getId()); 50 | // } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/concretes/SkillForCvManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.concretes; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.stereotype.Service; 6 | 7 | import kodlamaio.hrms.business.abstracts.SkillForCvService; 8 | import kodlamaio.hrms.core.utilities.results.DataResult; 9 | import kodlamaio.hrms.core.utilities.results.Result; 10 | import kodlamaio.hrms.core.utilities.results.SuccessDataResult; 11 | import kodlamaio.hrms.core.utilities.results.SuccessResult; 12 | import kodlamaio.hrms.dataAccess.abstracts.SkillForCvDao; 13 | import kodlamaio.hrms.entities.concretes.SkillForCv; 14 | 15 | @Service 16 | public class SkillForCvManager implements SkillForCvService{ 17 | 18 | private SkillForCvDao skillForCvDao; 19 | 20 | public SkillForCvManager(SkillForCvDao skillForCvDao) { 21 | super(); 22 | this.skillForCvDao = skillForCvDao; 23 | } 24 | 25 | @Override 26 | public Result add(SkillForCv skillForCv) { 27 | this.skillForCvDao.save(skillForCv); 28 | return new SuccessResult("Skill added"); 29 | } 30 | 31 | @Override 32 | public Result delete(int id) { 33 | this.skillForCvDao.deleteById(id); 34 | return new SuccessResult("Skill deleted"); 35 | } 36 | 37 | @Override 38 | public Result update(SkillForCv skillForCv) { 39 | this.skillForCvDao.save(skillForCv); 40 | return new SuccessResult("Skill updated"); 41 | } 42 | 43 | @Override 44 | public DataResult getById(int id) { 45 | return new SuccessDataResult(this.skillForCvDao.getById(id)); 46 | } 47 | 48 | @Override 49 | public DataResult> getAll() { 50 | return new SuccessDataResult>(this.skillForCvDao.findAll()); 51 | } 52 | 53 | @Override 54 | public DataResult> getAllByJobSeekerId(int id) { 55 | return new SuccessDataResult>(this.skillForCvDao.getAllByJobSeeker_id(id)); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/api/controllers/CitiesController.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.api.controllers; 2 | 3 | import java.util.List; 4 | 5 | import javax.validation.Valid; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.http.ResponseEntity; 9 | import org.springframework.web.bind.annotation.DeleteMapping; 10 | import org.springframework.web.bind.annotation.GetMapping; 11 | import org.springframework.web.bind.annotation.PostMapping; 12 | import org.springframework.web.bind.annotation.PutMapping; 13 | import org.springframework.web.bind.annotation.RequestBody; 14 | import org.springframework.web.bind.annotation.RequestMapping; 15 | import org.springframework.web.bind.annotation.RequestParam; 16 | import org.springframework.web.bind.annotation.RestController; 17 | 18 | import kodlamaio.hrms.business.abstracts.CityService; 19 | import kodlamaio.hrms.core.utilities.results.DataResult; 20 | import kodlamaio.hrms.entities.concretes.City; 21 | 22 | 23 | @RestController 24 | @RequestMapping(name="/api/cities/") 25 | public class CitiesController { 26 | 27 | 28 | private CityService cityService; 29 | 30 | @Autowired 31 | public CitiesController(CityService cityService) { 32 | super(); 33 | this.cityService = cityService; 34 | } 35 | 36 | @GetMapping("getall") 37 | public DataResult> getAll(){ 38 | return this.cityService.getAll(); 39 | } 40 | 41 | @PostMapping("add") 42 | public ResponseEntity add(@Valid @RequestBody City city) { 43 | return ResponseEntity.ok(this.cityService.add(city)); 44 | } 45 | 46 | @PutMapping("update") 47 | public ResponseEntity update(@Valid @RequestBody City city) { 48 | return ResponseEntity.ok(this.cityService.update(city)); 49 | } 50 | 51 | @DeleteMapping("delete") 52 | public ResponseEntity delete(@Valid @RequestParam int cityId) { 53 | return ResponseEntity.ok(this.cityService.delete(cityId)); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /HomeWorks/Day4/Day4.2/src/tr/gov/nvi/tckimlik/WS/KPSPublicSoapProxy.java: -------------------------------------------------------------------------------- 1 | package tr.gov.nvi.tckimlik.WS; 2 | 3 | public class KPSPublicSoapProxy implements tr.gov.nvi.tckimlik.WS.KPSPublicSoap { 4 | private String _endpoint = null; 5 | private tr.gov.nvi.tckimlik.WS.KPSPublicSoap kPSPublicSoap = null; 6 | 7 | public KPSPublicSoapProxy() { 8 | _initKPSPublicSoapProxy(); 9 | } 10 | 11 | public KPSPublicSoapProxy(String endpoint) { 12 | _endpoint = endpoint; 13 | _initKPSPublicSoapProxy(); 14 | } 15 | 16 | private void _initKPSPublicSoapProxy() { 17 | try { 18 | kPSPublicSoap = (new tr.gov.nvi.tckimlik.WS.KPSPublicLocator()).getKPSPublicSoap(); 19 | if (kPSPublicSoap != null) { 20 | if (_endpoint != null) 21 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 22 | else 23 | _endpoint = (String)((javax.xml.rpc.Stub)kPSPublicSoap)._getProperty("javax.xml.rpc.service.endpoint.address"); 24 | } 25 | 26 | } 27 | catch (javax.xml.rpc.ServiceException serviceException) {} 28 | } 29 | 30 | public String getEndpoint() { 31 | return _endpoint; 32 | } 33 | 34 | public void setEndpoint(String endpoint) { 35 | _endpoint = endpoint; 36 | if (kPSPublicSoap != null) 37 | ((javax.xml.rpc.Stub)kPSPublicSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 38 | 39 | } 40 | 41 | public tr.gov.nvi.tckimlik.WS.KPSPublicSoap getKPSPublicSoap() { 42 | if (kPSPublicSoap == null) 43 | _initKPSPublicSoapProxy(); 44 | return kPSPublicSoap; 45 | } 46 | 47 | public boolean TCKimlikNoDogrula(long TCKimlikNo, java.lang.String ad, java.lang.String soyad, int dogumYili) throws java.rmi.RemoteException{ 48 | if (kPSPublicSoap == null) 49 | _initKPSPublicSoapProxy(); 50 | return kPSPublicSoap.TCKimlikNoDogrula(TCKimlikNo, ad, soyad, dogumYili); 51 | } 52 | 53 | 54 | } -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/concretes/LinkForCvManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.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 kodlamaio.hrms.business.abstracts.LinkForCvService; 9 | import kodlamaio.hrms.core.utilities.results.DataResult; 10 | import kodlamaio.hrms.core.utilities.results.Result; 11 | import kodlamaio.hrms.core.utilities.results.SuccessDataResult; 12 | import kodlamaio.hrms.core.utilities.results.SuccessResult; 13 | import kodlamaio.hrms.dataAccess.abstracts.LinkForCvDao; 14 | import kodlamaio.hrms.entities.concretes.LinkForCv; 15 | 16 | @Service 17 | public class LinkForCvManager implements LinkForCvService { 18 | 19 | private LinkForCvDao linkForCvDao; 20 | 21 | @Autowired 22 | public LinkForCvManager(LinkForCvDao linkForCvDao) { 23 | super(); 24 | this.linkForCvDao = linkForCvDao; 25 | } 26 | 27 | @Override 28 | public Result add(LinkForCv linkForCv) { 29 | this.linkForCvDao.save(linkForCv); 30 | return new SuccessResult("Link added"); 31 | } 32 | 33 | @Override 34 | public Result update(LinkForCv linkForCv) { 35 | this.linkForCvDao.save(linkForCv); 36 | return new SuccessResult("Link updated"); 37 | } 38 | 39 | @Override 40 | public Result delete(int id) { 41 | this.linkForCvDao.deleteById(id); 42 | return new SuccessResult("\"Link deleted"); 43 | } 44 | 45 | @Override 46 | public DataResult> getAll() { 47 | return new SuccessDataResult>(this.linkForCvDao.findAll()); 48 | } 49 | 50 | @Override 51 | public DataResult getById(int id) { 52 | return new SuccessDataResult(this.linkForCvDao.getById(id)); 53 | } 54 | 55 | @Override 56 | public DataResult> getAllByJobSeekerId(int id) { 57 | return new SuccessDataResult>(this.linkForCvDao.getAllByJobSeeker_id(id)); 58 | } 59 | 60 | 61 | } 62 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/concretes/CoverLetterForManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.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 kodlamaio.hrms.business.abstracts.CoverLetterForCvService; 9 | import kodlamaio.hrms.core.utilities.results.DataResult; 10 | import kodlamaio.hrms.core.utilities.results.Result; 11 | import kodlamaio.hrms.core.utilities.results.SuccessDataResult; 12 | import kodlamaio.hrms.core.utilities.results.SuccessResult; 13 | import kodlamaio.hrms.dataAccess.abstracts.CoverLetterForCvDao; 14 | import kodlamaio.hrms.entities.concretes.CoverLetterForCv; 15 | 16 | @Service 17 | public class CoverLetterForManager implements CoverLetterForCvService { 18 | 19 | private CoverLetterForCvDao coverLetterForCvDao; 20 | 21 | @Autowired 22 | public CoverLetterForManager(CoverLetterForCvDao coverLetterForCvDao) { 23 | super(); 24 | this.coverLetterForCvDao = coverLetterForCvDao; 25 | } 26 | 27 | 28 | 29 | 30 | @Override 31 | public Result add(CoverLetterForCv coverLetterForCv) { 32 | this.coverLetterForCvDao.save(coverLetterForCv); 33 | return new SuccessResult("CoverLetterForCv added"); 34 | } 35 | 36 | @Override 37 | public Result update(CoverLetterForCv coverLetterForCv) { 38 | this.coverLetterForCvDao.save(coverLetterForCv); 39 | return new SuccessResult("CoverLetterForCv updated"); 40 | } 41 | 42 | @Override 43 | public Result delete(int id) { 44 | this.coverLetterForCvDao.deleteById(id); 45 | return new SuccessResult("CoverLetterForCv deleted"); 46 | } 47 | 48 | @Override 49 | public DataResult getById(int id) { 50 | return new SuccessDataResult(this.coverLetterForCvDao.getById(id)); 51 | } 52 | 53 | @Override 54 | public DataResult> getAll() { 55 | return new SuccessDataResult>(this.coverLetterForCvDao.findAll()); 56 | } 57 | 58 | 59 | } 60 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/api/controllers/JobPositionsController.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.api.controllers; 2 | 3 | import java.util.List; 4 | 5 | import javax.validation.Valid; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.http.ResponseEntity; 9 | import org.springframework.web.bind.annotation.DeleteMapping; 10 | import org.springframework.web.bind.annotation.GetMapping; 11 | import org.springframework.web.bind.annotation.PostMapping; 12 | import org.springframework.web.bind.annotation.PutMapping; 13 | import org.springframework.web.bind.annotation.RequestBody; 14 | import org.springframework.web.bind.annotation.RequestMapping; 15 | import org.springframework.web.bind.annotation.RequestParam; 16 | import org.springframework.web.bind.annotation.RestController; 17 | 18 | import kodlamaio.hrms.business.abstracts.JobPositionService; 19 | import kodlamaio.hrms.core.utilities.results.DataResult; 20 | import kodlamaio.hrms.entities.concretes.JobPosition; 21 | 22 | @RestController 23 | @RequestMapping("/api/jobpositions/") 24 | 25 | public class JobPositionsController { 26 | 27 | private JobPositionService jobPositionService; 28 | 29 | @Autowired 30 | public JobPositionsController(JobPositionService jobPositionService) { 31 | super(); 32 | this.jobPositionService = jobPositionService; 33 | } 34 | 35 | @GetMapping("getall") 36 | public DataResult> getAll() { 37 | return this.jobPositionService.getAll(); 38 | } 39 | 40 | @PostMapping("add") 41 | public ResponseEntity add(@Valid @RequestBody JobPosition jobPosition) { 42 | return ResponseEntity.ok(this.jobPositionService.add(jobPosition)); 43 | } 44 | 45 | @PutMapping("update") 46 | public ResponseEntity update(@Valid @RequestBody JobPosition jobPosition) { 47 | return ResponseEntity.ok(this.jobPositionService.update(jobPosition)); 48 | } 49 | 50 | @DeleteMapping("delete") 51 | public ResponseEntity delete(@Valid @RequestParam int id) { 52 | return ResponseEntity.ok(this.jobPositionService.delete(id)); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/concretes/JobPositionManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.business.concretes; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.stereotype.Service; 6 | 7 | import kodlamaio.hrms.business.abstracts.JobPositionService; 8 | import kodlamaio.hrms.business.businessRules.BusinessRules; 9 | import kodlamaio.hrms.core.utilities.results.DataResult; 10 | import kodlamaio.hrms.core.utilities.results.ErrorResult; 11 | import kodlamaio.hrms.core.utilities.results.Result; 12 | import kodlamaio.hrms.core.utilities.results.SuccessDataResult; 13 | import kodlamaio.hrms.core.utilities.results.SuccessResult; 14 | import kodlamaio.hrms.dataAccess.abstracts.JobPositionDao; 15 | import kodlamaio.hrms.entities.concretes.JobPosition; 16 | 17 | 18 | @Service 19 | public class JobPositionManager implements JobPositionService { 20 | 21 | private JobPositionDao jobPositionDao; 22 | 23 | public JobPositionManager(JobPositionDao jobPositionDao) { 24 | super(); 25 | this.jobPositionDao = jobPositionDao; 26 | } 27 | 28 | @Override 29 | public DataResult> getAll() { 30 | return new SuccessDataResult>(this.jobPositionDao.findAll(),"Data listelendi"); 31 | } 32 | 33 | @Override 34 | public Result add(JobPosition jobPosition) { 35 | Result result=BusinessRules.run(positionRepeatControl(jobPosition)); 36 | if (result.isSuccess()) { 37 | this.jobPositionDao.save(jobPosition); 38 | return new SuccessResult("Başarıyla eklendi"); 39 | } 40 | return result; 41 | 42 | } 43 | 44 | @Override 45 | public Result update(JobPosition jobPosition) { 46 | this.jobPositionDao.save(jobPosition); 47 | return new SuccessResult("JobPosition updated"); 48 | } 49 | 50 | @Override 51 | public Result delete(int id) { 52 | this.jobPositionDao.deleteById(id);; 53 | return new SuccessResult("JobPosition deleted"); 54 | } 55 | 56 | 57 | //METOD KURALLARI 58 | 59 | private Result positionRepeatControl(JobPosition jobPosition) { 60 | if(jobPositionDao.findAllByJobPosition(jobPosition.getJobPosition()).stream().count()!=0) { 61 | return new ErrorResult("Bu pozisyon mevcut"); 62 | } 63 | return new SuccessResult(); 64 | } 65 | 66 | 67 | 68 | 69 | 70 | } 71 | -------------------------------------------------------------------------------- /northwind/northwind/src/main/java/kodlamaio/northwind/api/controllers/UsersController.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.northwind.api.controllers; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | 6 | import javax.validation.Valid; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.http.HttpStatus; 10 | import org.springframework.http.ResponseEntity; 11 | import org.springframework.validation.FieldError; 12 | import org.springframework.web.bind.MethodArgumentNotValidException; 13 | import org.springframework.web.bind.annotation.ExceptionHandler; 14 | import org.springframework.web.bind.annotation.PostMapping; 15 | import org.springframework.web.bind.annotation.RequestBody; 16 | import org.springframework.web.bind.annotation.RequestMapping; 17 | import org.springframework.web.bind.annotation.ResponseStatus; 18 | import org.springframework.web.bind.annotation.RestController; 19 | 20 | 21 | 22 | 23 | 24 | import kodlamaio.northwind.business.abstracts.UserService; 25 | import kodlamaio.northwind.core.entities.User; 26 | import kodlamaio.northwind.core.utilities.results.ErrorDataResult; 27 | 28 | 29 | @RestController 30 | @RequestMapping("/api/users") 31 | public class UsersController { 32 | 33 | private UserService userService; 34 | 35 | @Autowired 36 | public UsersController(UserService userService) { 37 | super(); 38 | this.userService = userService; 39 | } 40 | 41 | @PostMapping("/add") 42 | public ResponseEntity add(@Valid @RequestBody User user) { 43 | 44 | return ResponseEntity.ok(userService.add(user)); 45 | 46 | } 47 | 48 | @ExceptionHandler(MethodArgumentNotValidException.class) 49 | @ResponseStatus(HttpStatus.BAD_REQUEST) 50 | public ErrorDataResult handleValidationException(MethodArgumentNotValidException exceptions) { 51 | Map validationErrors = new HashMap(); 52 | 53 | for(FieldError fieldError: exceptions.getBindingResult().getFieldErrors()) { 54 | 55 | validationErrors.put(fieldError.getField(), fieldError.getDefaultMessage()); 56 | 57 | } 58 | 59 | ErrorDataResult errors = new ErrorDataResult(validationErrors,"Doğrulama Hataları"); 60 | 61 | return errors; 62 | 63 | 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/business/concretes/CityManager.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.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 kodlamaio.hrms.business.abstracts.CityService; 9 | import kodlamaio.hrms.business.businessRules.BusinessRules; 10 | import kodlamaio.hrms.core.utilities.results.DataResult; 11 | import kodlamaio.hrms.core.utilities.results.ErrorResult; 12 | import kodlamaio.hrms.core.utilities.results.Result; 13 | import kodlamaio.hrms.core.utilities.results.SuccessDataResult; 14 | import kodlamaio.hrms.core.utilities.results.SuccessResult; 15 | import kodlamaio.hrms.dataAccess.abstracts.CityDao; 16 | import kodlamaio.hrms.entities.concretes.City; 17 | 18 | @Service 19 | public class CityManager implements CityService { 20 | 21 | private CityDao cityDao; 22 | 23 | @Autowired 24 | public CityManager(CityDao cityDao) { 25 | super(); 26 | this.cityDao = cityDao; 27 | } 28 | 29 | @Override 30 | public DataResult> getAll() { 31 | return new SuccessDataResult>(this.cityDao.findAll(), "Data listelendi"); 32 | } 33 | 34 | @Override 35 | public Result add(City city) { 36 | Result result = BusinessRules.run(cityNameExists(city)); 37 | if (result.isSuccess()) { 38 | String cityNameUpperCase = city.getName().toUpperCase(); 39 | city.setName(cityNameUpperCase); 40 | this.cityDao.save(city); 41 | return new SuccessResult("City added"); 42 | } 43 | return result; 44 | } 45 | 46 | @Override 47 | public Result update(City city) { 48 | Result result = BusinessRules.run(cityNameExists(city)); 49 | if (result.isSuccess()) { 50 | this.cityDao.save(city); 51 | return new SuccessResult("City updated"); 52 | } 53 | return result; 54 | } 55 | 56 | @Override 57 | public Result delete(int cityId) { 58 | this.cityDao.deleteById(cityId);; 59 | return new SuccessResult("City deleted"); 60 | } 61 | 62 | 63 | 64 | 65 | //METOD KURALLARI 66 | 67 | private Result cityNameExists(City city) { 68 | if(cityDao.findAllByName(city.getName().toUpperCase()).stream().count()!=0) { 69 | return new ErrorResult("This CityName is available"); 70 | } 71 | return new SuccessResult(); 72 | } 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /hrms/src/main/java/kodlamaio/hrms/api/controllers/CoverLettersController.java: -------------------------------------------------------------------------------- 1 | package kodlamaio.hrms.api.controllers; 2 | 3 | import java.util.List; 4 | 5 | import javax.validation.Valid; 6 | 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.http.ResponseEntity; 9 | import org.springframework.web.bind.annotation.DeleteMapping; 10 | import org.springframework.web.bind.annotation.GetMapping; 11 | import org.springframework.web.bind.annotation.PostMapping; 12 | import org.springframework.web.bind.annotation.PutMapping; 13 | import org.springframework.web.bind.annotation.RequestBody; 14 | import org.springframework.web.bind.annotation.RequestMapping; 15 | import org.springframework.web.bind.annotation.RequestParam; 16 | import org.springframework.web.bind.annotation.RestController; 17 | 18 | import kodlamaio.hrms.business.abstracts.CoverLetterForCvService; 19 | import kodlamaio.hrms.core.utilities.results.DataResult; 20 | import kodlamaio.hrms.entities.concretes.CoverLetterForCv; 21 | 22 | @RestController 23 | @RequestMapping("/api/coverletters/") 24 | public class CoverLettersController { 25 | 26 | private CoverLetterForCvService coverLettersForCvService; 27 | 28 | @Autowired 29 | public CoverLettersController(CoverLetterForCvService coverLettersForCvService) { 30 | super(); 31 | this.coverLettersForCvService = coverLettersForCvService; 32 | } 33 | 34 | @PostMapping("add") 35 | public ResponseEntity add(@Valid @RequestBody CoverLetterForCv coverLetterForCv) { 36 | return ResponseEntity.ok(this.coverLettersForCvService.add(coverLetterForCv)); 37 | } 38 | 39 | 40 | @PutMapping("update") 41 | public ResponseEntity update(@Valid @RequestBody CoverLetterForCv coverLetterForCv) { 42 | return ResponseEntity.ok(this.coverLettersForCvService.update(coverLetterForCv)); 43 | 44 | } 45 | @DeleteMapping("delete") 46 | public ResponseEntity delete(@RequestParam("id") int id) { 47 | return ResponseEntity.ok(this.coverLettersForCvService.delete(id)); 48 | 49 | } 50 | 51 | @GetMapping("getById") 52 | public DataResult getById(@RequestParam("id") int id){ 53 | return this.coverLettersForCvService.getById(id); 54 | } 55 | 56 | @GetMapping("getall") 57 | public DataResult> getAll(){ 58 | return this.coverLettersForCvService.getAll(); 59 | } 60 | } --------------------------------------------------------------------------------