Modify the entity persister so just one bean is necessary

Signed-off-by: Renato Mendes <renato.mendes.1123@gmail.com>