Convert Entity to an abstract class from an interface