Я напишу функцию hibernate createcriteria в моем проекте, как это
Hibernatesession.createCriteria(Salesman.class).add(Restrictions.ilike("email", email)).list();
Адрес электронной почты здесь является переменной, и я правильно понял это на своей странице dao.
Но запрос, полученный здесь в консоли:
select this_.id as id28_0_, this_.city_id as city2_28_0_, this_.state_id as state3_28_0_, this_.firstname as firstname28_0_, this_.lastname as lastname28_0_, this_.address as address28_0_, this_.zip as zip28_0_, this_.phone as phone28_0_, this_.suit as suit28_0_, this_.username as username28_0_, this_.password as password28_0_, this_.email as email28_0_, this_.status as status28_0_, this_.created_at as created14_28_0_ from test_mydrdirect.salesman this_ where lower(this_.email) like ?
вместо него должна печататься в консоли, как это
select this_.id as id28_0_, this_.city_id as city2_28_0_, this_.state_id as state3_28_0_, this_.firstname as firstname28_0_, this_.lastname as lastname28_0_, this_.address as address28_0_, this_.zip as zip28_0_, this_.phone as phone28_0_, this_.suit as suit28_0_, this_.username as username28_0_, this_.password as password28_0_, this_.email as email28_0_, this_.status as status28_0_, this_.created_at as created14_28_0_ from test_mydrdirect.salesman this_ where lower(this_.email) like 'test@gmail.com'
вместо test@gmail.com
спящий принт просто '?' в консоли. Кто-нибудь знает, почему этот отпечаток такой.