title: How to query (EBean & Play Framework) to see if a certain value is in a certain column in a certain table?
body: <p>So, I have set up a registration form that saves info to a database in Play Framework. Don't get caught up on the nonexistant password security, I haven't gotten to that.</p>
  
  <p>I need a way to check to see if an email is already in the user database. I'm simply not sure how to do that with Ebean.</p>
  
  <p>The form model is stored here: <a href="https://github.com/Axsel/PonyCentral/blob/master/app/models/RegisterForm.java" rel="nofollow">https://github.com/Axsel/PonyCentral/blob/master/app/models/RegisterForm.java</a> | In the validation method seen at the bottom of the class I need to be able to check the user table for any matching emails. The email variable from RegisterForm is direct input from the form.</p>
  
  <p>The user model that is connected to Ebean can be found here: <a href="https://github.com/Axsel/PonyCentral/blob/master/app/models/User.java" rel="nofollow">https://github.com/Axsel/PonyCentral/blob/master/app/models/User.java</a></p>
  
  <p>Lastly, if you need to see it, the form request handler can be found here: Under /app/controllers/User.java (StackOverflow won't let me link for than two things)</p>
  
  <p>If you could provide any help I would be very grateful.</p>
  
  <p>Thank you much.</p>