Package org.komamitsu.spring.data.sqlite
Interface SqliteHelperRepository<T>
- Type Parameters:
T- a model class
- All Known Implementing Classes:
SqliteRepositoryImpl
public interface SqliteHelperRepository<T>
A Spring Data fragment repository interface for SQLite. This interface has a feature that's not
SQLite specific but useful in some cases.
CrudRepository.save(Object) depends on
auto-increment id columns and CrudRepository doesn't expose `insert()` and `update()`
methods. So, users always need to use SQLite's autoincrement feature on tables. For
non-autoincrement ID tables, indeed there are some workarounds
https://spring.io/blog/2021/09/09/spring-data-jdbc-how-to-use-custom-id-generation, but they are
not straightforward. This class provides `insert()` and `update()` instead of CrudRepository.-
Method Summary
-
Method Details
-
insert
-
update
-