How To Provide a Fluent API Via Additional Methods For Building Entities
Note: If you want yo provide a Fluent API by altering setters then consider this item.
Description: This is a sample application that add in entities additional methods (e.g., for setName
, we add name
) methods in order to empower a Fluent API.
Key points:
- in entities, add for each setter an additional method that return
this
instead ofvoid