This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RFDaoGenerator { | |
public static void main(String args[]) throws Exception { | |
Schema schema = new Schema(1, "com.orange.reunionflash.data"); | |
// Member | |
Entity member = schema.addEntity("Member"); | |
member.addIdProperty(); | |
Property addressBookId = member.addStringProperty("addressBookId").notNull().getProperty(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cache for addressbook contacts. | |
*/ | |
public class ContactsCache { | |
private static class Holder { | |
static final ContactsCache INSTANCE = new ContactsCache(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The activity containing your EditTexts. | |
*/ | |
public class ProfileActivity extends AppCompatActivity { | |
/** | |
* Input field "your name". | |
*/ | |
@Bind(R.id.edittext_name) | |
EditText nameEditText; |