Le schéma ‘DBUSER’ n’existe pas

Lors du déploiement du fameux petstore du livre Java EE 5, j’ai rencontré un problème au moment où les données devaient être injectées dans la base de données Derby:

Le schéma ‘DBUSER’ n’existe pas

Pour résoudre ce problème, il suffit d’ajouter les lignes suivantes en début du fichier Yaps/config/data.sql:

CREATE SCHEMA DBUSER;
CREATE TABLE T_CATEGORY(id INT PRIMARY KEY, name VARCHAR(200), description VARCHAR(200));
CREATE TABLE T_PRODUCT(id INT PRIMARY KEY, name VARCHAR(200), description VARCHAR(200), category_fk INT);
CREATE TABLE T_ITEM(id INT PRIMARY KEY, name VARCHAR(200), unit_cost decimal, image_path VARCHAR(20), product_fk INT);
CREATE TABLE T_ADDRESS(id INT PRIMARY KEY, street1 VARCHAR(100), street2 VARCHAR(100), city VARCHAR(100), state VARCHAR(100), zip_code VARCHAR(100), country VARCHAR(100));
CREATE TABLE T_CUSTOMER(id INT PRIMARY KEY, login VARCHAR(100), password VARCHAR(100), firstname VARCHAR(100), lastname VARCHAR(100), telephone VARCHAR(100), email VARCHAR(100), date_of_birth VARCHAR(100), address_fk INT);

CREATE TABLE T_ORDER(id INT PRIMARY KEY, order_date VARCHAR(100), credit_card_type VARCHAR(100), credit_card_number VARCHAR(100), credit_card_expiry_date VARCHAR(100), address_fk INT, customer_fk INT);
CREATE TABLE T_ORDER_LINE(id INT PRIMARY KEY, quantity INT, item_fk INT);
CREATE TABLE T_ORDER_ORDER_LINE(order_line_fk INT, order_fk INT);

PS: Les types des colonnes ne sont pas vraiment optimisés ;)

Web Application – jQuery Mobile

Description

The project is still in development
This is a simple web application done during a school project. This application is using jQuery Mobile 1.1.0 Framework and so, works on every mobile device. The purpose was to create just the design of a social network application for artists. But we want to go further and release a full application. Not just a list of HTML tag.

Currently, the features have not been implemented. We are thinking about two MVC project for the implementation:

You can try the application on http://www.kevin-delemme.com/appweb/ (with your mobile browser if you want ;) )

Event Manager – Joomla! 2.5

Description

A simple event manager component developed for Joomla! 2.5. Create and manage your events in a simple way: add an incoming event (name, description, address, start and end time), edit an existing event and delete events. Meanwhile in the front-office, user can list all events not finished yet and get more informations from a particular event.

Usefull for users who need a slight event manager or for developers who don’t want to start from scratch their own event manager.

Download source here (v0.0.6)

Release

version 0.0.6 : First version

What’s next

- Add verification to the back-end when adding/editing an event

Screenshot

Back-endFront end