Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Property 'sql' is required

 
pramod talekar
Ranch Hand
Posts: 345
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Could you please advise on the below error :




Below is the main class.


Below is the test class.


The datasource configuration is valid.
Also should this be called in the setter method itself or in the findAll() method?

Please advise.
 
pramod talekar
Ranch Hand
Posts: 345
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if I change the setter method to this and remove it from findAll() , I get below error :

 
vaijesh basavarajappa
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you missed out driverClassName property while configuring datasource.

Vaijesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic