I have a simple
Criteria, like this:
final Criteria players = session.createCriteria(Players.class).add(Restrictions.idEq(1)); final Criteria team = players.createCriteria("team","team").add(notDeleted());
i need a player with
ID=1 and the team is not deleted this is working OK but i need the
Owner of the team and the address of the owner. strangely this is not working..
This is not working neither:
here i have the owner but i dont have the address. but
Address is not fetched. Why this is i have the owner i can have the Address??
But this is working.
any help is hugely appreciate.
thanks a lot.
my model is simple.
a team has a lot a player 1-N relationship. a team has a owner. N-1 relationship. a owner has a address.