diff --git a/reference/en/modules/basic_mapping.xml b/reference/en/modules/basic_mapping.xml index 5be327dcf0..593eaa818c 100644 --- a/reference/en/modules/basic_mapping.xml +++ b/reference/en/modules/basic_mapping.xml @@ -1057,7 +1057,7 @@ - + version (optional) @@ -1082,7 +1082,7 @@ type="typename" access="field|property|ClassName" unsaved-value="null|negative|undefined" - generated="true|false" + generated="never|always" insert="true|false" node="element-name|@attribute-name|element/@attribute|." />]]> @@ -1121,7 +1121,7 @@ - generated (optional - defaults to false): + generated (optional - defaults to never): Specifies that this version property value is actually generated by the database. See the discussion of generated properties. @@ -1152,7 +1152,7 @@ - + timestamp (optional) @@ -1177,7 +1177,7 @@ access="field|property|ClassName" unsaved-value="null|undefined" source="vm|db" - generated="true|false" + generated="never|always" node="element-name|@attribute-name|element/@attribute|." />]]> @@ -1223,7 +1223,7 @@ - generated (optional - defaults to false): + generated (optional - defaults to never): Specifies that this timestamp property value is actually generated by the database. See the discussion of generated properties. @@ -1240,7 +1240,7 @@ - + property @@ -1277,7 +1277,7 @@ unique="true|false" not-null="true|false" optimistic-lock="true|false" - generated="true|false" + generated="never|insert|always" node="element-name|@attribute-name|element/@attribute|." index="index_name" unique_key="unique_key_id" @@ -1356,7 +1356,7 @@ - generated (optional - defaults to false): + generated (optional - defaults to never): Specifies that this property value is actually generated by the database. See the discussion of generated properties. @@ -3242,7 +3242,7 @@ public class Customer implements Serializable { - + Generated Properties Generated properties are properties which have their values generated by the @@ -3260,6 +3260,22 @@ public class Customer implements Serializable { simple properties can be marked as generated. + + never (the default) - means that the given property value + is not generated within the database. + + + insert - states that the given property value is generated on + insert, but is not regenerated on subsequent updates. Things like created-date would + fall into this category. Note that even thought + version and + timestamp properties can + be marked as generated, this option is not available there... + + + always - states that the property value is generated both + on insert and on update. +