| 1 | [[BackLinksMenu]] |
| 2 | |
| 3 | [[TicketQuery(summary=S2S_PERSIST_MODEL_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|)]] |
| 4 | |
| 5 | |
| 6 | = Analysis = |
| 7 | |
| 8 | == Overview == |
| 9 | The purpose of this task is to provide a model for storing the book object. The implementation will be easier using the properties we have. |
| 10 | |
| 11 | == Task requirements == |
| 12 | * create book data access object with properties so that a book can be saved, edited and removed |
| 13 | * the code should be refactored - the persistence module should use the properties and extends !BaseProObject |
| 14 | * do not forget to write the tests needed in the design phase |
| 15 | |
| 16 | == Task result == |
| 17 | * book data object classes with corresponding table in the database |
| 18 | * refactored code which uses the properties |
| 19 | |
| 20 | == Implementation idea == |
| 21 | * refactor the code first |
| 22 | * create Book entity which represents the book |
| 23 | * create !BookDao in org.sophie2.persistence.dao package with the needed properties for managing the book |
| 24 | * see the implementation idea of the [wiki:S2S_PERSISTENCE_COMMONS_R0] task |
| 25 | |
| 26 | == Related == |
| 27 | [wiki:S2S_PERSISTENCE_COMMONS_R0][[BR]] |
| 28 | [wiki:S2S_CORE_MODEL_R0] |
| 29 | |
| 30 | == How to demo == |
| 31 | * show the new classes and run the tests |
| 32 | |
| 33 | = Design = |
| 34 | |
| 35 | = Implementation = |
| 36 | ^(Implementation results should be described and linked here (from the wiki or the repository))^ |
| 37 | |
| 38 | = Testing = |
| 39 | |
| 40 | = Comments = |
| 41 | ^(Write comments for this or later revisions here.) |