Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tangqi92/mygreendao
A simple demo of GreenDAO.
https://github.com/tangqi92/mygreendao
android demo greendao orm-greendao
Last synced: 6 days ago
JSON representation
A simple demo of GreenDAO.
- Host: GitHub
- URL: https://github.com/tangqi92/mygreendao
- Owner: tangqi92
- Created: 2015-07-26T03:24:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T07:58:32.000Z (about 7 years ago)
- Last Synced: 2024-12-06T05:50:35.005Z (19 days ago)
- Topics: android, demo, greendao, orm-greendao
- Language: Java
- Homepage: http://imtangqi.com/2015/07/26/orm-greendao-summary
- Size: 96.7 KB
- Stars: 201
- Watchers: 17
- Forks: 92
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MyGreenDAO
==========
MyGreenDAO 是我在学习使用 ORM 框架 greenDAO 时在官方提供的 Example Project 上精简出来的 Demo,为此添加了详细的注释说明,旨在帮助大家能快速了解、上手使用并扩展 greenDAO。我会持续跟新 MyGreenDAO,不断优化与添加新的功能,欢迎大家 Fork 与 Star 。**Demo is still in development so more features will be added soon**
- [Usage](#usage)
- [Download](#download)
- [Documentation](#documentation)
- [Thanks to](#thanks-to)
- [Contact Me](#contact-me)
- [License](#license)# Usage
### Dependency - 依赖
- Java Development Kit (JDK) 8 +
- com.android.tools.build:gradle:1.2.3
- Android SDK
- Android SDK Build-tools 22.0.1### Build - 构建
git clone https://github.com/tangqi92/MyGreenDAO.git
用最新的 IntelliJ IDE 导入工程(Import Project),然后等待 IDE 下载 gradle 和依赖包即可
This project uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.
对啦,是时候和 Eclipse 说拜拜了,赶紧拥抱 [Android Studio](https://developer.android.com/sdk/index.html) 吧:D
### Modify - 修改
如一切正常(compileSdkVersion 与 buildToolsVersion 等需根据自己实际情况更改),你只需要修改 [ExampleDaoGenerator](https://github.com/tangqi92/MyGreenDAO/blob/master/daoexamplegenerator/src/main/java/me/itangqi/ExampleDaoGenerator.java) 类中如下这条语句,"..."替换为你实际的存放目录即可
```java
new DaoGenerator().generateAll(schema, ".../MyGreenDAO/app/src/main/java-gen");
```# Download
直接下载:[MyGreenDAO-1.1.0.apk](https://github.com/tangqi92/MyGreenDAO/releases/download/v1.1.0/app-release-unsigned.apk)
# Documentation
项目主页:[ORM 框架之 greenDAO 使用心得](http://imtangqi.com/2015/07/26/orm-greendao-summary/)
# Thanks to
再次感谢:[greenDAO](https://github.com/greenrobot/greenDAO)
# Contact Me
- Weibo:[@Tang](http://weibo.com/qiktang)
- Gmail:[imtangqi#gmail.com](mailto:[email protected] "欢迎与我联系")
- Blog: [http://imtangqi.com](http://imtangqi.com)# License
The MIT License (MIT)Copyright (c) 2015 Qi Tang
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.