Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nurislom373/genericrepository
The difference with JpaRepository is that GenericRepository doesn't need to be a spring project in order to use it. That is, it can be easily used in simple build tools like Maven or Gradle without spring. Very easy to use and lightweight.
https://github.com/nurislom373/genericrepository
gradle hikaricp java maven postgresql
Last synced: about 2 months ago
JSON representation
The difference with JpaRepository is that GenericRepository doesn't need to be a spring project in order to use it. That is, it can be easily used in simple build tools like Maven or Gradle without spring. Very easy to use and lightweight.
- Host: GitHub
- URL: https://github.com/nurislom373/genericrepository
- Owner: Nurislom373
- License: apache-2.0
- Created: 2022-07-27T20:54:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-01T17:14:45.000Z (over 2 years ago)
- Last Synced: 2023-03-03T21:31:51.737Z (almost 2 years ago)
- Topics: gradle, hikaricp, java, maven, postgresql
- Language: Java
- Homepage: https://github.com/Nurislom373/GenericDaos
- Size: 78.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GenericRepository
The GenericRepository Class is Difference method with Spring JpaRepository
The difference with JpaRepository is that GenericRepository doesn't need
to be a spring project in order to use it. That is, it can be easily used
in simple build tools like Maven or Gradle without spring. Very easy to use
and lightweight.We can add these 4 configurations to the application.properties file
```Properties
generic.username=postgres
generic.password=test
generic.host=localhost:5432
generic.database=test
```The main class we need is GenericRepository
```Java
public class GenericRepository {
}
``````Java
public class AuthRepo extends GenericRepository {
}
```## New Feature @Table Annotattion Usage
```Java
@Table(name = "auth_user", schema = "public")
public class AuthUser {
private Integer id;
private String name;
private String password;
}
```