Query parameter using entity not work in MySQL

Hi Team,

Attached a demo project with very simple data model: students many-to-one clazz.

problem is that in student brower, the following code seems don’t work in MySQL(5.7.2), but I tested in HSQL, it works:

    public List<Student> loadByClazzes(List<Clazz> clazzes) {
        List<Student> students = dataManager.load(Student.class)
                .query("select e from demo_Student e where e.clazz in :clazz")
                .parameter("clazz", clazzes)
        return students;

Please help check if this is a problem.

demo.zip (88.9 KB)

1 Like

thank you for reporting the problem. We have created an issue

1 Like