Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB QL  RSS feed

 
Ravi Nal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a sysbase query
select dateadd(minute,10,last_changed_datetime) from DomainValuesTable
i need to write a equivalent using EJB QL,
any help/pointer appreciated.
Thanks,
hiock
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why? This is exactly the sort of thing you would execute from a DAO -- it's NOT selecting a subset of EJB's (it's getting a single column of calculated values for gosh sakes) so why try to write it as EJB-QL? What's the point?
Kyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!