8000 mention useful @Loader annotation in doc · hibernate/hibernate-reactive@c2befb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2befb1

Browse files
gavinkingDavideD
authored andcommitted
mention useful @loader annotation in doc
1 parent 918e439 commit c2befb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

documentation/src/main/asciidoc/reference/introduction.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ These Hibernate annotations are also quite useful to know about:
446446
| `@Fetch` | Specifies the fetching mode for an association
447447
| `@BatchSize` | Specifies the batch size for batch fetching an
448448
association
449+
| `@Loader` | Specifies a named query used to fetch an entity by
450+
id (for example, when `find(type, id)` is called)
451+
in place of the default SQL generated by Hibernate
449452
| `@SqlInsert`, `@SqlUpdate`, `@SqlDelete` | Specify custom DML for entity operations
450453
| `@NaturalId` | Marks a field or fields as an alternative "natural"
451454
identifier (unique key) of the entity

0 commit comments

Comments
 (0)
0