[hibernate-users] did I find a bug or is my brain not working? it should be an AND not an OR

Jason Pyeron jpyeron at pdinc.us
Wed Jul 22 12:52:18 EDT 2020


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





More information about the hibernate-users mailing list