Model field decorator factory. Using this decorator, Models
can be enriched with primitive fields. The compatible primitives are the
subset of primitives JavaScript shares with JSON, i.e., Boolean,
Date (serialized), Number and String. Objects
cannot be uses as a typeFactory argument value, as Model fields
containing objects should be declared by the HasOne and
HasMany decorators. By employing this decorator, the decorated field
will (depending on the transient argument value) be taken into account when
serializing or treemapping the Model containing the decorated field.
Model field decorator factory. Using this decorator, Models can be enriched with primitive fields. The compatible primitives are the subset of primitives JavaScript shares with JSON, i.e., Boolean, Date (serialized), Number and String. Objects cannot be uses as a
typeFactory
argument value, as Model fields containing objects should be declared by the HasOne and HasMany decorators. By employing this decorator, the decorated field will (depending on thetransient
argument value) be taken into account when serializing or treemapping the Model containing the decorated field.