I updated the posts table and adjusted the sequence generation.
Implemented full CRUD functionality in PostService and PostController.
Configured DTO objects and integrated MapStruct for entity mapping.
Comprehensive unit tests for the PostController were added.
Description
This PR encapsulates a series of changes and enhancements to implement and test the /posts endpoint fully. Below is a detailed breakdown of the changes:
Commits Overview:
update posts table names:
Refined the posts table structure by updating column names for better clarity and alignment with project conventions.
use LocalDateTime:
Updated timestamp fields to use LocalDateTime for accurate date-time handling in the Post entity.
change bigint to long:
Changed column types from bigint to long where appropriate, ensuring consistency with Java data types.
configure PostService, add all CRUD endpoints:
Implemented the full range of CRUD operations within the PostService and exposed them via PostController.
Introduced methods to create, read, update, and delete posts.
update PostController, comment test code out:
Updated the PostController to integrate the new CRUD operations.
Temporarily commented out some test code for further refinement and integration.
setup DTO objects and MapStruct mapper interface, update service layer:
Created PostRequestDTO and PostResponseDTO for clean data handling.
Configured MapStruct for automatic mapping between DTOs and entities.
Refined the service layer to utilize these DTOs effectively.
add tests for PostController and update MapStruct and Lombok configurations:
Developed comprehensive unit tests for the PostController to ensure robust functionality.
Updated MapStruct and Lombok configurations to support the new DTO mappings and service logic.
update posts table and fix sequence generation:
Finalized the posts table updates and fixed issues related to sequence generation, ensuring smooth operation during data insertion and retrieval.
TL;DR
Description
This PR encapsulates a series of changes and enhancements to implement and test the /posts endpoint fully. Below is a detailed breakdown of the changes:
Commits Overview: