Skip to content

Instantly share code, notes, and snippets.

@dylanz
Created May 19, 2011 17:14
Show Gist options
  • Save dylanz/981257 to your computer and use it in GitHub Desktop.
Save dylanz/981257 to your computer and use it in GitHub Desktop.
DualORM
@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