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: documentation/src/main/asciidoc/repositories/Preface.adoc
+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
@@ -16,7 +16,7 @@ On the other hand, the programming model for interacting with the database is qu
16
16
Therefore, this document will show you a different way to use Hibernate.
17
17
18
18
The coverage of Jakarta Data is intentionally inexhaustive.
19
-
If exhaustion is sought, this document should be read in conjunction with the specification, which we've worked hard to keep readable.
19
+
If exhaustion is sought, this document should be read in conjunction with https://jakarta.ee/specifications/data/1.0/jakarta-data-1.0[the specification], which we've worked hard to keep readable.
20
20
21
21
If you are unfamiliar with Hibernate, this document should be read in conjunction with:
Copy file name to clipboardExpand all lines: documentation/src/main/asciidoc/repositories/Repositories.adoc
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ public class Author {
49
49
}
50
50
----
51
51
52
-
For more information about mapping entities, see the link:{doc-introduction-url}#entities[Introduction to Hibernate 6].
52
+
For more information about mapping entities, see the link:{doc-introduction-url}#entities[Short Guide to Hibernate 7].
53
53
54
54
[NOTE]
55
55
====
@@ -138,7 +138,7 @@ A _repository interface_ is an interface written by you, the application program
138
138
The implementation of the repository interface is provided by a Jakarta Data provider, in our case, by Hibernate Data Repositories.
139
139
140
140
The Jakarta Data specification does not say how this should work, but in Hibernate Data Repositories, the implementation is generated by an annotation processor.
141
-
In fact, you might already be using this annotation processor: it's just `HibernateProcessor` from the module which used to be called `hibernate-jpamodelgen`, and has now been renamed `hibernate-processor` in Hibernate 7.
141
+
In fact, you might already be using https://hibernate.org/orm/processor/[this annotation processor]: it's just `HibernateProcessor` from the module which used to be called `hibernate-jpamodelgen`, and has now been renamed `hibernate-processor` in Hibernate 7.
142
142
143
143
[TIP]
144
144
====
@@ -147,7 +147,7 @@ If you're already using the JPA static metamodel in your project, you already ha
147
147
If you don't, we'll see how to set it up in the <<configuration-integration,next chapter>>.
148
148
====
149
149
150
-
Of course, a Jakarta Data provider can't generate an implementation of any arbitrary method.
150
+
Unlike a language model, a Jakarta Data provider can't generate an implementation of any arbitrary method based only on vibes.
151
151
Therefore, the methods of a repository interface must fall into one of the following categories:
152
152
153
153
- <<default-method,`default` methods>>,
@@ -204,7 +204,7 @@ interface AuthorRepository
204
204
}
205
205
----
206
206
207
-
We won't see `BasicRepository` and `CrudRepository` again in this document, because they're not necessary, and because they implement the older, less-flexible way of doing things.
207
+
We won't see `BasicRepository` and `CrudRepository` again in this document, because they're not necessary, and because they implement the older, completely uncool way of doing things.
208
208
209
209
Instead, our repositories will often group together operations dealing with several related entities, even when the entities don't have a single "root".
210
210
This situation is _extremely_ common in relational data models.
@@ -259,7 +259,11 @@ For that, we'll need to add a resource accessor method.
259
259
=== Resource accessor methods
260
260
261
261
A resource accessor method is one which exposes access to an underlying implementation type.
262
-
Currently, Hibernate Data Repositories only supports one such type: `StatelessSession`.
262
+
Currently, Hibernate Data Repositories supports two such implementation types:
263
+
264
+
1. `StatelessSession`, for the ordinary sort of repository we're talking about now, and
265
+
2. `Mutiny.StatelessSession`, for <<reactive-repositories,reactive repositories>>.
266
+
263
267
So a resource accessor method is just any abstract method which returns `StatelessSession`.
0 commit comments