{"id":20153299,"url":"https://github.com/thinkinglabs/jpa2-integration-tests","last_synced_at":"2026-06-08T08:02:05.004Z","repository":{"id":15515716,"uuid":"20972761","full_name":"thinkinglabs/jpa2-integration-tests","owner":"thinkinglabs","description":"How to test JPA2 annotations against a database schema","archived":false,"fork":false,"pushed_at":"2023-04-16T06:57:36.000Z","size":52,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T01:27:09.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkinglabs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-18T18:13:57.000Z","updated_at":"2023-04-16T06:57:33.000Z","dependencies_parsed_at":"2025-01-13T12:21:24.076Z","dependency_job_id":"69ac87f6-d714-43ad-b49b-23dd4a2023b6","html_url":"https://github.com/thinkinglabs/jpa2-integration-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thinkinglabs/jpa2-integration-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkinglabs%2Fjpa2-integration-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkinglabs%2Fjpa2-integration-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkinglabs%2Fjpa2-integration-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkinglabs%2Fjpa2-integration-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkinglabs","download_url":"https://codeload.github.com/thinkinglabs/jpa2-integration-tests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkinglabs%2Fjpa2-integration-tests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34053435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-13T23:18:26.915Z","updated_at":"2026-06-08T08:02:04.983Z","avatar_url":"https://github.com/thinkinglabs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jpa2-integration-tests\n\n[![Build Status](https://travis-ci.org/thinkinglabs/jpa2-integration-tests.svg?branch=master)](https://travis-ci.org/thinkinglabs/jpa2-integration-tests)\n\nThis is an example on how you can test your JPA2 annotations against your real database schema taking schema migrations into account.\n\nThe integration tests first applies your database migrations against an in-memory database and\nthen runs the test.\n\nThe example uses a lousy model of a company with employees. I would like to use a more complete model. Any\nbetter ideas are welcome.\n\n## How to build\n\nThe project was started at the time I didn't know better, so unfortunately it uses\n[Apache Maven](https://maven.apache.org/) for building. There are plans to change the build tool.\n\nTo build and run the tests:\n\n```bash\nmvn clean install\n```\n\n## Database migrations\n\nThe database migrations are expressed using [Liquibase](http://www.liquibase.org/). For the definition,\nI used [YAML](http://yaml.org/) which seemed a good idea, but I am a bit disappointed in the result. In my opinion\nthe XML specification is far more expressive then the YAML version. And if you have an IDE that can handle the XML Schemas\n(which most can today), it is far more productive to specify it using XML as your IDE helps you with the completion (which is not\nhappening with YAML).\n\n## Credits\n\nThe concept of how to test your JPA2 annotations is explained in the [GOOS](http://www.growing-object-oriented-software.com/)\nbook by [Nat Pryce](http://www.natpryce.com/) and [Steve Freeman](http://higherorderlogic.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkinglabs%2Fjpa2-integration-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkinglabs%2Fjpa2-integration-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkinglabs%2Fjpa2-integration-tests/lists"}