case classLens[O, V](get: (O) ⇒ V, set: (O, V) ⇒ O) extends Product with Serializable
A dead simple lens to provide a getter and a setter for
lifecycle model/table fields like 'id' and 'version'.
This implementation is by no means target as a general Lens library. It's sole purpose is
to provide an abstraction for setting and getting first level fields on an arbitrary model.
get
function mapping O -> V
where O is the Object we want to 'look' inside and V the value of the field we want to extract
set
function to assign a the a new value to field affect by this Lens.
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
A dead simple lens to provide a getter and a setter for lifecycle model/table fields like 'id' and 'version'.
This implementation is by no means target as a general Lens library. It's sole purpose is to provide an abstraction for setting and getting first level fields on an arbitrary model.
function mapping O -> V where O is the Object we want to 'look' inside and V the value of the field we want to extract
function to assign a the a new value to field affect by this Lens.