3.2. Naming Rules
| Target | Rule | Example |
|---|---|---|
| Package | Lowercase, singular | com.tienipia.flowin.user |
| Class / Interface | UpperCamelCase | UserService, Pageable |
| Method | lowerCamelCase, starts with a verb | findByEmail(), createUser() |
| Variable | lowerCamelCase | userName, totalCount |
| Constant | UPPER_SNAKE_CASE | MAX_RETRY_COUNT, DEFAULT_PAGE_SIZE |
| Enum value | UPPER_SNAKE_CASE | ACTIVE, PENDING_APPROVAL |
| Test method | Descriptive naming permitted | should_find_user_by_email() |
3.2.1. Class Suffix Rules
| Layer | Suffix | Example |
|---|---|---|
| Controller | Controller | UserController |
| Service | Service | UserService |
| Service Implementation | ServiceImpl | UserServiceImpl |
| Repository | Repository | UserRepository |
| DTO Request | Request | CreateUserRequest |
| DTO Response | Response | UserResponse |
| Configuration | Config | SecurityConfig |
| Exception | Exception | UserNotFoundException |