pushoo-sharma / production_reference

Welcome to the comprehensive guide for building high-quality Spring Boot applications! This production reference outlines the best practices and essential considerations to ensure the development of robust, scalable, and maintainable modern-day Spring Boot applications.
0 stars 0 forks source link

Remove createdAt field from DTO using DTO Projections #6

Open pushoo-sharma opened 11 months ago

pushoo-sharma commented 11 months ago

Description

Currently, we have a DTO (BookmarkDTO) that includes the createdAt field. We want to create a DTO projection that excludes the createdAt field for certain use cases.

Proposed Approaches

1. Interface-Based Approach

2. Class-Based Approach