Thursday, March 26, 2009

Hibernate Tutorial - 'TokoBuku Application'

Hibernate Tutorial - 'TokoBuku Application'

Step #1A : Create ERD of TokoBuku Application

Step #1B : Create Database (using MySql) 


Step #2 : Start Coding in Java (using Eclipse)

Step #2A : Create Java Model

Base on all table that exists (refer to ERD), then make all java model and file hbm.xml. Put all class in package 'com.jer.hibernate.model'.
File hbm.xml will mapping between java model and table in database.



Step #2B : Create Java DAO


Step #3 : Create Hibernate Configuration

Create file 'hibernate.cfg.xml' in source folder 'conf'.




Step #4 : Testing Application


zeredata@balicamp.com [03-2009]