Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- public class Receipt extends Base {
- //other model fields
- @Column(name="email")
- private String Email;
- @ManyToOne
- @JoinColumn(name="store_id")
- private Store Store;
- //getters & setters
- }
- where.and(q.Email.eq("some@email.com"));
- where.and(q.Email.eq("some@email.com")).and(q.Store.id.eq(1));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement