├── .gitignore ├── logging-log4j ├── log │ └── .gitignore ├── src │ ├── test │ │ └── resources │ │ │ └── employee.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ └── EmployeeService.java │ │ ├── entity │ │ └── BaseEntity.java │ │ ├── repository │ │ └── EmployeeRepository.java │ │ └── exception │ │ └── NotValidParamsException.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── test-spock ├── log │ └── .gitignore ├── src │ ├── test │ │ └── resources │ │ │ └── employee.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ └── EmployeeService.java │ │ ├── entity │ │ └── BaseEntity.java │ │ ├── repository │ │ └── EmployeeRepository.java │ │ └── exception │ │ └── NotValidParamsException.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── logging-log4j2 ├── log │ └── .gitignore ├── src │ ├── test │ │ └── resources │ │ │ └── employee.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ └── EmployeeService.java │ │ ├── entity │ │ └── BaseEntity.java │ │ ├── repository │ │ └── EmployeeRepository.java │ │ └── exception │ │ └── NotValidParamsException.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── web-flux-and-mono ├── readme.md ├── src │ └── main │ │ └── resources │ │ └── application.properties.dest └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── web-flux-rest-simple ├── src │ ├── main │ │ └── resources │ │ │ └── application.properties.dest │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── demo │ │ └── DemoApplicationTests.java ├── readme.md └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── active-profile ├── src │ └── main │ │ └── resources │ │ ├── application-dev.properties │ │ └── application.properties ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── readme.md ├── websocket-simple └── .idea │ ├── .gitignore │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── test-dbunit ├── src │ ├── test │ │ └── resources │ │ │ ├── global-data.xml │ │ │ └── data.xml │ └── main │ │ └── java │ │ └── hello │ │ └── sqltracker │ │ ├── QueryHandler.java │ │ └── QueryType.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── vcs.xml │ ├── encodings.xml │ └── modules.xml ├── get-bean ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── .idea │ ├── vcs.xml │ ├── encodings.xml │ └── modules.xml ├── readme.md └── src │ └── main │ └── java │ └── com │ └── example │ └── getbean │ └── service │ ├── ServiceA.java │ ├── a │ └── SomeService.java │ └── b │ └── SomeService.java ├── jpa-one-to-one ├── src │ └── main │ │ └── java │ │ └── hello │ │ ├── model │ │ └── Gender.java │ │ └── repository │ │ ├── UserRepository.java │ │ └── UserProfileRepository.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-jpa-jackson-infinite-recursion ├── src │ └── main │ │ ├── java │ │ └── hello │ │ │ ├── view │ │ │ ├── CommonViews.java │ │ │ ├── CompanyViews.java │ │ │ ├── ProductViews.java │ │ │ ├── CompanyAndCommonViews.java │ │ │ └── ProductAndCommonViews.java │ │ │ ├── service │ │ │ ├── Service.java │ │ │ ├── dto │ │ │ │ ├── ChairService.java │ │ │ │ └── TableStaffService.java │ │ │ ├── jsonReference │ │ │ │ ├── PostService.java │ │ │ │ └── CommentService.java │ │ │ ├── jsonView │ │ │ │ ├── CompanyService.java │ │ │ │ └── ProductService.java │ │ │ └── jsonIdentityInfo │ │ │ │ ├── GoodService.java │ │ │ │ └── CatalogService.java │ │ │ ├── entity │ │ │ ├── BaseEntity.java │ │ │ └── dto │ │ │ │ ├── ChairWithoutTableStaffDto.java │ │ │ │ └── TableStaffWithoutChairDto.java │ │ │ └── repository │ │ │ ├── dto │ │ │ ├── ChairRepository.java │ │ │ └── TableStaffRepository.java │ │ │ ├── jsonReference │ │ │ ├── PostRepository.java │ │ │ └── CommentRepository.java │ │ │ ├── jsonView │ │ │ ├── CompanyRepository.java │ │ │ └── ProductRepository.java │ │ │ └── jsonIdentityInfo │ │ │ ├── GoodRepository.java │ │ │ └── CatalogRepository.java │ │ └── resources │ │ └── liquibase.properties.dist └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ └── vcs.xml ├── jackson-annotation ├── src │ └── main │ │ └── java │ │ ├── hello │ │ ├── model │ │ │ └── Gender.java │ │ └── JsonView │ │ │ └── Views.java │ │ ├── jsonArray │ │ └── JsonArray.java │ │ └── jsonList │ │ └── JsonList.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ ├── inspectionProfiles │ └── profiles_settings.xml │ └── modules.xml ├── rest-aop ├── src │ ├── test │ │ └── resources │ │ │ ├── post.xml │ │ │ ├── employee.xml │ │ │ └── comment.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ └── EmployeeService.java │ │ ├── entity │ │ └── BaseEntity.java │ │ └── exception │ │ ├── AccessDeniedException.java │ │ └── NotValidParamsException.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-docs-api ├── src │ ├── main │ │ ├── asciidoc │ │ │ └── api.adoc │ │ └── java │ │ │ └── hello │ │ │ ├── service │ │ │ ├── PostService.java │ │ │ ├── EmployeeService.java │ │ │ └── CommentService.java │ │ │ ├── entity │ │ │ └── BaseEntity.java │ │ │ ├── exception │ │ │ └── NotValidParamsException.java │ │ │ └── repository │ │ │ └── oneToMany │ │ │ └── PostRepository.java │ └── test │ │ └── resources │ │ ├── post.xml │ │ ├── employee.xml │ │ └── comment.xml └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-jpa ├── src │ ├── test │ │ └── resources │ │ │ ├── post.xml │ │ │ ├── employee.xml │ │ │ └── comment.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ ├── PostService.java │ │ ├── EmployeeService.java │ │ └── CommentService.java │ │ ├── entity │ │ └── BaseEntity.java │ │ ├── exception │ │ └── NotValidParamsException.java │ │ └── repository │ │ └── oneToMany │ │ └── PostRepository.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── test-dbunit-testcontainer ├── src │ ├── test │ │ └── resources │ │ │ ├── global-data.xml │ │ │ └── data.xml │ └── main │ │ └── java │ │ └── hello │ │ └── sqltracker │ │ ├── QueryHandler.java │ │ └── QueryType.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── vcs.xml │ ├── encodings.xml │ └── modules.xml ├── test-mvc ├── src │ ├── test │ │ └── resources │ │ │ ├── post.xml │ │ │ ├── employee.xml │ │ │ └── comment.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ ├── PostService.java │ │ ├── EmployeeService.java │ │ └── CommentService.java │ │ ├── entity │ │ └── BaseEntity.java │ │ ├── exception │ │ └── NotValidParamsException.java │ │ └── repository │ │ └── oneToMany │ │ └── PostRepository.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── autowiring-generic ├── src │ └── main │ │ └── java │ │ └── hello │ │ ├── dao │ │ └── GeneralDao.java │ │ └── service │ │ └── GeneralService.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-docs ├── src │ └── test │ │ └── resources │ │ └── application.properties └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-template ├── src │ ├── test │ │ └── resources │ │ │ ├── post.xml │ │ │ ├── employee.xml │ │ │ └── comment.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ ├── EmployeeService.java │ │ └── UserService.java │ │ ├── entity │ │ └── BaseEntity.java │ │ └── exception │ │ └── NotValidParamsException.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── dao-jpa-criteria ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ ├── container │ │ │ └── OrderType.java │ │ │ ├── entity │ │ │ └── BaseEntity.java │ │ │ ├── dao │ │ │ ├── oneToMany │ │ │ │ └── PostDao.java │ │ │ └── single │ │ │ │ └── EmployeeDao.java │ │ │ ├── util │ │ │ └── StringUtil.java │ │ │ └── exception │ │ │ └── NotValidParamsException.java │ └── test │ │ └── resources │ │ └── employee.xml └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── dao-jpa-criteria-old ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ ├── container │ │ │ └── OrderType.java │ │ │ ├── entity │ │ │ └── BaseEntity.java │ │ │ ├── dao │ │ │ ├── oneToMany │ │ │ │ ├── PostDao.java │ │ │ │ └── CommentDao.java │ │ │ └── single │ │ │ │ └── EmployeeDao.java │ │ │ └── util │ │ │ └── StringUtil.java │ └── test │ │ └── resources │ │ └── employee.xml └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── jpa-static-metamodel ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ ├── container │ │ │ └── OrderType.java │ │ │ ├── entity │ │ │ └── BaseEntity.java │ │ │ ├── dao │ │ │ ├── oneToMany │ │ │ │ ├── PostDao.java │ │ │ │ └── CommentDao.java │ │ │ └── single │ │ │ │ └── EmployeeDao.java │ │ │ └── util │ │ │ └── StringUtil.java │ └── test │ │ └── resources │ │ └── employee.xml └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── internationalization ├── src │ └── main │ │ └── resources │ │ ├── application.properties │ │ ├── messages.properties │ │ └── messages_fr.properties └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── test-rest-jpa ├── src │ ├── test │ │ ├── resources │ │ │ └── data.xml │ │ └── java │ │ │ └── hello │ │ │ └── mock_mvc │ │ │ └── controller │ │ │ └── spring_runner │ │ │ └── ConfigTest.java │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ ├── PostService.java │ │ ├── EmployeeService.java │ │ └── CommentService.java │ │ └── entity │ │ └── BaseEntity.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── cache-rest-jpa ├── src │ └── main │ │ └── java │ │ └── hello │ │ ├── sqltracker │ │ ├── QueryHandler.java │ │ └── QueryType.java │ │ ├── entity │ │ └── BaseEntity.java │ │ ├── service │ │ ├── UserService.java │ │ ├── BaseService.java │ │ └── UserCacheableService.java │ │ ├── repository │ │ └── UserRepository.java │ │ └── exception │ │ ├── NotFoundException.java │ │ └── ErrorCode.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-cascade ├── src │ └── main │ │ └── java │ │ └── hello │ │ └── sqltracker │ │ ├── QueryType.java │ │ └── QueryHandler.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-problems ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ ├── sqltracker │ │ │ ├── QueryType.java │ │ │ └── QueryHandler.java │ │ │ └── entity │ │ │ └── BaseEntity.java │ └── test │ │ └── resources │ │ ├── client.xml │ │ └── post.xml └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-jpa-update ├── src │ ├── test │ │ └── resources │ │ │ └── employee.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── service │ │ └── EmployeeService.java │ │ ├── entity │ │ └── BaseEntity.java │ │ ├── repository │ │ └── EmployeeRepository.java │ │ └── exception │ │ └── NotValidParamsException.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-jpa-validation ├── src │ ├── test │ │ └── resources │ │ │ └── employee.xml │ └── main │ │ └── java │ │ └── hello │ │ ├── entity │ │ └── BaseEntity.java │ │ └── service │ │ ├── EmployeeService.java │ │ └── PeopleService.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-cache-2-level ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ └── sqltracker │ │ │ ├── QueryType.java │ │ │ └── QueryHandler.java │ └── test │ │ └── resources │ │ └── good-read-only.xml └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-composite-key ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ ├── sqltracker │ │ │ ├── QueryType.java │ │ │ └── QueryHandler.java │ │ │ └── entity │ │ │ └── BaseEntity.java │ └── test │ │ └── resources │ │ ├── right_dictionary_item.xml │ │ └── book_author.xml └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-many-to-many ├── src │ └── main │ │ └── java │ │ └── hello │ │ ├── sqltracker │ │ ├── QueryType.java │ │ └── QueryHandler.java │ │ └── entity │ │ └── BaseEntity.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-one-to-one ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ ├── sqltracker │ │ │ ├── QueryHandler.java │ │ │ └── QueryType.java │ │ │ └── entity │ │ │ └── BaseEntity.java │ └── test │ │ ├── resources │ │ └── user_role.xml │ │ └── java │ │ └── hello │ │ └── entity │ │ └── bidirectional │ │ └── twoMain │ │ └── joinColumn │ │ └── BookTest.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── security-oauth2-memory-authorization-server-15 ├── src │ └── main │ │ └── resources │ │ └── application.properties └── .idea │ ├── vcs.xml │ └── encodings.xml ├── hibernate-equals-hashcode ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ ├── sqltracker │ │ │ ├── QueryHandler.java │ │ │ └── QueryType.java │ │ │ └── entity │ │ │ └── BaseEntity.java │ └── test │ │ └── resources │ │ ├── good.xml │ │ ├── user.xml │ │ ├── client.xml │ │ └── book.xml └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-orphan-removal ├── src │ └── main │ │ └── java │ │ └── hello │ │ └── sqltracker │ │ ├── QueryHandler.java │ │ └── QueryType.java └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── file-upload ├── src │ └── main │ │ ├── resources │ │ └── application.properties │ │ └── java │ │ └── hello │ │ └── storage │ │ └── StorageException.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-pre-post-annotation ├── src │ ├── main │ │ └── java │ │ │ └── hello │ │ │ └── sqltracker │ │ │ ├── QueryHandler.java │ │ │ └── QueryType.java │ └── test │ │ └── resources │ │ └── employee.xml ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── readme.md ├── interceptor ├── src │ └── main │ │ └── resources │ │ ├── application.properties │ │ ├── messages.properties │ │ └── messages_fr.properties └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── file-upload-simple ├── src │ └── main │ │ ├── resources │ │ └── application.properties │ │ └── java │ │ └── hello │ │ └── storage │ │ ├── FileStorage.java │ │ └── StorageException.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-structure ├── src │ └── main │ │ └── java │ │ └── example │ │ ├── utils │ │ └── JsonUtil.java │ │ └── dao │ │ └── Dao.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── jpa-liquibase ├── src │ ├── main │ │ ├── resources │ │ │ └── liquibase.properties.dist │ │ └── java │ │ │ └── hello │ │ │ └── persistence │ │ │ └── repositories │ │ │ ├── BookRepository.java │ │ │ └── AuthorRepository.java │ └── test │ │ ├── resources │ │ └── dbunit │ │ │ └── books_authors.xml │ │ └── java │ │ └── hello │ │ └── ApplicationTest.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── aop └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── async ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── test │ └── java │ └── examples │ └── ClassTestConfig.java ├── jpa-embeddable └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-jpa-dto-mapper ├── src │ └── main │ │ ├── java │ │ └── hello │ │ │ ├── service │ │ │ ├── CompanyService.java │ │ │ ├── ProductService.java │ │ │ ├── ProductTypeService.java │ │ │ └── BaseService.java │ │ │ ├── entity │ │ │ └── BaseEntity.java │ │ │ ├── repository │ │ │ ├── CompanyRepository.java │ │ │ ├── ProductRepository.java │ │ │ └── ProductTypeRepository.java │ │ │ ├── facade │ │ │ └── Facade.java │ │ │ ├── exception │ │ │ ├── NotFoundException.java │ │ │ └── ErrorCode.java │ │ │ └── dto │ │ │ └── ProductTypeDto.java │ │ └── resources │ │ └── liquibase.properties.dist └── .idea │ ├── codeStyles │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── routes ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ ├── resources │ └── templates │ │ ├── post.html │ │ └── simple-get.html │ └── java │ └── examples │ └── controller │ └── extend │ └── CompanyController.java ├── test-datajpatest ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── hello │ └── repository │ └── PostRepository.java ├── test-jpa-liquibase ├── src │ └── main │ │ ├── resources │ │ └── liquibase.properties.dist │ │ └── java │ │ └── hello │ │ └── persistence │ │ └── repositories │ │ ├── BookRepository.java │ │ └── AuthorRepository.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── aop-rest ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── examples │ └── service │ └── EmployeeService.java ├── jpa-flyway ├── .idea │ ├── encodings.xml │ ├── sqldialects.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── resources │ └── db │ └── migration │ ├── V2__testdata.sql │ └── V1__init.sql ├── logging-hibernate ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── hello │ └── repository │ └── PostRepository.java ├── logging └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-static ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── examples │ └── service │ └── EmployeeService.java ├── test-spring ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ ├── main │ └── resources │ │ ├── application.properties.dist │ │ └── db.sql │ └── test │ └── java │ └── commonconfig │ └── CommonConfig.java ├── jdbc-template ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ ├── main │ └── resources │ │ ├── application.properties.dist │ │ └── db.sql │ └── test │ └── java │ └── hello │ └── dao │ └── impl │ └── with_config_scan │ └── EmployeeDaoImplTestConfig.java ├── jpa-element-collection ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── hello │ └── repository │ └── UserRepository.java ├── jpa-liquibase-profile-test ├── src │ ├── main │ │ ├── resources │ │ │ └── liquibase.properties.dist │ │ └── java │ │ │ └── hello │ │ │ └── persistence │ │ │ └── repositories │ │ │ ├── BookRepository.java │ │ │ └── AuthorRepository.java │ └── test │ │ └── java │ │ └── hello │ │ └── ApplicationTest.java └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── rest-jpa-store-json-to-db ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ ├── main │ └── java │ │ └── hello │ │ ├── entity │ │ └── BaseEntity.java │ │ └── service │ │ └── customField │ │ └── EmployeeService.java │ └── test │ └── resources │ └── employee.xml ├── security-jdbc ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── resources │ └── application.properties.dist ├── application-listener └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── form-with-validate ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── src │ └── main │ │ └── resources │ │ └── messages.properties └── readme.md ├── hibernate-spring-boot ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── example │ ├── dao │ └── UserDao.java │ └── service │ └── UserService.java ├── jpa-one-to-many-bidirectional ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── hello │ └── repository │ └── PostRepository.java ├── jpa-one-to-many-unidirectional ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── hello │ └── repository │ └── PostRepository.java ├── scheduler-example └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── security-memory-http-basic-api ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── resources │ └── liquibase.properties.dist ├── test-security-memory-basic-rest ├── .idea │ ├── codeStyles │ │ └── codeStyleConfig.xml │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── resources │ └── liquibase.properties.dist ├── test-springboottest ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── resources │ ├── application.properties.dist │ └── db.sql ├── transaction-programmatic ├── readme.md ├── .idea │ ├── vcs.xml │ ├── encodings.xml │ └── modules.xml ├── src │ └── main │ │ └── resources │ │ └── application.properties.dist └── db.sql ├── exception-handler-global └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── hibernate-spring-boot-15 ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── example │ ├── dao │ └── UserDao.java │ └── service │ └── UserService.java ├── maven-multi-modules ├── .idea │ └── vcs.xml ├── repository │ └── src │ │ └── main │ │ └── java │ │ └── repository │ │ └── EmployeeRepository.java └── controller │ └── src │ └── main │ └── java │ └── controller │ └── exception │ └── EmployeeNotFoundException.java ├── rest-jpa-date-audit-entity └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── security-jdbc-remember-me ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── resources │ └── application.properties.dist ├── security-memory-http-basic └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── security-memory-login-form └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── test-spring-with-profile ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── src │ └── main │ └── java │ └── net │ └── lkrnac │ └── blog │ └── testing │ └── mockbeanv2 │ └── beans │ └── AddressDao.java ├── exception-handler-controller ├── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml └── readme.md ├── test-security-memory-login-form └── .idea │ ├── encodings.xml │ ├── vcs.xml │ └── modules.xml ├── transaction-declarative ├── .idea │ ├── vcs.xml │ ├── encodings.xml │ └── modules.xml └── src │ └── main │ └── resources │ ├── application.properties.dist │ └── db.sql ├── transactional-pitfalls ├── .idea │ ├── vcs.xml │ ├── encodings.xml │ └── modules.xml └── src │ └── main │ └── resources │ ├── application.properties.dist │ └── db.sql ├── test-spring-async-synctaskexecutor ├── .idea │ ├── encodings.xml │ └── vcs.xml └── src │ └── test │ └── java │ └── examples │ └── ClassTestConfig.java └── transaction-declarative-aspectj ├── .idea └── vcs.xml └── src └── main └── resources ├── application.properties.dist └── db.sql /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea -------------------------------------------------------------------------------- /logging-log4j/log/.gitignore: -------------------------------------------------------------------------------- 1 | [^.]* 2 | -------------------------------------------------------------------------------- /test-spock/log/.gitignore: -------------------------------------------------------------------------------- 1 | [^.]* 2 | -------------------------------------------------------------------------------- /logging-log4j2/log/.gitignore: -------------------------------------------------------------------------------- 1 | [^.]* 2 | -------------------------------------------------------------------------------- /web-flux-and-mono/readme.md: -------------------------------------------------------------------------------- 1 | # Project for understand Flux and Mono 2 | -------------------------------------------------------------------------------- /web-flux-and-mono/src/main/resources/application.properties.dest: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /web-flux-rest-simple/src/main/resources/application.properties.dest: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /active-profile/src/main/resources/application-dev.properties: -------------------------------------------------------------------------------- 1 | server.port = 9090 -------------------------------------------------------------------------------- /websocket-simple/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /workspace.xml -------------------------------------------------------------------------------- /test-dbunit/src/test/resources/global-data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /web-flux-rest-simple/readme.md: -------------------------------------------------------------------------------- 1 | # Building a Reactive RESTful Web Service 2 | 3 | https://spring.io/guides/gs/reactive-rest-service/ -------------------------------------------------------------------------------- /get-bean/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Freeongoo/spring-examples/HEAD/get-bean/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /jpa-one-to-one/src/main/java/hello/model/Gender.java: -------------------------------------------------------------------------------- 1 | package hello.model; 2 | 3 | public enum Gender { 4 | MALE, 5 | FEMALE 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/CommonViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface CommonViews {} 4 | -------------------------------------------------------------------------------- /jackson-annotation/src/main/java/hello/model/Gender.java: -------------------------------------------------------------------------------- 1 | package hello.model; 2 | 3 | public enum Gender { 4 | MALE, 5 | FEMALE 6 | } 7 | -------------------------------------------------------------------------------- /logging-log4j/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /logging-log4j2/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-aop/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/asciidoc/api.adoc: -------------------------------------------------------------------------------- 1 | == API 2 | 3 | === Employee 4 | include::employee.adoc[] 5 | 6 | === Post 7 | include::post.adoc[] 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/CompanyViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface CompanyViews {} 4 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/ProductViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface ProductViews {} 4 | -------------------------------------------------------------------------------- /rest-jpa/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/src/test/resources/global-data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test-mvc/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-spock/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /autowiring-generic/src/main/java/hello/dao/GeneralDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao; 2 | 3 | public interface GeneralDao { 4 | T get(Long id); 5 | } 6 | -------------------------------------------------------------------------------- /rest-docs-api/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-docs/src/test/resources/application.properties: -------------------------------------------------------------------------------- 1 | # for pretty json output - only for testing 2 | spring.jackson.serialization.indent_output=true 3 | -------------------------------------------------------------------------------- /rest-template/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/container/OrderType.java: -------------------------------------------------------------------------------- 1 | package hello.container; 2 | 3 | public enum OrderType { 4 | ASC, 5 | DESC 6 | } 7 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/container/OrderType.java: -------------------------------------------------------------------------------- 1 | package hello.container; 2 | 3 | public enum OrderType { 4 | ASC, 5 | DESC 6 | } 7 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/container/OrderType.java: -------------------------------------------------------------------------------- 1 | package hello.container; 2 | 3 | public enum OrderType { 4 | ASC, 5 | DESC 6 | } 7 | -------------------------------------------------------------------------------- /get-bean/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /internationalization/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # If want change local in properties file: 2 | #spring.mvc.locale=fr 3 | #spring.mvc.locale-resolver=fixed -------------------------------------------------------------------------------- /rest-aop/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-jpa/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-dbunit/src/test/resources/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-mvc/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-rest-jpa/src/test/resources/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /active-profile/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8080 2 | # set other profile - start load application-dev.properties 3 | spring.profiles.active=dev -------------------------------------------------------------------------------- /autowiring-generic/src/main/java/hello/service/GeneralService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | public interface GeneralService { 4 | T get(Long id); 5 | } 6 | -------------------------------------------------------------------------------- /rest-docs-api/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-template/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-dbunit/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /test-dbunit/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-cascade/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-problems/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /rest-jpa-update/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /rest-jpa-validation/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | Long getId(); 5 | void setId(Long id); 6 | } 7 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-cascade/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-many-to-many/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-problems/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /security-oauth2-memory-authorization-server-15/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # set order for correct work for ResourceServer 2 | security.oauth2.resource.filter-order=3 -------------------------------------------------------------------------------- /hibernate-cache-2-level/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/test/resources/good.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/test/resources/user.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-many-to-many/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/src/test/resources/data.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | } 9 | -------------------------------------------------------------------------------- /file-upload/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.servlet.multipart.max-file-size=128KB 2 | spring.servlet.multipart.max-request-size=128KB 3 | spring.http.multipart.enabled=false -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/src/main/java/hello/sqltracker/QueryHandler.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public interface QueryHandler { 4 | void handleSql(String sql); 5 | } 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/src/main/java/hello/sqltracker/QueryType.java: -------------------------------------------------------------------------------- 1 | package hello.sqltracker; 2 | 3 | public enum QueryType { 4 | SELECT, INSERT, UPDATE, DELETE, CALL 5 | } 6 | -------------------------------------------------------------------------------- /interceptor/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # If want change local in properties file: 2 | #spring.mvc.locale=fr 3 | #spring.mvc.locale-resolver=fixed 4 | 5 | logging.file=log.log -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | } 9 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /file-upload-simple/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.servlet.multipart.max-file-size=128KB 2 | spring.servlet.multipart.max-request-size=128KB 3 | spring.http.multipart.enabled=false -------------------------------------------------------------------------------- /hibernate-problems/src/test/resources/client.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-problems/src/test/resources/post.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /interceptor/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | greeting=I like how websites know my language! 2 | lang.change=Move to another language 3 | trulala=Trulala 4 | lang.eng=English 5 | lang.fr=French -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-validation/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | Long getId(); 6 | 7 | void setId(Long id); 8 | } 9 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/service/UserService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.User; 4 | 5 | public interface UserService extends BaseService { 6 | } 7 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/test/resources/client.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /jackson-annotation/src/main/java/hello/JsonView/Views.java: -------------------------------------------------------------------------------- 1 | package hello.JsonView; 2 | 3 | public class Views { 4 | public static class Public { } 5 | public static class Private { } 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/CompanyAndCommonViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface CompanyAndCommonViews extends CompanyViews, CommonViews { 4 | } 5 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/view/ProductAndCommonViews.java: -------------------------------------------------------------------------------- 1 | package hello.view; 2 | 3 | public interface ProductAndCommonViews extends ProductViews, CommonViews { 4 | } 5 | -------------------------------------------------------------------------------- /hibernate-structure/src/main/java/example/utils/JsonUtil.java: -------------------------------------------------------------------------------- 1 | package example.utils; 2 | 3 | public class JsonUtil { 4 | 5 | public static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss"; 6 | } 7 | -------------------------------------------------------------------------------- /internationalization/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | greeting=I like how websites know my language! 2 | lang.change=Move to another language 3 | trulala=Trulala 4 | lang.eng=English 5 | lang.fr=French -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/service/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Post; 4 | 5 | public interface PostService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/service/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Post; 4 | 5 | public interface PostService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /jpa-liquibase/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/liquibase?useSSL=false 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /rest-aop/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-aop/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/service/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Post; 4 | 5 | public interface PostService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-update/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /test-dbunit/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-mvc/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /test-rest-jpa/src/main/java/hello/service/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Post; 4 | 5 | public interface PostService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-spock/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /aop/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /async/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /dao-jpa-criteria/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-embeddable/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-one-to-one/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /logging-log4j/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /logging-log4j2/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /rest-docs-api/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/service/CompanyService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Company; 4 | 5 | public interface CompanyService extends BaseService { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/service/ProductService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.Product; 4 | 5 | public interface ProductService extends BaseService { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-update/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Comment; 4 | 5 | public interface CommentService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /rest-template/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-template/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /routes/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-datajpatest/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-jpa-liquibase/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/liquibase?useSSL=false 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Comment; 4 | 5 | public interface CommentService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-rest-jpa/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-rest-jpa/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.single.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /aop-rest/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /aop/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /async/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /autowiring-generic/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /file-upload/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cascade/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-one-to-one/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-problems/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /interceptor/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-flyway/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-flyway/.idea/sqldialects.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-static-metamodel/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /logging-hibernate/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /logging/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-aop/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Comment; 4 | 5 | public interface CommentService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /rest-docs/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa-validation/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-static/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /routes/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-mvc/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-rest-jpa/src/main/java/hello/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.oneToMany.Comment; 4 | 5 | public interface CommentService extends Service { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /test-spock/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /active-profile/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /aop-rest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /file-upload/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /get-bean/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-composite-key/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-many-to-many/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /interceptor/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jdbc-template/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-element-collection/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-embeddable/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-flyway/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/liquibase?useSSL=false 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /jpa-liquibase/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-one/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j2/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-aop/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs-api/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa-update/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-static/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-template/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-datajpatest/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-dbunit/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-mvc/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-rest-jpa/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spock/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /websocket-simple/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /active-profile/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /application-listener/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /autowiring-generic/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /file-upload-simple/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /form-with-validate/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /get-bean/readme.md: -------------------------------------------------------------------------------- 1 | # Get Bean by ApplicationContext 2 | 3 | This is an example of how to get an existing bean using ApplicationContext 4 | 5 | ## Tests 6 | 7 | see: `/src/test/java/com/example/getbean/ApplicationContextTest.java` -------------------------------------------------------------------------------- /hibernate-cascade/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /hibernate-problems/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-spring-boot/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-structure/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /internationalization/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jdbc-template/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-embeddable/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /jpa-one-to-one/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-static-metamodel/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-hibernate/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j2/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-docs-api/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/service/ProductTypeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.ProductType; 4 | 5 | public interface ProductTypeService extends BaseService { 6 | } 7 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/mapper?useSSL=false&serverTimezone=UTC 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /rest-jpa-update/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-validation/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-validation/src/main/java/hello/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.beanValidation.Employee; 4 | 5 | public interface EmployeeService extends Service { 6 | } 7 | -------------------------------------------------------------------------------- /rest-template/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /scheduler-example/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost:3306/testdb?verifyServerCertificate=false&useSSL=false 2 | spring.datasource.username=root 3 | spring.datasource.password=root -------------------------------------------------------------------------------- /security-memory-http-basic-api/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-datajpatest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-jpa-liquibase/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-rest-jpa/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /test-springboottest/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-programmatic/readme.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | 3 | 1. create database see db.sql 4 | 2. cp src/main/resources/application.properties.dist src/main/resources/application.properties 5 | 3. set db config in application.properties -------------------------------------------------------------------------------- /web-flux-and-mono/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /web-flux-rest-simple/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /websocket-simple/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /application-listener/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /autowiring-generic/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /exception-handler-global/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /file-upload-simple/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /form-with-validate/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cascade/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-many-to-many/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-one-to-one/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-problems/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-spring-boot/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-structure/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /interceptor/src/main/resources/messages_fr.properties: -------------------------------------------------------------------------------- 1 | greeting=J'aime la façon dont les sites Web connaissent ma langue! 2 | lang.change=Passer à une autre langue 3 | trulala=Trulala in French :) 4 | lang.eng=Anglais 5 | lang.fr=Francais -------------------------------------------------------------------------------- /internationalization/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-element-collection/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-static-metamodel/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-hibernate/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /maven-multi-modules/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-date-audit-entity/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-validation/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /scheduler-example/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc-remember-me/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-http-basic-api/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/company?useSSL=false&serverTimezone=UTC 2 | username=root 3 | password=root 4 | change-log=classpath:db/liquibase-changelog.xml -------------------------------------------------------------------------------- /security-memory-http-basic/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-login-form/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-jpa-liquibase/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spock/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /test-spring-with-profile/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-springboottest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /web-flux-and-mono/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /web-flux-rest-simple/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /active-profile/readme.md: -------------------------------------------------------------------------------- 1 | # Change spring profile 2 | 3 | ## 1. from command line 4 | 5 | java -jar -Dspring.profiles.active=dev application 6 | 7 | ## 2. in spring boot set in application.properties: 8 | 9 | spring.profiles.active=dev -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/dao/oneToMany/PostDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Post; 5 | 6 | public interface PostDao extends BaseDao { 7 | } 8 | -------------------------------------------------------------------------------- /exception-handler-controller/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /exception-handler-global/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-many-to-many/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/readme.md: -------------------------------------------------------------------------------- 1 | # Learn Hibernate @Pre.. @Post annotations 2 | 3 | ## Configuration 4 | 5 | For main and test dirs: 6 | `cp application.properties.dist application.properties` 7 | 8 | ## Testing 9 | 10 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-element-collection/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /logging-log4j/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /logging-log4j2/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /rest-aop/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | /** 4 | * @param Primary key 5 | */ 6 | public interface BaseEntity { 7 | 8 | ID getId(); 9 | 10 | void setId(ID id); 11 | } 12 | -------------------------------------------------------------------------------- /rest-jpa-date-audit-entity/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc-remember-me/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-jdbc-remember-me/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost:3306/testdb?verifyServerCertificate=false&useSSL=false 2 | spring.datasource.username=root 3 | spring.datasource.password=root -------------------------------------------------------------------------------- /security-memory-http-basic-api/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-http-basic/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-login-form/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-security-memory-login-form/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring-with-profile/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-declarative/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-programmatic/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transactional-pitfalls/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/service/BaseService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import java.util.List; 4 | 5 | public interface BaseService { 6 | 7 | T getById(ID id); 8 | 9 | List getAll(); 10 | } 11 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/dao/oneToMany/PostDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Post; 5 | 6 | public interface PostDao extends BaseDao { 7 | } 8 | -------------------------------------------------------------------------------- /exception-handler-controller/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-problems/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /internationalization/src/main/resources/messages_fr.properties: -------------------------------------------------------------------------------- 1 | greeting=J'aime la façon dont les sites Web connaissent ma langue! 2 | lang.change=Passer à une autre langue 3 | trulala=Trulala in French :) 4 | lang.eng=Anglais 5 | lang.fr=Francais -------------------------------------------------------------------------------- /jpa-flyway/src/main/resources/db/migration/V2__testdata.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO users(username, first_name, last_name) VALUES('callicoder', 'Rajeev', 'Singh'); 2 | INSERT INTO users(username, first_name, last_name) VALUES('flywaytest', 'Flyway', 'Test'); -------------------------------------------------------------------------------- /jpa-liquibase/src/test/resources/dbunit/books_authors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/dao/oneToMany/PostDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Post; 5 | 6 | public interface PostDao extends BaseDao { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | Long getId(); 5 | void setId(Long id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /security-memory-http-basic-api/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/company?useSSL=false&serverTimezone=UTC 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /test-security-memory-login-form/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring-async-synctaskexecutor/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-declarative-aspectj/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /get-bean/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-composite-key/src/test/resources/right_dictionary_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/service/BaseService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import java.util.List; 4 | 5 | public interface BaseService { 6 | 7 | T getById(ID id); 8 | 9 | List getAll(); 10 | } 11 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/resources/liquibase.properties.dist: -------------------------------------------------------------------------------- 1 | url=jdbc:mysql://localhost:3306/infinity?useSSL=false&serverTimezone=UTC 2 | username=root 3 | password=root 4 | change-log=classpath:/db/changelog/liquibase-changelog.xml -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | ID getId(); 5 | void setId(ID id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /test-spring-async-synctaskexecutor/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /jpa-liquibase/src/test/java/hello/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package hello; 2 | 3 | import org.junit.Test; 4 | 5 | public class ApplicationTest extends AbstractIntegrationDBUnitTest { 6 | 7 | @Test 8 | public void contextLoads() { } 9 | } 10 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/Service.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import java.util.List; 4 | 5 | public interface Service { 6 | 7 | T getById(ID id); 8 | 9 | List getAll(); 10 | } 11 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | Long getId(); 5 | void setId(Long id); 6 | String getName(); 7 | void setName(String name); 8 | } 9 | -------------------------------------------------------------------------------- /security-oauth2-memory-authorization-server-15/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /hibernate-one-to-one/src/test/resources/user_role.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-spring-boot/src/main/java/example/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package example.dao; 2 | 3 | import java.util.List; 4 | 5 | import example.model.UserDetails; 6 | 7 | public interface UserDao { 8 | 9 | List getUserDetails(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /jdbc-template/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/src/test/java/hello/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package hello; 2 | 3 | import org.junit.Test; 4 | 5 | public class ApplicationTest extends AbstractIntegrationTest { 6 | 7 | @Test 8 | public void contextLoads() { } 9 | } 10 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/dto/ChairService.java: -------------------------------------------------------------------------------- 1 | package hello.service.dto; 2 | 3 | import hello.entity.dto.Chair; 4 | import hello.service.Service; 5 | 6 | public interface ChairService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-validation/src/main/java/hello/service/PeopleService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.beanValidation.Employee; 4 | import hello.springValidation.People; 5 | 6 | public interface PeopleService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/test/resources/book.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/src/main/java/example/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package example.dao; 2 | 3 | import java.util.List; 4 | 5 | import example.model.UserDetails; 6 | 7 | public interface UserDao { 8 | 9 | List getUserDetails(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /test-rest-jpa/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /test-springboottest/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /transactional-pitfalls/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /hibernate-cache-2-level/src/test/resources/good-read-only.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-declarative/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /transaction-programmatic/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /hibernate-composite-key/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | ID getId(); 6 | 7 | void setId(ID id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /hibernate-many-to-many/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | Long getId(); 6 | 7 | void setId(Long id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /hibernate-one-to-one/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | public interface BaseEntity { 4 | 5 | Long getId(); 6 | 7 | void setId(Long id); 8 | 9 | String getName(); 10 | 11 | void setName(String name); 12 | } 13 | -------------------------------------------------------------------------------- /jdbc-template/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /rest-aop/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-template/src/main/java/hello/service/UserService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.User; 4 | 5 | import java.util.List; 6 | 7 | public interface UserService { 8 | 9 | List getAll(); 10 | 11 | User getById(Long id); 12 | } 13 | -------------------------------------------------------------------------------- /test-mvc/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-spring/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /transaction-declarative-aspectj/src/main/resources/application.properties.dist: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost/jdbc?verifyServerCertificate=false&useSSL=true 2 | spring.datasource.username=root 3 | spring.datasource.password=******** 4 | spring.datasource.platform=mysql -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.User; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface UserRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-docs-api/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/dto/TableStaffService.java: -------------------------------------------------------------------------------- 1 | package hello.service.dto; 2 | 3 | import hello.entity.dto.TableStaff; 4 | import hello.service.Service; 5 | 6 | public interface TableStaffService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-template/src/test/resources/comment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /transaction-programmatic/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonReference/PostService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonReference; 2 | 3 | import hello.entity.jsonReference.Post; 4 | import hello.service.Service; 5 | 6 | public interface PostService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonView/CompanyService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonView; 2 | 3 | import hello.entity.jsonView.Company; 4 | import hello.service.Service; 5 | 6 | public interface CompanyService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonView/ProductService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonView; 2 | 3 | import hello.entity.jsonView.Product; 4 | import hello.service.Service; 5 | 6 | public interface ProductService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /security-oauth2-memory-authorization-server-15/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test-springboottest/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /aop/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /maven-multi-modules/repository/src/main/java/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package repository; 2 | 3 | import model.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface EmployeeRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/src/main/java/hello/service/customField/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package hello.service.customField; 2 | 3 | import hello.entity.customField.Employee; 4 | import hello.service.Service; 5 | 6 | public interface EmployeeService extends Service { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/src/test/resources/employee.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /test-dbunit/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /async/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/service/UserCacheableService.java: -------------------------------------------------------------------------------- 1 | package hello.service; 2 | 3 | import hello.entity.User; 4 | 5 | import java.util.List; 6 | 7 | public interface UserCacheableService { 8 | 9 | User getById(Long id); 10 | 11 | List getAll(); 12 | } 13 | -------------------------------------------------------------------------------- /exception-handler-controller/readme.md: -------------------------------------------------------------------------------- 1 | # Exception handler 2 | 3 | Handle exception with @ExceptionHandler in controller 4 | 5 | Important! @ExceptionHandler - handle exception in current controller, if exception happened in other controller - not be handle 6 | 7 | Go to route: "/" for see routes -------------------------------------------------------------------------------- /file-upload-simple/src/main/java/hello/storage/FileStorage.java: -------------------------------------------------------------------------------- 1 | package hello.storage; 2 | 3 | import org.springframework.web.multipart.MultipartFile; 4 | 5 | public interface FileStorage { 6 | 7 | String UPLOAD_DIR = "/home/vasya/test"; 8 | 9 | void save(MultipartFile file); 10 | } -------------------------------------------------------------------------------- /hibernate-composite-key/src/test/resources/book_author.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/repository/CompanyRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Company; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface CompanyRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/repository/ProductRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Product; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface ProductRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonIdentityInfo/GoodService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonIdentityInfo; 2 | 3 | import hello.entity.jsonIdentityInfo.Good; 4 | import hello.service.Service; 5 | 6 | public interface GoodService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /hibernate-spring-boot/src/main/java/example/service/UserService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package example.service; 5 | 6 | import java.util.List; 7 | 8 | import example.model.UserDetails; 9 | 10 | public interface UserService { 11 | 12 | List getUserDetails(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /logging/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonReference/CommentService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonReference; 2 | 3 | import hello.entity.jsonReference.Comment; 4 | import hello.service.Service; 5 | 6 | public interface CommentService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /routes/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /transaction-declarative/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /transactional-pitfalls/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /transactional-pitfalls/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /get-bean/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /get-bean/src/main/java/com/example/getbean/service/ServiceA.java: -------------------------------------------------------------------------------- 1 | package com.example.getbean.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service 6 | public class ServiceA { 7 | 8 | public String getHi() { 9 | return "hi from service A"; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/src/main/java/example/service/UserService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package example.service; 5 | 6 | import java.util.List; 7 | 8 | import example.model.UserDetails; 9 | 10 | public interface UserService { 11 | 12 | List getUserDetails(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /rest-docs/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/entity/dto/ChairWithoutTableStaffDto.java: -------------------------------------------------------------------------------- 1 | package hello.entity.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | @JsonIgnoreProperties({"tableStaff"}) 6 | public class ChairWithoutTableStaffDto extends Chair { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/entity/dto/TableStaffWithoutChairDto.java: -------------------------------------------------------------------------------- 1 | package hello.entity.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | 5 | @JsonIgnoreProperties({"chairs"}) 6 | public class TableStaffWithoutChairDto extends TableStaff { 7 | } 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/service/jsonIdentityInfo/CatalogService.java: -------------------------------------------------------------------------------- 1 | package hello.service.jsonIdentityInfo; 2 | 3 | import hello.entity.jsonIdentityInfo.Catalog; 4 | import hello.service.Service; 5 | 6 | public interface CatalogService extends Service { 7 | } 8 | -------------------------------------------------------------------------------- /test-dbunit-testcontainer/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /transaction-declarative/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /transaction-programmatic/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /aop-rest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /async/src/test/java/examples/ClassTestConfig.java: -------------------------------------------------------------------------------- 1 | package examples; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("examples") 8 | public class ClassTestConfig { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /jpa-flyway/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-aop/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/repository/ProductTypeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.ProductType; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface ProductTypeRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | /** 4 | * @param Primary key 5 | */ 6 | public interface BaseEntity { 7 | 8 | ID getId(); 9 | 10 | void setId(ID id); 11 | 12 | String getName(); 13 | 14 | void setName(String name); 15 | } 16 | -------------------------------------------------------------------------------- /test-mvc/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-spock/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /transaction-declarative-aspectj/src/main/resources/db.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS employee; 2 | 3 | CREATE TABLE employee ( 4 | id int(10) UNSIGNED NOT NULL AUTO_INCREMENT, 5 | name VARCHAR(255) NOT NULL, 6 | email VARCHAR(255) NOT NULL UNIQUE, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /file-upload/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /interceptor/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/dto/ChairRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.dto; 2 | 3 | import hello.entity.dto.Chair; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface ChairRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-template/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | /** 4 | * @param Primary key 5 | */ 6 | public interface BaseEntity { 7 | 8 | ID getId(); 9 | 10 | void setId(ID id); 11 | 12 | String getName(); 13 | 14 | void setName(String name); 15 | } 16 | -------------------------------------------------------------------------------- /test-dbunit/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /active-profile/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cache-rest-jpa/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /form-with-validate/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | empty.id=id cannot be null. 2 | not_zero.id=The value id must be more than zero. 3 | empty.content=content cannot be empty. 4 | invalid_length.content=content must be between 1 and 20 characters long. 5 | invalid_data.content=content must be alphanumeric with no spaces. -------------------------------------------------------------------------------- /jpa-liquibase/src/main/java/hello/persistence/repositories/BookRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Book; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface BookRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /logging-log4j/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logging-log4j2/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-jpa-update/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | /** 4 | * @param Primary key 5 | */ 6 | public interface BaseEntity { 7 | 8 | ID getId(); 9 | 10 | void setId(ID id); 11 | 12 | String getName(); 13 | 14 | void setName(String name); 15 | } 16 | -------------------------------------------------------------------------------- /rest-static/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /security-jdbc/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-rest-jpa/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-spring/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jdbc-template/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-embeddable/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-one-to-one/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /maven-multi-modules/controller/src/main/java/controller/exception/EmployeeNotFoundException.java: -------------------------------------------------------------------------------- 1 | package controller.exception; 2 | 3 | public class EmployeeNotFoundException extends RuntimeException { 4 | 5 | public EmployeeNotFoundException(Long id) { 6 | super("Could not find employee " + id); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /rest-docs-api/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-template/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-jpa-liquibase/src/main/java/hello/persistence/repositories/BookRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Book; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface BookRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /test-spring/src/test/java/commonconfig/CommonConfig.java: -------------------------------------------------------------------------------- 1 | package commonconfig; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("hello.simplelogic") 8 | public class CommonConfig { 9 | } 10 | -------------------------------------------------------------------------------- /jpa-liquibase/src/main/java/hello/persistence/repositories/AuthorRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Author; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface AuthorRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-update/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /scheduler-example/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /websocket-simple/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /dao-jpa-criteria/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /file-upload-simple/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /form-with-validate/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /get-bean/src/main/java/com/example/getbean/service/a/SomeService.java: -------------------------------------------------------------------------------- 1 | package com.example.getbean.service.a; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service("servicePackageA") 6 | public class SomeService { 7 | public String getHi() { 8 | return "hi from service package a"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /get-bean/src/main/java/com/example/getbean/service/b/SomeService.java: -------------------------------------------------------------------------------- 1 | package com.example.getbean.service.b; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service("servicePackageB") 6 | public class SomeService { 7 | public String getHi() { 8 | return "hi from service package b"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /hibernate-cascade/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-structure/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/src/main/java/hello/persistence/repositories/BookRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Book; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface BookRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /jpa-liquibase/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /logging-hibernate/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/dto/TableStaffRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.dto; 2 | 3 | import hello.entity.dto.TableStaff; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface TableStaffRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /test-datajpatest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-jpa-liquibase/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-jpa-liquibase/src/main/java/hello/persistence/repositories/AuthorRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Author; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface AuthorRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /web-flux-and-mono/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /application-listener/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /autowiring-generic/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/src/main/java/hello/entity/BaseEntity.java: -------------------------------------------------------------------------------- 1 | package hello.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | public interface BaseEntity extends Serializable { 6 | 7 | ID getId(); 8 | 9 | void setId(ID id); 10 | 11 | String getName(); 12 | 13 | void setName(String name); 14 | } 15 | -------------------------------------------------------------------------------- /hibernate-problems/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /internationalization/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /jackson-annotation/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jackson-annotation/src/main/java/jsonArray/JsonArray.java: -------------------------------------------------------------------------------- 1 | package jsonArray; 2 | 3 | public class JsonArray { 4 | private Long[] numbers; 5 | 6 | public Long[] getNumbers() { 7 | return numbers; 8 | } 9 | 10 | public void setNumbers(Long[] numbers) { 11 | this.numbers = numbers; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /jpa-flyway/src/main/resources/db/migration/V1__init.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE users ( 2 | id bigint(20) NOT NULL AUTO_INCREMENT, 3 | username varchar(100) NOT NULL, 4 | first_name varchar(50) NOT NULL, 5 | last_name varchar(50) DEFAULT NULL, 6 | PRIMARY KEY (id), 7 | UNIQUE KEY UK_username (username) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/src/main/java/hello/persistence/repositories/AuthorRepository.java: -------------------------------------------------------------------------------- 1 | package hello.persistence.repositories; 2 | 3 | import hello.persistence.entities.Author; 4 | import org.springframework.data.repository.CrudRepository; 5 | 6 | public interface AuthorRepository extends CrudRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/facade/Facade.java: -------------------------------------------------------------------------------- 1 | package hello.facade; 2 | 3 | import hello.service.BaseService; 4 | 5 | /** 6 | * See changed Generics places 7 | * 8 | * @param 9 | * @param 10 | * @param 11 | */ 12 | public interface Facade extends BaseService { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonReference/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonReference; 2 | 3 | import hello.entity.jsonReference.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface PostRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonView/CompanyRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonView; 2 | 3 | import hello.entity.jsonView.Company; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface CompanyRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonView/ProductRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonView; 2 | 3 | import hello.entity.jsonView.Product; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface ProductRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-validation/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /routes/src/main/resources/templates/post.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting Started: Serving Web Content 5 | 6 | 7 | 8 |

