Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. @Entity
  2. public class Receipt extends Base {
  3.  
  4. //other model fields
  5.  
  6. @Column(name="email")
  7. private String Email;
  8.  
  9. @ManyToOne
  10. @JoinColumn(name="store_id")
  11. private Store Store;
  12.  
  13. //getters & setters
  14. }
  15.  
  16. where.and(q.Email.eq("some@email.com"));
  17.  
  18. where.and(q.Email.eq("some@email.com")).and(q.Store.id.eq(1));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement