Skip to content

Finish H2 DB, Entity, DTO and repository #31

Merged
LordRenDS merged 11 commits intodevfrom
db-repo
Mar 20, 2023
Merged

Finish H2 DB, Entity, DTO and repository #31
LordRenDS merged 11 commits intodevfrom
db-repo

Conversation

@LordRenDS
Copy link

Finish H2 DB, create Entity, DTO and repository

@LordRenDS LordRenDS merged commit 04ca52a into dev Mar 20, 2023
@LordRenDS LordRenDS changed the title Db repo Finish H2 DB, Entity, DTO and repository Mar 20, 2023
@LordRenDS LordRenDS deleted the db-repo branch March 20, 2023 22:20
@LordRenDS LordRenDS added this to the Sprint 1 milestone Mar 20, 2023
@LordRenDS LordRenDS added user story #1 Tasks for 1st user story 🐸 backend Tasks for backend team labels Mar 20, 2023
@LordRenDS LordRenDS self-assigned this Mar 20, 2023
@LordRenDS LordRenDS restored the db-repo branch March 26, 2023 17:52
LordRenDS added a commit that referenced this pull request Mar 26, 2023
* Configure project

* Create prepopulate sql scripts

* Create DTO for talent

* Create talent entity and related tables

* Create base SecurityConfig and TalentRepository

* Edit config and add dependencies

* Edit data and schema

* Edit entity and dto: remove @NotNull from different linked tables, remove some fields from ShortTalent

* Add to schema table: user_info, authority and user_authority

* Create entity: UserInfo, Authority and UserAuthority

* Create UserInfoRepository
LordRenDS added a commit that referenced this pull request Mar 26, 2023
* Configure project

* Create prepopulate sql scripts

* Create DTO for talent

* Create talent entity and related tables

* Create base SecurityConfig and TalentRepository

* Edit config and add dependencies

* Edit data and schema

* Edit entity and dto: remove @NotNull from different linked tables, remove some fields from ShortTalent

* Add to schema table: user_info, authority and user_authority

* Create entity: UserInfo, Authority and UserAuthority

