Back to project page twittah.
The source code is released under:
MIT License
If you think the Android project twittah listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.codepath.wangela.apps.twittah.models; /* w w w . j a v a 2 s . c o m*/ import java.util.List; import com.activeandroid.annotation.Column; import com.activeandroid.annotation.Table; import com.activeandroid.Model; @Table(name = "Categories") public class Category extends Model { // This is how you avoid duplicates based on a unique ID @Column(name = "remote_id", unique = true) public int remoteId; @Column(name = "Name") public String name; // Make sure to have a default constructor for every ActiveAndroid model public Category(){ super(); } // Used to return items from another table based on the foreign key public List<Item> items() { return getMany(Item.class, "Category"); } }