company.setName("WebPieces LLC");</BUG>
UserTestDbo user = new UserTestDbo();
user.setEmail("dean@sync.xsoftware.biz");
user.setName("SomeName");
<BUG>user.setCompany(company);
mgr.persist(company);</BUG>
mgr.persist(user);
mgr.flush();
return Actions.redirect(HibernateRouteId.DISPLAY_ENTITY, "id", user.getId());
}

@Singleton
public class HibernateController {
private static final Logger log = LoggerFactory.getLogger(HibernateAsyncController.class);
public Redirect save() {
EntityManager mgr = Em.get();
UserTestDbo user = new UserTestDbo();
user.setEmail("dean@sync.xsoftware.biz");
user.setName("SomeName");
mgr.persist(user);
mgr.flush();
return Actions.redirect(HibernateRouteId.DISPLAY_ENTITY, "id", user.getId());
}
