Hadi is an Android ORM Framework. It makes SQLite using in Android easy and simple.
Hadi is and open source project.
You can use it free, change it and even re-publish it.
You could find all the source code in here:Hadi in Sourceforge
<application android:name="com.the9tcat.hadi.HadiApplication" android:icon="@drawable/icon" android:label="@string/app_name">
<application android:name="com.the9tcat.hadi.HadiApplication" android:icon="@drawable/icon" android:label="@string/app_name"> <meta-data android:name="Hadi_DB_NAME" android:value="demo.db" /> <meta-data android:name="Hadi_DB_VERSION" android:value="1" />
import com.the9tcat.hadi.annotation.Column; import com.the9tcat.hadi.annotation.Table; @Table(name="Hello") //define your table's name public class Book{ @Column(autoincrement=true) public int id; // define the table's column @Column(name="sn") public String sn; @Column(name = "") public String name; }
DefaultDAO dao = new DefaultDAO(this); // "this" is android context /** for save data to database */ Book b1 = new Book(); b1.name = "Who Moved My Cheese"; b1.sn = "sn123456789"; dao.insert(b1);
If you have any ideas or suggestions, please be free to discuss it in sourceforge discussion