Hibernate querycount query, dont know how to do

Posted by kevinb92 on Stack Overflow See other posts from Stack Overflow or by kevinb92
Published on 2010-04-02T08:53:04Z Indexed on 2010/04/02 9:13 UTC
Read the original article Hit count: 241

Filed under:
|

I want to make an hibernate querycount on a table.

I have to values, one string and one boolean

HibernateUtil.queryCount(VoteOnPublication.class, new String[] {VOTED_PUBLICATION_ID_FIELD, FOR_OR_AGAINST_FIELD}, **********);

my voted_publication_id_field is a string, and my for or against field is a boolean.

What should i put in my second part of the query ? I first put : new String[] {publication.getId(),true.toString() but that didnt work. i think the new String is the mistake but i dont know what to put

© Stack Overflow or respective owner

Related posts about hibernate

Related posts about java