{"id":18031636,"url":"https://github.com/roscopeco/ormdroid","last_synced_at":"2025-03-27T05:30:51.787Z","repository":{"id":6004240,"uuid":"7227312","full_name":"roscopeco/ormdroid","owner":"roscopeco","description":"ORMDroid is a simple ORM persistence framework for your Android applications.","archived":true,"fork":false,"pushed_at":"2024-04-26T22:42:02.000Z","size":240,"stargazers_count":86,"open_issues_count":10,"forks_count":24,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-19T22:07:13.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://roscopeco.github.io/ormdroid/","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/roscopeco.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}},"created_at":"2012-12-18T17:23:23.000Z","updated_at":"2024-04-26T22:42:31.000Z","dependencies_parsed_at":"2022-09-12T11:03:03.799Z","dependency_job_id":null,"html_url":"https://github.com/roscopeco/ormdroid","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roscopeco%2Formdroid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roscopeco%2Formdroid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roscopeco%2Formdroid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roscopeco%2Formdroid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roscopeco","download_url":"https://codeload.github.com/roscopeco/ormdroid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791325,"owners_count":20672664,"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":[],"created_at":"2024-10-30T10:10:00.220Z","updated_at":"2025-03-27T05:30:51.095Z","avatar_url":"https://github.com/roscopeco.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Orm\"\u003e\u003c/A\u003eOrm"],"readme":"\u003e **note**: This repository is archived and development / support is discontinued. It is unlikely to still even work, let alone be remotely relevant.\n\nORMDroid is a simple ORM persistence framework for your Android applications, providing an easy to use, almost-zero-config way to handle model persistence without ever having to deal with Android's built-in database interfaces.\n\nORMDroid is:\n\n* *Small* - ~20k, target of no more than 30k.\n* *Simple* - No excessive features or support for platforms other than Android.\n* *Flexible* - Allowing you to configure what you need to, but at the same time...\n* *Automatic* - ... sensible defaults for everything.\n\nORMDroid works with Android API 8 and up.\n\nORMDroid is available under the Apache license 2.0. Copyright (c)2012-2013 Ross Bamford \u0026 Contributors.\n\nGetting ORMDroid\n----------------\n\nYou can either download ORMDroid from [the download page](https://github.com/roscopeco/ormdroid/releases), or check out of Git.\n\nIf downloading a packaged release, you'll need to unzip the file somewhere, and then import the project into your Eclipse. \n\nGetting started\n---------------\n\nTo use ORMDroid, you need to set up ORMDroid as a required library in your android app. If you're using Eclipse, go to _project-\u003eproperties-\u003eandroid_ and add ORMDroid as a required libray. Now, you just need to add a single XML tag to your `AndroidManifest.xml` as a child of the `Application` tag:  \n\n```xml\n\u003cmeta-data\n  android:name=\"ormdroid.database.name\"\n  android:value=\"your_database_name\" /\u003e\n\n\u003cmeta-data\n  android:name=\"ormdroid.database.visibility\"\n  android:value=\"PRIVATE||WORLD_READABLE||WORLD_WRITEABLE\" /\u003e\n```\n\nAnd initialize the framework somewhere (e.g. Application.onCreate, or even in your activity's onCreate since there's no penalty for calling initialize multiple times):\n\n```java\nORMDroidApplication.initialize(someContext);\n```\n\nThen you create your model:\n\n```java\npublic class Person extends Entity {\n  public int id;\n  public String name;\n  public String telephone;\n}\n```\n\nAnd work with it as you see fit!\n\n```java\nPerson p = Entity.query(Person.class).where(\"id=1\").execute();\np.telephone = \"555-1234\";\np.save();\n```\n\nThere is also an object-oriented query API:\n\n```java\nimport static com.roscopeco.ormdroid.Query.eql;\n\n// ... later\n\nPerson person = Entity.query(Person.class).where(eql(\"id\", id)).execute();\np.telephone = \"555-1234\";\np.save();\n```      \n\nThat's it! If you want more customization over e.g. table names, column names, etc, take a look at the `Table` and `Column` annotations.\n\nThere is a more detailed version of these instructions in [this blog entry](http://roscopeco.wordpress.com/2012/08/05/ormdroid-on-google-code/)\n\n*Update*: There is now a very simple sample app available for ORMDroid. You can get it from Git:\n\n```\ngit clone https://github.com/roscopeco/ormdroid-example.git\n```\n\nFor more information, check out [this blog entry](http://roscopeco.com/2012/08/23/ormdroid-bugfixes-sample-app-happiness/).\n\nGet in touch!\n-------------\n\nIf you have questions, suggestions or just want to talk (about ORMDroid), get in touch via the [Google Group](https://groups.google.com/forum/#!forum/ormdroid-discuss).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froscopeco%2Formdroid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froscopeco%2Formdroid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froscopeco%2Formdroid/lists"}