| Author |
EJB3 + Return type for database count query
|
akhil achuthan
Ranch Hand
Joined: Mar 29, 2006
Posts: 69
|
|
|
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?
|
 |
Amit Ghorpade
Bartender
Joined: Jun 06, 2007
Posts: 2551
|
|
|
"dragon bull" please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
|
SCJP, SCWCD.
|Asking Good Questions|
|
 |
 |
|
|
subject: EJB3 + Return type for database count query
|
|
|