Hi guys
I was just wondering if someone could explain what seems like an obvious issue to me, but something I'm finding very hard to get around.
If I goto the page displaying the value for 'name' I get the expected result, however if the value is changed in the database and I move
away from the page and back again, I still get the
original value, not the updated value.
Whilst debugging my code, I can see that it goes into the .getUser(int userId) method in the Service again,
so I'd expect it to get the ;atest data from the database but it doesn't. I've tried _em.refresh(userDao) but get an error about the
Entity not being managed even if I add @ManagedBean("userDao") to the Entity bean,
and I've tried _em.clear() but still I get the original data.
Here is the
test code....
Service:
Entity
Controller
Thanks in advance