Entity just behaves like a "bean" or "POJO" and poses very little restrictions on classes stored. Entity is the interface for any entity stored within a Database.
Advantage of using a typed data object is a) that it can be inspected to see what is in there, b) it is much easier to use the data as is intended and c) the compiler will inform you if you make a change that breaks other components depending on the Entity.
FIXME: make a common superclass for Tuple and Entity.
|
|