Code:
DEBUG - HQL: SELECT u FROM com.ontometrics.web.test.User AS u WHERE u.Email = :email
DEBUG - SQL: select user0_.user_id as user_id, user0_.password as password, user0_.last as last, user0_.first as first, user0_.email as email, user0_.experience as experience from User user0_ where (user0_.email=? )
DEBUG - select user0_.user_id as user_id, user0_.password as password, user0_.last as last, user0_.first as first, user0_.email as email, user0_.experience as experience from User user0_ where (user0_.email=? )
DEBUG - about to open: 0 open PreparedStatements, 0 open ResultSets
Hibernate: select user0_.user_id as user_id, user0_.password as password, user0_.last as last, user0_.first as first, user0_.email as email, user0_.experience as experience from User user0_ where (user0_.email=? )
DEBUG - preparing statement
DEBUG - Connection preparing statement
DEBUG - binding 'bill@mickeysoft.com' to parameter: 1
DEBUG - Results from batcher: com.mysql.jdbc.ResultSetMetaData@cdd63c - Field level information:
test . user0_(user) . password(password), Mysql type: 253
test . user0_(user) . last(last), Mysql type: 253
test . user0_(user) . first(first), Mysql type: 253
You can see that it is translating the HQL to SQL properly, but then, for some reason, it returns a result set that only has three fields. I tried to walk through this in the debugger. If I take the query and feed it to MySQL at the command line, it returns the expected results.