I have an entity A that has a foreign key of entity B:
entity A --> id, entity_a_name, foreign_key_entity_B
When I call
return session.createCriteria(EntityA.class).list();
I get the property of entityB inside entity A as well. How do I make it lazy load so it will not load enityB if not needed?