You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ existing Maven project. Complete the steps in order.
20
20
21
21
| Guide | Description |
22
22
|-------|-------------|
23
-
|[Entity Bean Creation](entity-bean-creation.md)| How to generate clean, idiomatic Ebean entity beans for AI agents; patterns and anti-patterns; minimal boilerplate without getters/setters; decision tree for code generation|
23
+
|[Entity Bean Creation](entity-bean-creation.md)| How to generate clean, idiomatic Ebean entity beans for AI agents; patterns and anti-patterns; field visibility and accessor guidance; minimal boilerplate|
24
24
|[Lombok with Ebean entity beans](lombok-with-ebean-entity-beans.md)| Which Lombok annotations to use and avoid on entity beans; why `@Data` is incompatible with Ebean; how to use `@Getter` + `@Setter` + `@Accessors(chain = true)`|
Copy file name to clipboardExpand all lines: docs/guides/entity-bean-creation.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
**Target Audience:** AI systems (Claude, Copilot, ChatGPT, etc.)
4
4
**Purpose:** Learn how to generate clean, idiomatic Ebean entity beans
5
-
**Key Insight:** Ebean requires private fields with getters/setters (or other accessors), but they don't need to follow Java bean conventions; no public fields; no equals/hashCode implementation needed
5
+
**Key Insight:** Ebean entity fields must be non-public (no public fields). Getters/setters are optional, and if used they don't need JavaBeans naming conventions; no manual equals/hashCode implementation is needed
6
6
**Language:** Java
7
7
**Framework:** Ebean ORM
8
8
@@ -16,7 +16,7 @@ Before writing entity code, remember:
|`@Entity` annotation | ✅ **YES**| Marks class as persistent entity |
18
18
|`@Id` annotation | ✅ **YES**| Marks primary key field |
19
-
| Getters/setters (or other accessors) |✅**YES**|Required for field access. Don't need to follow Java bean spec; can be record-style, fluent, or any accessor pattern. |
19
+
| Getters/setters (or other accessors) |⚠️**OPTIONAL**|Ebean can use field access directly. Add accessors when your API/design needs them; naming can be JavaBeans, fluent, or custom. |
20
20
| Default constructor | ❌ **NO**| Not required. Ebean can instantiate without it. |
21
21
| equals/hashCode | ❌ **NO**| Ebean auto-enhances these at compile time. |
0 commit comments