Skip to content

Commit a294048

Browse files
committed
HHH-14119 test showing parameter padding works with criteria literals
1 parent cdf88f6 commit a294048

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ When in the slightest doubt, map a foreign key relationship using `@ManyToOne` w
118118

119119
.What sort of logic belongs in an entity?
120120
****
121-
There exists an extensive online literature which posits that there are _rich domain model_, where entities have methods implementing interesting business logic, and _anemic domain models_, where the entities are pure data holders, and that a developer should hold an opinion that one or the other of these sorts of domain model is "better".
121+
There exists an extensive online literature which posits that there are _rich domain models_, where entities have methods implementing interesting business logic, and _anemic domain models_, where the entities are pure data holders, and that a developer should hold an opinion that one or the other of these sorts of domain model is "better".
122122
123123
We do not hold any such opinion, and if you ask us for one, we will most likely suddenly discover somewhere else we need to be.
124124
@@ -134,8 +134,8 @@ One way to summarize this is:
134134
135135
> Entities do business logic; but they don't do orchestration.
136136
137-
So which code is responsible for orchestration of things like transaction management, query execution, or event publication?
138-
Well, that's what we're about to discuss.
137+
Later, we'll discuss various ways to <<managing-transactions,manage transactions>>, <<callbacks,send event notifications>>, and <<organizing-persistence,query the database>>.
138+
Such code will always be external to the entity itself.
139139
****
140140

141141
The second part of the code is much trickier to get right. This code must:
@@ -151,11 +151,11 @@ The second part of the code is much trickier to get right. This code must:
151151
Responsibility for transaction and session management, and for recovery from certain kinds of failure, is best handled in some sort of framework code.
152152
====
153153

154-
[TIP]
155-
====
156-
A great way to handle CDI event publication is via a <<callbacks,JPA entity listener>>.
157-
Whereas we would never want to inject a CDI https://jakarta.ee/specifications/cdi/3.0/apidocs/[event publisher] into an entity object, it's perfectly fine to inject them in an entity listener.
158-
====
154+
// [TIP]
155+
// ====
156+
// A great way to handle CDI event publication is via a <<callbacks,JPA entity listener>>.
157+
// Whereas we would never want to inject a CDI https://jakarta.ee/specifications/cdi/3.0/apidocs/[event publisher] into an entity object, it's perfectly fine to inject them in an entity listener.
158+
// ====
159159

160160
We're going to <<organizing-persistence,come back soon>> to the thorny question of how this persistence logic should be organized, and how it should fit into the rest of the system.
161161
// First we want to make the ideas above concrete by seeing a simple example program that uses Hibernate in isolation.

0 commit comments

Comments
 (0)