Wpis z mikrobloga

Trafiłem na projekt gdzie leader proponuje Spring-Data + Oracle.

Tak jak Spring-Data bardzo ładnie zgrało mu się z MongoDB tak widzę, że Oracle plus Spring-Data to raczej coś w rodzaju samego JPA. I teraz tak się zastanawiam. Czy jest sens robić to Spring-Data z JPA czy może spróbować rozszerzenia dla JDBC? A może próbować przeforsować Spring-Data + Hibernate? I dlaczego właściwie Spring-Data a nie samo Spring?

#programowanie #spring #spring-data #hibernate #jpa #jdbc #java
  • 2
  • Odpowiedz
Dokumentacja na stronie głównej tłumaczy co takiego oferuje Spring-Data:

Implementing a data access layer of an application has been cumbersome for quite a while. Too much boilerplate code has to be written to execute simple queries as well as perform pagination, and auditing. Spring Data JPA aims to significantly improve the implementation of data access layers by reducing the effort to the amount that's actually needed. As a developer you write your repository interfaces, including custom finder methods, and Spring will provide the implementation automatically.

Features

Sophisticated
  • Odpowiedz
@echelon_: Inaczej mówąc SD oferuje automatyczne tworzenie implementacji dla interfejsów DAO (trochę podobne do ActiveRecord w Railsach), jest też zintegrowane z QueryDSL (statycznie sprawdzane typy w zapytaniach, takie lepsze kryteria).
  • Odpowiedz