Guest User

Untitled

a guest
Mar 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. # Hibernate Weekend Homework
  2.  
  3. Your task is to model relationships between classes and persist them via Hibernate. Practice using annotations, table relationships and inheritance.
  4. We're looking for accurate representations, don't force the use of table relationships or inheritance if it doesn't make sense.
  5.  
  6. ## MVP
  7. Create CRUD functions through a DBHelper.
  8.  
  9. Here are some suggested scenarios:
  10.  
  11. ### Hollywood
  12. Model the relationships between Studios, Directors, Films, Actors/Actresses etc.
  13.  
  14.  
  15. ### Plays
  16. Model the relationships between Authors, Plays, Characters, Theaters etc.
  17.  
  18.  
  19. ### Sports
  20. Model the relationships between Competitions, Teams, Managers, Players etc.
  21.  
  22.  
  23. ### Daily Food Tracker App
  24. Record food and meals eaten on a daily basis
  25.  
  26.  
  27.  
  28.  
  29. ## Extensions
  30. Add further functionality to your model such as:
  31. - Hollywood:
  32. - payActor (studio budget goes down, actors cash goes up)
  33. - show the amount of films a actor has appeared in by genre
  34.  
  35. - Plays:
  36. - calculate Theatres markup of plays put on
  37. - mark actors availability to perform in plays, signing up to a play changes this availability
  38.  
  39. - Sports:
  40. - sort teams in league on points total
  41. - play games which can increase teams points/knock teams out of competitions
  42.  
  43. - Food Tracker:
  44. - calculate calorie intake from daily meals
  45. - view all food eaten on a certain date
  46.  
  47.  
  48. ### REMEMBER
  49. TDD your models and DB, you may want separate test files for these for clarity eg StudioDBTest and StudioTest
  50.  
  51. Be creative, expand your model to your hearts content. If you have any other ideas to model run it by an instructor first.
Add Comment
Please, Sign In to add comment