Hibernate essentials: antlr-2.7.6.jar commons-collections-3.2.1.jar dom4j-1.6.1.jar hibernate-core-3.3.1.GA.jar javassist-3.9.0.GA.jar jta-1.1.jar slf4j-api-1.5.8.jar slf4j-simple-1.5.8.jar Commons/Lang: commons-lang-2.4.jar MySQL JDBC Driver: mysql-connector-java-5.1.10-bin.jar Password encryption: commons-codec-1.4.jar File upload: commons-fileupload-1.2.1.jar commons-io-1.4.jarIf you're using NetBeans, you'll need to make these available as JAR files to the application. You can grab the whole bundle as: You can add these JAR files per se to the project or add them to a new library. Alternatively, you can use:
commons-lang-2.4-bin.zip commons-codec-1.4-bin.zip commons-fileupload-1.2.1-bin.zip commons-io-1.4-bin.zip
$ mysql -u root < database.sql $ mysql -u guest webstore < tables.sql $ mysql -u guest webstore < tables-images.sql
products: description TEXT name VARCHAR(100) imagefile VARCHAR(50) price DECIMAL(9,2) |
admins: username VARCHAR(50) password VARCHAR(50) UNIQUE (username) |
shoppers: username VARCHAR(50) password VARCHAR(50) UNIQUE (username) |
orders: shopper_id INT created TIMESTAMP |
lineitems: order_id INT product_id INT qty INT price DECIMAL(9,2) |
images: imagefile data MEDIUMBLOB UNIQUE(imagefile) |
table-row-name_idwhere table-row-name is the table name (always plural) made singular. In particular, an order is reflected as an entry in the orders table made by a shopper (shopper_id) at a certain time (created). The order consists of one or more line items represented in the lineitems table where each line item: