spring-data-jpa
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorking with JPA Entities
JPA 实体开发规范
When the task involves creating or modifying a JPA entity:
- If entity conventions have not been detected yet in this conversation — check memory for previously saved conventions first. If found in memory, reuse them. Otherwise read and follow all substeps there to detect project conventions.
references/entity-conventions.md - Read and follow the rules there when writing or modifying the entity
references/entity-rules-impl.md
当任务涉及创建或修改JPA实体时:
- 如果本次对话中尚未检测到实体规范——首先检查内存中是否保存了之前的规范。如果找到,则复用这些规范。否则,请阅读并遵循其中所有子步骤来检测项目规范。
references/entity-conventions.md - 阅读并遵循其中的规则来编写或修改实体
references/entity-rules-impl.md
Reviewing JPA Patterns
JPA 模式评审
When the user asks to review JPA patterns, conventions, or code quality in the project:
- Detect current conventions by following (steps 1.1–1.5).
references/entity-conventions.md - Compare the detected conventions against the best practices defined in . For each deviation, output a recommendation in the format:
references/entity-rules-impl.md
undefined当用户要求评审项目中的JPA模式、规范或代码质量时:
- 遵循中的步骤1.1–1.5来检测当前规范。
references/entity-conventions.md - 将检测到的规范与中定义的最佳实践进行对比。对于每一处偏差,按照以下格式输出建议:
references/entity-rules-impl.md
undefinedJPA Review
JPA Review
[Convention or pattern name]
- Current: <what the project does>
- Recommended: <what the best practice says>
- Reason: <why this matters>
If no deviations are found — state that the project follows best practices.
---[规范或模式名称]
- Current: <项目当前做法>
- Recommended: <最佳实践要求>
- Reason: <该建议的重要性>
如果未发现偏差——说明项目符合最佳实践。
---Working with Transactions
事务处理规范
When the task involves adding or modifying transactional behavior:
- If transaction conventions have not been detected yet in this conversation — check memory for previously saved conventions first. If found in memory, reuse them. Otherwise read and follow all substeps there to detect project conventions.
references/transaction-conventions.md - Read and follow the rules there when writing or modifying transactional code.
references/transaction-rules-impl.md
当任务涉及添加或修改事务行为时:
- 如果本次对话中尚未检测到事务规范——首先检查内存中是否保存了之前的规范。如果找到,则复用这些规范。否则,请阅读并遵循其中所有子步骤来检测项目规范。
references/transaction-conventions.md - 阅读并遵循其中的规则来编写或修改事务代码。
references/transaction-rules-impl.md