0 Replies Latest reply on Jun 28, 2005 4:14 PM by Robert Slaght

    How to retrieve an entity using EJB3

    Robert Slaght Newbie

      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.