• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB QL

 
Suneesh Raman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using the Sun Server Platform Edition 8 . I am using deployment tool for deploying my Entity bean I am getting the following error

Deploy action running...
Deployment failed on target localhost:4848_server : Fatal Error from EJB Compiler -- JDO74025: JDOCodeGenerator: Caught an Exception validating CMP bean 'AccountBean' in application 'Account' module 'ejb-jar-ic': JDO75006: Invalid EJBQL query
Bean: AccountBean
Method: testbean.Account findAccount(double)
EJBQL: Select OBJECT(p) from accountbean AS p where p.balance >?1
Error: column(23): JDO75313: Identifier 'accountbean' does not denote abstract schema type.
JDO75006: Invalid EJBQL query
Bean: AccountBean
Method: java.util.Collection findBigAccounts(double)
EJBQL: Select OBJECT(p) from accountbean AS p where p.balance >?1
Error: column(23): JDO75313: Identifier 'accountbean' does not denote abstract schema type

Please reply if any one has any idea ?

Thanks
Suneesh VR
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into the ejb-jar file for schema name. It should be same as in ejb-ql.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Suneesh VR:
Bean: AccountBean
Method: testbean.Account findAccount(double)
EJBQL: Select OBJECT(p) from accountbean AS p where p.balance >?1
It's been a while since I've had to touch the EJB-QL queries I wrote a year ago, but is it case sensitive when it comes to bean names?
[ January 31, 2005: Message edited by: David Harkness ]
 
Suneesh Raman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Damanjit & David It worked !!
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its case sensitive.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic