Back to project page Langleo.
The source code is released under:
Apache License
If you think the Android project Langleo 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.atteo.langleo_trial.models; //w w w . j a v a 2 s.c o m import com.atteo.silo.Storable; import com.atteo.silo.StorableCollection; import com.atteo.silo.associations.BelongsTo; import com.atteo.silo.associations.DatabaseField; import com.atteo.silo.associations.HasMany; public class List extends Storable { @DatabaseField private String name; @DatabaseField private Boolean fromStudyStack = false; @BelongsTo private Collection collection; @HasMany(klass = Word.class, foreignField = "list", dependent = true) StorableCollection words; public List() { super(); } public List(int id) { super(id); } public boolean isFromStudyStack() { return fromStudyStack; } public void setFromStudyStack(Boolean fromStudyStack) { this.fromStudyStack = fromStudyStack; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Collection getCollection() { return collection; } public void setCollection(Collection collection) { this.collection = collection; } public StorableCollection getWords() { return words; } }