Merge pull request #1341 from javiereguiluz/patch-6
[doc] Minor fixes and typos
This commit is contained in:
commit
05db65d034
1 changed files with 2 additions and 3 deletions
|
@ -338,7 +338,7 @@ uses the database platforms native id generation strategy (for
|
||||||
example AUTO INCREMENT in the case of MySql or Sequences in the
|
example AUTO INCREMENT in the case of MySql or Sequences in the
|
||||||
case of PostgreSql and Oracle).
|
case of PostgreSql and Oracle).
|
||||||
|
|
||||||
Now that we have defined our first entity, lets update the database:
|
Now that we have defined our first entity, let's update the database:
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ Call this script from the command-line to see how new products are created:
|
||||||
What is happening here? Using the ``Product`` is pretty standard OOP.
|
What is happening here? Using the ``Product`` is pretty standard OOP.
|
||||||
The interesting bits are the use of the ``EntityManager`` service. To
|
The interesting bits are the use of the ``EntityManager`` service. To
|
||||||
notify the EntityManager that a new entity should be inserted into the database
|
notify the EntityManager that a new entity should be inserted into the database
|
||||||
you have to call ``persist()``. To intiate a transaction to actually perform
|
you have to call ``persist()``. To initiate a transaction to actually perform
|
||||||
the insertion, You have to explicitly call ``flush()`` on the ``EntityManager``.
|
the insertion, You have to explicitly call ``flush()`` on the ``EntityManager``.
|
||||||
|
|
||||||
This distinction between persist and flush is allows to aggregate all writes
|
This distinction between persist and flush is allows to aggregate all writes
|
||||||
|
@ -1547,4 +1547,3 @@ will be added to this tutorial incrementally, topics will include:
|
||||||
|
|
||||||
Additional details on all the topics discussed here can be found in
|
Additional details on all the topics discussed here can be found in
|
||||||
the respective manual chapters.
|
the respective manual chapters.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue