record count -- hibernate

how to get the list size without calling .list() in hibernateplease give me some ideathanks in advance
[123 byte] By [k_rain777a] at [2007-10-2 2:07:56]
# 1
i have some problem like, i have to get the size of the select queryresult, before executing the query, that means with our calling .list() i have to get the query result size pleaseany idea?
k_rain777a at 2007-7-15 19:49:25 > top of Java-index,Java Essentials,Java Programming...
# 2

> i have some problem like, i have to get the size of

> the select queryresult, before executing the query,

> that means with our calling .list() i have to get the

> query result size

>

> please

> any idea?

Yes. You should rethink your design. Stored data can change, you could be working with cached objects, etc. Knowing the size of the result set (much less the somewhat silly request to know it before you know it) is not a good foundation on which to build your application.

yawmarka at 2007-7-15 19:49:25 > top of Java-index,Java Essentials,Java Programming...
# 3
> how to get the list size without calling .list() in hibernateWhy do you think you need to do that?
yawmarka at 2007-7-15 19:49:25 > top of Java-index,Java Essentials,Java Programming...