Changed the scope of the properties from private to protected inside the AbstractEntity class.