Created
May 19, 2011 17:14
-
-
Save dylanz/981257 to your computer and use it in GitHub Desktop.
DualORM
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
@DualORM(tableName = "users") | |
public class User { | |
// LOCAL ONLY | |
@DualORMField(remote = false) | |
private String fontColor; | |
// LOCAL AND REMOTE ONLY | |
@DualORMField(canBeNull = false) | |
private String username; | |
// LOCAL AND REMOTE ONLY | |
@DualORMField(canBeNull = false) | |
private String password; | |
public static void main(String[] args) { | |
TortugaTable table = User.class.getAnnotation(TortugaTable.class); | |
System.out.println(table.tableName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment