{"id":20154398,"url":"https://github.com/nurislom373/genericrepository","last_synced_at":"2025-09-21T09:32:19.150Z","repository":{"id":50190555,"uuid":"518608959","full_name":"Nurislom373/GenericRepository","owner":"Nurislom373","description":"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.","archived":false,"fork":false,"pushed_at":"2022-09-01T17:14:45.000Z","size":80,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-13T23:29:43.860Z","etag":null,"topics":["gradle","hikaricp","java","maven","postgresql"],"latest_commit_sha":null,"homepage":"https://github.com/Nurislom373/GenericDaos","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nurislom373.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-27T20:54:49.000Z","updated_at":"2023-12-06T14:51:01.000Z","dependencies_parsed_at":"2022-08-12T21:00:21.856Z","dependency_job_id":null,"html_url":"https://github.com/Nurislom373/GenericRepository","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nurislom373%2FGenericRepository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nurislom373%2FGenericRepository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nurislom373%2FGenericRepository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nurislom373%2FGenericRepository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nurislom373","download_url":"https://codeload.github.com/Nurislom373/GenericRepository/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233740410,"owners_count":18722659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gradle","hikaricp","java","maven","postgresql"],"created_at":"2024-11-13T23:26:30.441Z","updated_at":"2025-09-21T09:32:13.838Z","avatar_url":"https://github.com/Nurislom373.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GenericRepository\nThe GenericRepository Class is Difference method with Spring JpaRepository\nThe difference with JpaRepository is that GenericRepository doesn't need\nto be a spring project in order to use it. That is, it can be easily used\nin simple build tools like Maven or Gradle without spring. Very easy to use\nand lightweight.\n\nWe can add these 4 configurations to the application.properties file\n\n```Properties\ngeneric.username=postgres\ngeneric.password=test\ngeneric.host=localhost:5432\ngeneric.database=test\n```\n\nThe main class we need is GenericRepository\u003cT, ID\u003e\n\n```Java\npublic class GenericRepository\u003cT, ID\u003e {\n}\n```\n\n```Java\npublic class AuthRepo extends GenericRepository\u003cAuthUser, Integer\u003e {\n}\n```\n\n## New Feature @Table Annotattion Usage\n\n```Java\n@Table(name = \"auth_user\", schema = \"public\")\npublic class AuthUser {\n    private Integer id;\n    private String name;\n    private String password;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurislom373%2Fgenericrepository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnurislom373%2Fgenericrepository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurislom373%2Fgenericrepository/lists"}