Details
Description
For single field identities of entities Castor internaly holds the object identity itself while multi field identities are wrapped by Complex class. According to this design single and multi field identities need to be treated different in many places by:
if (object instanceof Complex) {
// handle multi filed identity
} else {
// handle single field identity
}
desicions. To omit this all identities should be wrapped by Complex class.
Patch of work in progress. Replaced single identity objects and Complex class at all areas where identities are handled with a new Identity class. Only relation fields are missing at the moment. Will rename new Identity class to Complex after the old when have been thrown out everywhere.