Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. Entity questGameCompleted = schema.addEntity("QuestGameCompleted");
  2. questGameCompleted.implementsSerializable();
  3. questGameCompleted.setTableName("quest_game_completed");
  4. Property questGameCompletedGameId = questGameCompleted.addLongProperty("questGameId").columnName("quest_game_id").notNull().primaryKey().getProperty();
  5. Property questGameCompletedQuestId = questGameCompleted.addLongProperty("questId").columnName("quest_id").notNull().getProperty();
  6. questGameCompleted.addIntProperty("basicPoints").columnName("basic_points").notNull();
  7. questGameCompleted.addIntProperty("bonusPoints").columnName("bonus_points").notNull();
  8. questGameCompleted.addIntProperty("tasksSkipped").columnName("tasks_skipped");
  9. questGameCompleted.addStringProperty("progress").columnName("progress");
  10.  
  11.  
  12. Entity questCompleted = schema.addEntity("QuestCompleted");
  13. questCompleted.implementsSerializable();
  14. questCompleted.setTableName("quest_completed");
  15. Property questCompletedQuestId = questCompleted.addLongProperty("questId").columnName("quest_id").notNull().primaryKey().getProperty();
  16. questCompleted.addLongProperty("timeFinished").columnName("time_finished");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement