Files
main/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/dto-conventions.mdc
T
2025-02-17 17:50:15 +05:30

6 lines
389 B
Plaintext

---
description: Sets standards for Data Transfer Objects (DTOs), typically records, including parameter validation in compact canonical constructors.
globs: **/src/main/java/com/example/dtos/*.java
---
- Must be of type record, unless specified in a prompt otherwise.
- Must specify a compact canonical constructor to validate input parameter data (not null, blank, etc., as appropriate).