From jpyeron at pdinc.us Wed Jul 22 12:52:18 2020 From: jpyeron at pdinc.us (Jason Pyeron) Date: Wed, 22 Jul 2020 12:52:18 -0400 Subject: [hibernate-users] did I find a bug or is my brain not working? it should be an AND not an OR Message-ID: <1908e01d66048$7612e570$6238b050$@pdinc.us> In my criteria I have root.get(Signature_.parent).isNotNull() is producing this in the where clause (signature0_.parent is not null or signature0_.request_id is not null) >From the Entity: @ManyToOne @JoinColumns ({ @JoinColumn(name = "request_id", referencedColumnName = "request_id", insertable = false, updatable = false), @JoinColumn(name = "parent", referencedColumnName = "id", insertable = false, updatable = false) }) public Signature getParent() using hibernate 5.2.18 -- Jason Pyeron | Architect PD Inc | 10 w 24th St | Baltimore, MD | .mil: jason.j.pyeron.ctr at mail.mil .com: jpyeron at pdinc.us tel : 202-741-9397