Working without EntityManager