wiki:S2S_PERSIST_MODEL_R0

Version 2 (modified by pavlina, 16 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro 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|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

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.

Task requirements

  • create book data access object with properties so that a book can be saved, edited and removed
  • the code should be refactored - the persistence module should use the properties and extends BaseProObject
  • do not forget to write the tests needed in the design phase

Task result

  • book data object classes with corresponding table in the database
  • refactored code which uses the properties

Implementation idea

  • refactor the code first
  • create Book entity which represents the book
  • create BookDao in org.sophie2.persistence.dao package with the needed properties for managing the book
  • see the implementation idea of the S2S_PERSISTENCE_COMMONS_R0 task

S2S_PERSISTENCE_COMMONS_R0
S2S_CORE_MODEL_R0

How to demo

Show the new classes and run the tests.

Design

Implementation

(Implementation results should be described and linked here (from the wiki or the repository))

Testing

Comments

(Write comments for this or later revisions here.)