Setup and configuration

In the source code update the app.properties file with your values. The source is available here: http://github.com/petmongrels/learn-hibernate

Domain model

Customer (1) ---> Account (*) ---> BankTransaction (*)

Customer (1) ---> Address (*)

Customer (1) ---> City (1) [Many customers can have one city]

The concepts are explained through tests. Hence for each concept the test names are referred to in italics.

Run sql.test.data and oracle.test.data target in the build.xml using ant. You can set app.properties to change your database and other properties.