Display post content

9 | 10 | -------------------------------------------------------------------------------- /test-spring-async-synctaskexecutor/src/test/java/examples/ClassTestConfig.java: -------------------------------------------------------------------------------- 1 | package examples; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("examples") 8 | public class ClassTestConfig { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /test-springboottest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /aop-rest/src/main/java/examples/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package examples.service; 2 | 3 | import examples.model.Employee; 4 | 5 | import java.util.List; 6 | 7 | public interface EmployeeService { 8 | 9 | Employee getById(int id); 10 | 11 | List getAll(); 12 | 13 | int create(Employee employee); 14 | } 15 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/util/StringUtil.java: -------------------------------------------------------------------------------- 1 | package hello.util; 2 | 3 | public final class StringUtil { 4 | 5 | public static boolean convertToBoolean(String str) { 6 | String trim = str.trim(); 7 | return !trim.equals("") && !trim.equals("0") && !trim.toLowerCase().equals("false"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/dao/single/EmployeeDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.single; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.single.Employee; 5 | 6 | import java.util.List; 7 | 8 | public interface EmployeeDao extends BaseDao { 9 | 10 | public List findByName(String name); 11 | } 12 | -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/util/StringUtil.java: -------------------------------------------------------------------------------- 1 | package hello.util; 2 | 3 | public final class StringUtil { 4 | 5 | public static boolean convertToBoolean(String str) { 6 | String trim = str.trim(); 7 | return !trim.equals("") && !trim.equals("0") && !trim.toLowerCase().equals("false"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /hibernate-one-to-one/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-one-to-one/src/test/java/hello/entity/bidirectional/twoMain/joinColumn/BookTest.java: -------------------------------------------------------------------------------- 1 | package hello.entity.bidirectional.twoMain.joinColumn; 2 | 3 | import hello.AbstractJpaTest; 4 | import org.junit.Test; 5 | 6 | public class BookTest extends AbstractJpaTest { 7 | 8 | @Test 9 | public void smoke() { 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /hibernate-spring-boot/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /jpa-static-metamodel/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/util/StringUtil.java: -------------------------------------------------------------------------------- 1 | package hello.util; 2 | 3 | public final class StringUtil { 4 | 5 | public static boolean convertToBoolean(String str) { 6 | String trim = str.trim(); 7 | return !trim.equals("") && !trim.equals("0") && !trim.toLowerCase().equals("false"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /rest-static/src/main/java/examples/service/EmployeeService.java: -------------------------------------------------------------------------------- 1 | package examples.service; 2 | 3 | import examples.model.Employee; 4 | 5 | import java.util.List; 6 | 7 | public interface EmployeeService { 8 | 9 | Employee getById(int id); 10 | 11 | List getAll(); 12 | 13 | int create(Employee employee); 14 | } 15 | -------------------------------------------------------------------------------- /web-flux-rest-simple/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /web-flux-rest-simple/src/test/java/com/example/demo/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.demo; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class DemoApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/dao/single/EmployeeDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.single; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.single.Employee; 5 | 6 | import java.util.List; 7 | 8 | public interface EmployeeDao extends BaseDao { 9 | 10 | public List findByName(String name); 11 | } 12 | -------------------------------------------------------------------------------- /exception-handler-global/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /hibernate-many-to-many/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-spring-boot-15/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /jpa-element-collection/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/dao/single/EmployeeDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.single; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.single.Employee; 5 | 6 | import java.util.List; 7 | 8 | public interface EmployeeDao extends BaseDao { 9 | 10 | public List findByName(String name); 11 | } 12 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonIdentityInfo/GoodRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonIdentityInfo; 2 | 3 | import hello.entity.jsonIdentityInfo.Good; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface GoodRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /transactional-pitfalls/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /dao-jpa-criteria-old/src/main/java/hello/dao/oneToMany/CommentDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Comment; 5 | 6 | import java.util.List; 7 | 8 | public interface CommentDao extends BaseDao { 9 | 10 | public List findByPostId(Long postId); 11 | } 12 | -------------------------------------------------------------------------------- /hibernate-cache-2-level/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-composite-key/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hibernate-equals-hashcode/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /hibernate-orphan-removal/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-static-metamodel/src/main/java/hello/dao/oneToMany/CommentDao.java: -------------------------------------------------------------------------------- 1 | package hello.dao.oneToMany; 2 | 3 | import hello.dao.BaseDao; 4 | import hello.entity.oneToMany.Comment; 5 | 6 | import java.util.List; 7 | 8 | public interface CommentDao extends BaseDao { 9 | 10 | public List findByPostId(Long postId); 11 | } 12 | -------------------------------------------------------------------------------- /logging-hibernate/src/main/java/hello/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonReference/CommentRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonReference; 2 | 3 | import hello.entity.jsonReference.Comment; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface CommentRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /security-jdbc-remember-me/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-datajpatest/src/main/java/hello/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /test-dbunit-testcontainer/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-spring-with-profile/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /test-spring-with-profile/src/main/java/net/lkrnac/blog/testing/mockbeanv2/beans/AddressDao.java: -------------------------------------------------------------------------------- 1 | package net.lkrnac.blog.testing.mockbeanv2.beans; 2 | 3 | import org.springframework.stereotype.Repository; 4 | 5 | @Repository 6 | public class AddressDao { 7 | public String readAddress(String userName) { 8 | return "3 Dark Corner"; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /transaction-declarative/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /transaction-programmatic/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-element-collection/src/main/java/hello/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.User; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface UserRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /jpa-liquibase-profile-test/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /jpa-one-to-one/src/main/java/hello/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.User; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface UserRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /rest-jpa-date-audit-entity/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /rest-jpa-jackson-infinite-recursion/src/main/java/hello/repository/jsonIdentityInfo/CatalogRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.jsonIdentityInfo; 2 | 3 | import hello.entity.jsonIdentityInfo.Catalog; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | 6 | public interface CatalogRepository extends JpaRepository { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /rest-jpa-store-json-to-db/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /security-memory-http-basic/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /security-memory-login-form/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/exception/NotFoundException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotFoundException extends BaseException { 4 | 5 | private static final long serialVersionUID = 38816005992204401L; 6 | 7 | public NotFoundException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /exception-handler-controller/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /form-with-validate/readme.md: -------------------------------------------------------------------------------- 1 | # Validate with Spring 2 | 3 | ### Two approach: 4 | 1. With annotation (javax.validation.constraints.*) see example: 5 | `/src/main/java/examples/model/annotations/DataWithAnnotationValidate.java` 6 | 2. With Validator (org.springframework.validation.Validator) see example: 7 | `/src/main/java/examples/validate/DataValidator.java` -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/src/main/java/hello/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /test-rest-jpa/src/test/java/hello/mock_mvc/controller/spring_runner/ConfigTest.java: -------------------------------------------------------------------------------- 1 | package hello.mock_mvc.controller.spring_runner; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("hello") 8 | public class ConfigTest { 9 | } 10 | -------------------------------------------------------------------------------- /file-upload/src/main/java/hello/storage/StorageException.java: -------------------------------------------------------------------------------- 1 | package hello.storage; 2 | 3 | public class StorageException extends RuntimeException { 4 | 5 | public StorageException(String message) { 6 | super(message); 7 | } 8 | 9 | public StorageException(String message, Throwable cause) { 10 | super(message, cause); 11 | } 12 | } -------------------------------------------------------------------------------- /hibernate-pre-post-annotation/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-one-to-many-bidirectional/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/src/main/java/hello/repository/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/exception/NotFoundException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotFoundException extends BaseException { 4 | 5 | private static final long serialVersionUID = 38816005992204401L; 6 | 7 | public NotFoundException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /security-memory-http-basic-api/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-spock/src/main/java/hello/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface EmployeeRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /cache-rest-jpa/src/main/java/hello/exception/ErrorCode.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public enum ErrorCode { 4 | 5 | OBJECT_NOT_FOUND(1), 6 | ; 7 | 8 | private final int code; 9 | 10 | private ErrorCode(int code){ 11 | this.code = code; 12 | } 13 | 14 | public int getValue(){ 15 | return code; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /hibernate-structure/src/main/java/example/dao/Dao.java: -------------------------------------------------------------------------------- 1 | package example.dao; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | public interface Dao { 7 | List getAll(); 8 | T getByKey(PK key); 9 | void persist(T entity); 10 | void saveOrUpdate(T entity); 11 | void delete(T entity); 12 | void flush(); 13 | } 14 | -------------------------------------------------------------------------------- /jdbc-template/src/test/java/hello/dao/impl/with_config_scan/EmployeeDaoImplTestConfig.java: -------------------------------------------------------------------------------- 1 | package hello.dao.impl.with_config_scan; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("hello") 8 | public class EmployeeDaoImplTestConfig { 9 | } 10 | -------------------------------------------------------------------------------- /jpa-one-to-many-unidirectional/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /logging-log4j/src/main/java/hello/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface EmployeeRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /logging-log4j2/src/main/java/hello/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface EmployeeRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /rest-aop/src/main/java/hello/exception/AccessDeniedException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class AccessDeniedException extends BaseException { 4 | 5 | private static final long serialVersionUID = 8178368916339356132L; 6 | 7 | public AccessDeniedException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /rest-aop/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/dto/ProductTypeDto.java: -------------------------------------------------------------------------------- 1 | package hello.dto; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 4 | import hello.entity.ProductType; 5 | 6 | /** 7 | * Ignore collection: Set products; 8 | */ 9 | @JsonIgnoreProperties("products") 10 | public class ProductTypeDto extends ProductType { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /rest-jpa-update/src/main/java/hello/repository/EmployeeRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.entity.Employee; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface EmployeeRepository extends JpaRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-jpa/src/main/java/hello/repository/oneToMany/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.oneToMany; 2 | 3 | import hello.entity.oneToMany.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | } 10 | -------------------------------------------------------------------------------- /routes/src/main/java/examples/controller/extend/CompanyController.java: -------------------------------------------------------------------------------- 1 | package examples.controller.extend; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | @RequestMapping("/companies") 8 | public class CompanyController extends AbstractApiController { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /routes/src/main/resources/templates/simple-get.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting Started: Serving Web Content 5 | 6 | 7 | 8 |

simple get - not params - @GetMapping("/simple-get")

9 | 10 | -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /test-mvc/src/main/java/hello/repository/oneToMany/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.oneToMany; 2 | 3 | import hello.entity.oneToMany.Post; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends JpaRepository { 9 | } 10 | -------------------------------------------------------------------------------- /test-security-memory-basic-rest/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-security-memory-login-form/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /test-spock/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /dao-jpa-criteria/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /file-upload-simple/src/main/java/hello/storage/StorageException.java: -------------------------------------------------------------------------------- 1 | package hello.storage; 2 | 3 | public class StorageException extends RuntimeException { 4 | 5 | public StorageException(String message) { 6 | super(message); 7 | } 8 | 9 | public StorageException(String message, Throwable cause) { 10 | super(message, cause); 11 | } 12 | } -------------------------------------------------------------------------------- /jackson-annotation/src/main/java/jsonList/JsonList.java: -------------------------------------------------------------------------------- 1 | package jsonList; 2 | 3 | import java.util.List; 4 | 5 | public class JsonList { 6 | private List numbers; 7 | 8 | public List getNumbers() { 9 | return numbers; 10 | } 11 | 12 | public void setNumbers(List numbers) { 13 | this.numbers = numbers; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /jpa-one-to-one/src/main/java/hello/repository/UserProfileRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository; 2 | 3 | import hello.model.UserProfile; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface UserProfileRepository extends JpaRepository { 9 | 10 | } -------------------------------------------------------------------------------- /logging-log4j/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /logging-log4j2/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-docs-api/src/main/java/hello/repository/oneToMany/PostRepository.java: -------------------------------------------------------------------------------- 1 | package hello.repository.oneToMany; 2 | 3 | import hello.entity.oneToMany.Post; 4 | import org.springframework.data.repository.CrudRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface PostRepository extends CrudRepository { 9 | } 10 | -------------------------------------------------------------------------------- /rest-jpa-dto-mapper/src/main/java/hello/exception/ErrorCode.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public enum ErrorCode { 4 | 5 | OBJECT_NOT_FOUND(1), 6 | ; 7 | 8 | private final int code; 9 | 10 | private ErrorCode(int code){ 11 | this.code = code; 12 | } 13 | 14 | public int getValue(){ 15 | return code; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /rest-jpa-update/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } -------------------------------------------------------------------------------- /rest-template/src/main/java/hello/exception/NotValidParamsException.java: -------------------------------------------------------------------------------- 1 | package hello.exception; 2 | 3 | public class NotValidParamsException extends BaseException { 4 | 5 | private static final long serialVersionUID = -1066219052235780119L; 6 | 7 | public NotValidParamsException(String message, ErrorCode code) { 8 | super(message, code); 9 | } 10 | } --------------------------------------------------------------------------------