Forums Register Login

EJB3 + Return type for database count query

+Pie Number of slices to send: Send
in my application i have a query that ultimately returns a count(eg: select count(*) from TABLE_NAME ....). Executing this as a native query with ejb3's entity manager, I got a BigInteger as the return type. But another query executed the same way on another table returned me Long instead of BinInteger. Why is this so.. i mean why are the data types changing for the count operation returns? Is there any dependency that the can change the return type of the COUNT operation?
+Pie Number of slices to send: Send
"dragon bull" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
The knights of nee want a shrubbery. And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1164 times.
Similar Threads
Hibernate adding .value,.count,.offset, and hash to query
how to get num of rows in ResultSet
3 days stucked - NullPointer Persistent Unit no Caused By
JDBC method to get child tables and all its descendants
Issue when using 2 entity managers to manage one entity from one database to another
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:47:44.