Thanks, after I config hibernate.cfg.xml to show query using <property
name="hibernate.show_sql">true</property>,
I found the query is wrong:
select
user0_.id as id0_,
user0_.userName as userName0_,
user0_.password as password0_
from
test.test.user user0_
where
user0_.userName=?
it goes to test.test.user instead of test.user, it is because the
hibernate.cfg.xml is wrong:
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/
test</property>
<property name="hibernate.default_schema">test</property>
just remove the default_schema property would fix it.
I think the way querydsl finds the schema is: "connection.url" +
"default_schema".
On Feb 21, 4:17 pm, Timo Westkämper <
timo.westkam...@mysema.com>
wrote: