Modified Repository base class

Repository base class was modified so that the responsibility of
creating the EntityManager is moved from the Sea framework to the child
application