entity to module