I would like to know how to retrieve an entity using a manager when I want it to compaire two strings. For example I have seen examples do this
public Password findPasswordById(Long id) throws Exception
{
return manager.find(Password.class, id);
}
but I want to retrieve the Password object using two strings, a username, and a domain_name.
If any one could point me to examples of this or help me directly I would be greatful.