How to write a query in hibernate for count(*)

前端 未结 2 828
感动是毒
感动是毒 2021-02-03 21:50

I want to execute the below query in Hibernate?

select count(*) from login where emailid=\'something\' and password=\'something\'

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-03 22:47

    other solution may be createSQLQuery("SQL STATEMENT") if you Compelled to good luck

提交回复
热议问题