Homework 3
CS520, Spring 2010


Due: Thursday, April 29

Package all the source files of your project into a zip file using the zip Ant target you developed in Homework 1, and upload the zip file to CSNS. Note that file uploading will be disabled automatically after 11:59PM of the due date, so please turn in your work on time.


[Reading]

[CSNS Wiki]

CSNS Wiki is a new component of CSNS which you will develop in this quarter. In this homework you are going to implement the model classes and the database schema based on the following requirements:

[Model] (30pt)

Design and implement the model classes and place them in the package csns.model.wiki. You may also need to change some existing classes.  Note that in this assignment you only need to create the model classes. Operations such as creating and editing wiki pages will be implemented later in subsequent assignments.

[Hibernate Mapping] (30pt)

Create Hibernate mapping files for the classes you created in the previous exercise and place them under src/hbm/wiki. You may also need to change some existing mapping files. Run the hbm2ddl Ant task to generate a new db/csns.ddl file and check if the database schema is what you expect.

[Database Scripts] (20pt)

Based on the csns.ddl file generated in the previous exercise, modify the following database scripts:

[Subversion]

Commit all the changes to your Subversion repository, and create a tag called cs520-hw3.