Modified to extend AbstractIdEntity abstract class which has common columns
Modified to include Objects rather than IDs.