3

Is it possible to use without ?

In my application I use JdbcTemplate. Can this be wired to spring-data-rest somehow?

Update from 4 years later:

Meanwhile there is which looks like it answers the original question.

See: https://spring.io/projects/spring-data-jdbc

Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
yglodt
  • 13,807
  • 14
  • 91
  • 127

1 Answers1

5

No, it can't. From the introduction section of the documentation:

Spring Data REST builds on top of Spring Data repositories and automatically exports those as REST resources

If you're using JdbcTemplate for you data access, rather than using Spring Data repositories (be it JPA or any of the other supported back ends) then there is nothing for Spring Data REST to build on and export as REST resources.

Andy Wilkinson
  • 108,729
  • 24
  • 257
  • 242
  • 1
    But in case you implement the Repository interface using the jdbcTemplate, it should be possible, right? I'd like to it, but no success so far ... – miran Apr 05 '17 at 11:35