diff --git a/reference/en/modules/basic_mapping.xml b/reference/en/modules/basic_mapping.xml
index 2b1c5bfcef..6d5c5ea2bc 100644
--- a/reference/en/modules/basic_mapping.xml
+++ b/reference/en/modules/basic_mapping.xml
@@ -509,17 +509,18 @@
immutable and read-only entity to a given SQL subselect expression:
-
-
-
- select id, name as ident, address as loc, 'human' as species from humans
- union
- select id, ident, planet as loc, species from aliens
-
-
-
-
- ...]]>
+
+
+ select item.name, max(bid.amount), count(*)
+ from item
+ join bid on bid.item_id = item.id
+ group by item.name
+
+
+
+
+ ...
+ ]]>
Declare the tables to synchronize this entity with, ensuring that auto-flush happens
@@ -2572,15 +2573,15 @@
-
- column, formula and subselect elements
-
- Any mapping element which accepts a column attribute will alternatively
- accept a <column> subelement. Likewise, <formula>
- is an alternative to the formula attribute.
-
+
+ column and formula elements
+
+ Any mapping element which accepts a column attribute will alternatively
+ accept a <column> subelement. Likewise, <formula>
+ is an alternative to the formula attribute.
+
- ]]>
- SQL expression]]>
+ SQL expression]]>
-
- column and formula attributes may even be combined
- within the same property or association mapping to express, for example, exotic join
- conditions.
-
-
-
+ column and formula attributes may even be combined
+ within the same property or association mapping to express, for example, exotic join
+ conditions.
+
+
+
'MAILING'
]]>
-
- The <subselect> element is an alternative to the
- subselect attribute, and lets you map an entity class to
- the result set of some query. (This is useful if you can't define a view, for
- some reason.)
-
-
-
-
- select item.name, max(bid.amount), count(*)
- from item
- join bid on bid.item_id = item.id
- group by item.name
-
-
-
-
- ...
-]]>
-
-
-
+