Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Property 'sql' is required

 
pramod talekar
Ranch Hand
Posts: 328
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: 328
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