Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB  RSS feed

 
shyam jakki
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to get row count using CMP Entity Bean
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!