Use DTO pattern instead of using entities directly if you insists to standardize your framework (EJB, JPA, JSF , and other JSR-ed techs) , otherwise you must inject something like hibernate remote lazy loading into your framework which makes you dependent on Hibernate,
https://www.hibernate.org/377.html