Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
EJB and other Jakarta /Java EE Technologies
EJB
shyam jakki
Ranch Hand
Posts: 37
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is it possible to get row count using CMP Entity Bean
Lasse Koskela
author
Posts: 11962
5
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
EJB
2.1 brings a new aggregate function, COUNT(), which acts just like its SQL counterpart. Before that, I'm afraid you'll have to do the count manually by fetching a collection of records and taking a size() out of that.
Author of
Test Driven
(2007) and
Effective Unit Testing
(2013) [
Blog
] [
HowToAskQuestionsOnJavaRanch
]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Complex primary key
entity beans and multiple tables
EJB-QL 2.0 & aggregate COUNT() functionality
EJB - Sum of a Column
CMP Entity Beans Vs BMP Entity Beans
More...