mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 14:52:55 +08:00
rename folder
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Sets the standards for entity class design including annotations, ID generation strategies, and relationship configurations for database interaction.
|
||||
globs: **/src/main/java/com/example/entities/*.java
|
||||
---
|
||||
- Must annotate entity classes with @Entity.
|
||||
- Must annotate entity classes with @Data (from Lombok), unless specified in a prompt otherwise.
|
||||
- Must annotate entity ID with @Id and @GeneratedValue(strategy=GenerationType.IDENTITY).
|
||||
- Must use FetchType.LAZY for relationships, unless specified in a prompt otherwise.
|
||||
- Annotate entity properties properly according to best practices, e.g., @Size, @NotEmpty, @Email, etc.
|
||||
Reference in New Issue
Block a user