{"id":24761573,"url":"https://github.com/sterlp/hibernate-test-asserts","last_synced_at":"2026-05-02T15:38:49.741Z","repository":{"id":273410774,"uuid":"919071545","full_name":"sterlp/hibernate-test-asserts","owner":"sterlp","description":"HibernateAsserts helps verifying JPA characteristics in Hibernate projects, ensuring correct fetch joins, relationships, and transaction boundaries to prevent performance issues and errors.","archived":false,"fork":false,"pushed_at":"2025-01-20T18:35:15.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T03:41:28.877Z","etag":null,"topics":["assert","hibernate","jpa","junit","lazy-loading","query","test","testing","transactions"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sterlp.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}},"created_at":"2025-01-19T16:30:29.000Z","updated_at":"2025-03-11T05:02:45.000Z","dependencies_parsed_at":"2025-01-20T19:26:50.680Z","dependency_job_id":"f93256cf-7077-4a04-8097-23dfa6ee024d","html_url":"https://github.com/sterlp/hibernate-test-asserts","commit_stats":null,"previous_names":["sterlp/hibernate-test-asserts"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sterlp%2Fhibernate-test-asserts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sterlp%2Fhibernate-test-asserts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sterlp%2Fhibernate-test-asserts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sterlp%2Fhibernate-test-asserts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sterlp","download_url":"https://codeload.github.com/sterlp/hibernate-test-asserts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104530,"owners_count":20561380,"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":["assert","hibernate","jpa","junit","lazy-loading","query","test","testing","transactions"],"created_at":"2025-01-28T19:18:14.089Z","updated_at":"2026-05-02T15:38:49.696Z","avatar_url":"https://github.com/sterlp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Java CI with Maven](https://github.com/sterlp/hibernate-test-asserts/actions/workflows/maven.yml/badge.svg)](https://github.com/sterlp/hibernate-test-asserts/actions/workflows/maven.yml)\n\n# Setup\n\n- [Maven](https://central.sonatype.com/search?q=hibernate-asserts\u0026namespace=org.sterl.test)\n- [Blog](https://sterl.org/2021/08/jpa-model-testing-with-hibernate-statistics/)\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.sterl.test\u003c/groupId\u003e\n    \u003cartifactId\u003ehibernate-asserts\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.x\u003c/version\u003e\n    \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n# Example\n\n```java\n@Configuration\npublic static class Config {\n    @Bean\n    HibernateAsserts hibernateAsserts(EntityManager entityManager) {\n        return new HibernateAsserts(entityManager);\n    }\n}\n\n@Autowired\nprivate PersonService subject;\n@Autowired\nprivate HibernateAsserts hibernateAsserts;\n\n@Test\nvoid testCreatePerson() {\n    // GIVEN\n    var name = \"Paul\";\n    \n    // WHEN\n    subject.create(name);\n    \n    // THEN\n    hibernateAsserts\n        .assertInsertCount(1)\n        .assertUpdateCount(0)\n        .assertTrxCount(1);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsterlp%2Fhibernate-test-asserts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsterlp%2Fhibernate-test-asserts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsterlp%2Fhibernate-test-asserts/lists"}