Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ _Orphan removal_ indicates that an `Item` should be automatically deleted if it
Our data model is a set of interconnected entities, and in Java our whole dataset would be represented as an enormous interconnected graph of objects.
It's possible that this graph is disconnected, but more likely it's connected, or composed of a relatively small number of connected subgraphs.

Therefore, when we retrieve on object belonging to this graph from the database and instantiate it in memory, we simply can't recursively retrieve and instantiate all its associated entities.
Therefore, when we retrieve an object belonging to this graph from the database and instantiate it in memory, we simply can't recursively retrieve and instantiate all its associated entities.
Quite aside from the waste of memory on the VM side, this process would involve a huge number of round trips to the database server, or a massive multidimensional cartesian product of tables, or both.
Instead, we're forced to cut the graph somewhere.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.hibernate.service.JavaServiceLoadable;

/**
* On object that contributes custom HQL functions, eventually to a
* An object that contributes custom HQL functions, eventually to a
* {@link org.hibernate.query.sqm.function.SqmFunctionRegistry}, via an
* instance of {@link FunctionContributions}.
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.hibernate.service.ServiceRegistry;

/**
* On object that contributes custom types and type descriptors, eventually to
* An object that contributes custom types and type descriptors, eventually to
* a {@link org.hibernate.type.spi.TypeConfiguration}, via an instance of
* {@link TypeContributions}.
* <ul>
Expand Down