{"id":16453321,"url":"https://github.com/stephenh/joist-java","last_synced_at":"2025-03-21T05:30:41.449Z","repository":{"id":435935,"uuid":"56904","full_name":"stephenh/joist-java","owner":"stephenh","description":"a Java orm based on code generation","archived":false,"fork":false,"pushed_at":"2021-10-11T02:04:35.000Z","size":58227,"stargazers_count":29,"open_issues_count":3,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-17T21:45:21.085Z","etag":null,"topics":["java","mysql","orm","postgresql"],"latest_commit_sha":null,"homepage":"http://joist.ws","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephenh.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.markdown","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-09-26T23:39:03.000Z","updated_at":"2023-11-07T00:29:24.000Z","dependencies_parsed_at":"2022-07-04T16:09:22.028Z","dependency_job_id":null,"html_url":"https://github.com/stephenh/joist-java","commit_stats":null,"previous_names":[],"tags_count":153,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenh%2Fjoist-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenh%2Fjoist-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenh%2Fjoist-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenh%2Fjoist-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephenh","download_url":"https://codeload.github.com/stephenh/joist-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745642,"owners_count":20503043,"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":["java","mysql","orm","postgresql"],"created_at":"2024-10-11T10:15:13.999Z","updated_at":"2025-03-21T05:30:40.348Z","avatar_url":"https://github.com/stephenh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cimg src=\"https://api.travis-ci.org/stephenh/joist.svg?branch=master\" /\u003e\n\nJoist is an ORM based on code generation.\n\nThe goal is to provide Rails-like \"empty domain objects\" in an ORM that is simple, pleasant to use, and scales nicely to really large schemas.\n\nSee [joist.ws](http://joist.ws) for more information.\n\nStatus\n======\n\nThis project had been used in production for ~4-5 years, but that system is now shutdown and so Joist is maintenance mode.\n\nI assert it is still basically a best-in-class ORM in the Java ecosystem, for it's specific codegen-/convention-driven workflow, but it could use some updating for modern Java idioms if anyone wants to pick it up.\n\nArtifacts\n=========\n\nThe artifacts are available in [Jitpack](https://jitpack.io/#stephenh/joist), i.e. with artifact names of `com.github.stephenh.joist:joist-util:1.14.0`.\n\nBuild against MySQL\n===================\n\nThe Joist test suite requires running tests against a local database; to use MySQL for this:\n\n* Edit `features/build.properties` (which is not checked in) and set your local MySQL password\n\n  On a clean ~18.04 Ubuntu, see [this SO answer](https://stackoverflow.com/questions/33991228/what-is-the-default-root-pasword-for-mysql-5-7/50305285#50305285) to set your local `root` password.\n\n* Run `./gradlew install`\n\nBuild against Postgres\n======================\n\nThe Joist test suite requires running tests against a local database; to use Postgres for this:\n\n* Edit `features/build-pg.properties` (which is not checked in) and set your local `postgres` user/admin password\n\n  On a clean Ubuntu, Postgres's admin user/password is configured by:\n\n  * `sudo -u postgres psql postgres` and then `\\password postgres` to set your local admin password\n  * In `postgresql.conf` ensure `listen_addresses` is set\n\n* Edit `features/.../Registry.java` and change the `db` field to `Db.PG`\n* Edit `features/.../JoistCli.java` and change the `db` field to `Db.PG`\n* Run `./gradlew install`\n\nNote that because of Postgres's ability to defer FK constraints, the `features/.../codegen` output will all change as the MySQL version is currently checked-in.\n\nTodo\n====\n\n* Composite columns (e.g. TimePoint with both time+zone), if needed\n* Don't muck with system properties\n* Repo interfaces\n  * Implement stub that copies values (iterates Alias, `toJdbcValue`, `ArrayList\u003cObject\u003e`)\n  * Only one commit/flush at a time, serialized transaction isolation, leverage op locks\n* Configuration option (global, per-collection) to disable collection ticking\n  * ...maybe remove/solve annoyance of cross-collection stomp?\n* Document PostgreSQL/MySQL no fsync settings for faster tests\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenh%2Fjoist-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephenh%2Fjoist-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenh%2Fjoist-java/lists"}