{"id":34779279,"url":"https://github.com/akuniutka/hibernate-base-entity","last_synced_at":"2026-05-25T11:31:18.413Z","repository":{"id":288648750,"uuid":"968501634","full_name":"akuniutka/hibernate-base-entity","owner":"akuniutka","description":"A base class for Hibernate-managed JPA entities with proper implementations of equals() and hashCode()","archived":false,"fork":false,"pushed_at":"2025-04-29T15:43:24.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T16:44:22.054Z","etag":null,"topics":["hibernate","java","jpa","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","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/akuniutka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-18T07:36:11.000Z","updated_at":"2025-04-29T15:43:24.000Z","dependencies_parsed_at":"2025-04-19T07:05:50.226Z","dependency_job_id":"1d31236f-2e44-4e2d-9c03-c3d7844ebfa3","html_url":"https://github.com/akuniutka/hibernate-base-entity","commit_stats":null,"previous_names":["akuniutka/base-jpa-entity","akuniutka/hibernate-base-entity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akuniutka/hibernate-base-entity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akuniutka%2Fhibernate-base-entity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akuniutka%2Fhibernate-base-entity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akuniutka%2Fhibernate-base-entity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akuniutka%2Fhibernate-base-entity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akuniutka","download_url":"https://codeload.github.com/akuniutka/hibernate-base-entity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akuniutka%2Fhibernate-base-entity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33473699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T06:32:55.349Z","status":"ssl_error","status_checked_at":"2026-05-25T06:32:35.322Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hibernate","java","jpa","spring","spring-boot"],"created_at":"2025-12-25T08:46:54.819Z","updated_at":"2026-05-25T11:31:18.360Z","avatar_url":"https://github.com/akuniutka.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hibernate Base Entity\n\nA base class for Hibernate-managed JPA entities with proper \nimplementations of `equals()` and `hashCode()`. Inspired by \n[Andrey Oganesyan](https://github.com/andreyoganesyan)'s, \n[Georgii Vlasov](https://github.com/honest-niceman)'s, \n[Thorben Janssen](https://github.com/thjanssen)'s posts \n([1](https://habr.com/ru/companies/haulmont/articles/564682/), \n[2](https://tinyurl.com/4uaecbzy), [3](https://tinyurl.com/mx4msnvu)) \non side effects that Lombok's \n`@EqualsAndHashCode` annotation brings in when applied to such \nentities:\n- HashSet and HashMap incorrectly work with the entities,\n- Hibernate may load data for lazy fields where not intended.\n\nThe new superclass solves both of these problems.\n\n# How to use\n\n1. Copy the class to your project.\n2. Inherit JPA entities from the class.\n3. Ensure that the primary key in related tables has name `id` and \ntype `UUID`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakuniutka%2Fhibernate-base-entity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakuniutka%2Fhibernate-base-entity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakuniutka%2Fhibernate-base-entity/lists"}