* Create UserInfoRepository
@LordRenDS LordRenDS deleted the db-repo branch March 26, 2023 19:22
Maslyna added a commit that referenced this pull request Mar 29, 2023
* Db repo (#31)

* Configure project

* Create prepopulate sql scripts

* Create DTO for talent

* Create talent entity and related tables

* Create base SecurityConfig and TalentRepository

* Edit config and add dependencies

* Edit data and schema

* Edit entity and dto: remove @NotNull from different linked tables, remove some fields from ShortTalent

* Add to schema table: user_info, authority and user_authority

* Create entity: UserInfo, Authority and UserAuthority

* Create UserInfoRepository

* Updated TalentController
Created TalentEntityRepository
Updated TalentRepository
Created PageConfig, that takes config from application.properties
Created ShortTalentDTO
Created TalentMapper and his impl
Created TalentService and his impl
------------
Added `GET(/api/talents)` endpoint, that returns us the `List<ShortTalentDTO>`
Added pagination to `GET(/api/talents)` endpoint
    - To use pagination you may use RequestParams:
         - page (gives us requested page)
         - size (gives us requested size of page)

* Created TalentExceptionHandler
Updated TalentController
Updated TalentRepository
Created TalentEntityRepository
Created FullTalentDTO
Created TalentServiceMock
Created PageConfig, that takes config from application.properties
Created ShortTalentDTO
Created TalentMapper and his impl
Created TalentService and his impl
------------
Added `GET(/api/talents)` endpoint, that returns us the `List<ShortTalentDTO>`
Added pagination to `GET(/api/talents)` endpoint
    - To use pagination you may use RequestParams:
         - page (gives us requested page)
         - size (gives us requested size of page)
Added simple exception handling

* Updated TalentController: Added new endpoint `GET(/talents/{id})`, that returns to us the FullTalentDTO
Updated FullTalentDTO
Updated TalentMapper
Updated TalentService


* Added profiles

* Edit data.sql and schema.sql

* Edit UserAuthorityRepository, AuthenticationController, SecurityConfig and TalentServiceImpl

* Add enum Role, add findByAuthority to AuthorityRepository, do some refactor

* Refactored code
User registration returns jwt-token

* Refactored code
Created SessionInfoDTO

---------

Co-authored-by: Maslyna <sanci324@gmail.com>
Co-authored-by: Mykhailo Ordyntsev <102993813+Maslyna@users.noreply.github.com>
@LordRenDS LordRenDS removed a link to an issue Mar 30, 2023
1 task
Maslyna added a commit that referenced this pull request Apr 3, 2023
* Db repo (#31)

* Configure project

* Create prepopulate sql scripts

* Create DTO for talent

* Create talent entity and related tables

* Create base SecurityConfig and TalentRepository

* Edit config and add dependencies

* Edit data and schema

* Edit entity and dto: remove @NotNull from different linked tables, remove some fields from ShortTalent

* Add to schema table: user_info, authority and user_authority

* Create entity: UserInfo, Authority and UserAuthority

* Create UserInfoRepository

* Updated TalentController
Created TalentEntityRepository
Updated TalentRepository
Created PageConfig, that takes config from application.properties
Created ShortTalentDTO
Created TalentMapper and his impl
Created TalentService and his impl
------------
Added `GET(/api/talents)` endpoint, that returns us the `List<ShortTalentDTO>`
Added pagination to `GET(/api/talents)` endpoint
    - To use pagination you may use RequestParams:
         - page (gives us requested page)
         - size (gives us requested size of page)

* Created TalentExceptionHandler
Updated TalentController
Updated TalentRepository
Created TalentEntityRepository
Created FullTalentDTO
Created TalentServiceMock
Created PageConfig, that takes config from application.properties
Created ShortTalentDTO
Created TalentMapper and his impl
Created TalentService and his impl
------------
Added `GET(/api/talents)` endpoint, that returns us the `List<ShortTalentDTO>`
Added pagination to `GET(/api/talents)` endpoint
    - To use pagination you may use RequestParams:
         - page (gives us requested page)
         - size (gives us requested size of page)
Added simple exception handling

* Updated TalentController: Added new endpoint `GET(/talents/{id})`, that returns to us the FullTalentDTO
Updated FullTalentDTO
Updated TalentMapper
Updated TalentService

* Refactored project structure
Created pagination.properties

* BUGFIX: `BeanDefinitionStoreException: Failed to parse configuration class [com.provedcode.config.PageConfig]` (#33)

* user-story-1 (#35)

* Updated project structure

* Refactored code

* Added profiles

* bugfix (#36)

bugfix: java.io.FileNotFoundException: Could not open ServletContext resource [/pagination.properties]

* Add WebConfig (#48)

* Add @crossorigin to TalentController (#50)

* Delete WebConfig (#52)

* data.sql Update

* Edit data.sql and schema.sql

* Edit UserInfo: add user_id and @NotNull, @notempty validations

* Edit UserInfo: add @builder, @AllArgsConstructor, @NoArgsConstructor

* commit 1

* commit 2

* BugFix

* commit 3

* Edit UserAuthorityRepository, AuthenticationController, SecurityConfig and TalentServiceImpl

* Create trash in AuthenticationController

* Code refactor
BugFix: nullPointerExceptions in TalentMapperImpl were removed

* BugFix: don`t ask me

* Add enum Role, add findByAuthority to AuthorityRepository, do some refactor

* Refactored code
User registration returns jwt-token

* Refactored code
Created SessionInfoDTO

* Refactored code
Added annotation @UrlList

* Delete unused files

---------

Co-authored-by: Ren <75202059+LordRenDS@users.noreply.github.com>
Co-authored-by: Ren <sergeysolovyov2016@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐸 backend Tasks for backend team user story #1 Tasks for 1st user story

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create DB Task#2 Create Entities for DB Task#1 Create DB repository

1 participant