README:
Our ER-diagram and schema is in doc/doc.pdf
- In windows system: javac -cp "./mysql.jar;." acmdb/*.java java -cp "./mysql.jar;." acmdb.Driver 2>log.err
- In Linux/Unix system: javac -cp ./mysql.jar:. acmdb/*.java java -cp ./mysql.jar:. acmdb.Driver 2>log.err
- Or you can use an IDE (such as Ecilipse). Remember to add mysql.jar as an external jar to your project's Java build/library path.
- When you run the program, you may have to login with the root authority to do something, such that add a new book, add some new copies. The login_name and the password is shown in the followings.
login_name : admin
password : admin
-
The name of author and publisher is unique, since there are no other information about them. Since there will be some duplicate columns((author_id, name) (publisher_id, publiser)) if we use the schema in the doc.pdf, we modified the tables to have no duplicate columns.
-
If the book have no feedback (with a score) then it will not displayed when user choose the second and third choice of "Book Browsing".
-
If the books of the author are ordered by no one, then the author will not appears in the most popular author list.
-
The user can change the trust(untrust) if he/she have already trust(untrust) someone.
-- Wei Zhen
-- Sheng Ying