Running the following SQL:
"from Report report where report.fatherReport is ?"
generates the following mySql query:
"Hibernate: select report0_.report_id as report1_, report0_.pos as pos29_, report0_.name as name29_, report0_.img as img29_, report0_.father_id as father5_29_, report0_.report_subject_id as report6_29_ from report report0_ where report0_.father_id=?"
The "is ?" is replaced with: "= ?".
Windows, Linux, JDeveloper