Spring Hibernate project
This is a Spring 3.2.2 and Hibernate 3.5.6 application for managing address and state data.
- Spring Framework 3.2.2.RELEASE
- Hibernate 3.5.6
- MySQL Database
- Maven
- Java 7
- MySQL database
- Maven
Configure MySQL database connection in src/main/resources/META-INF/spring/jdbc.properties:
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/payroll
jdbc.username=<your-username>
jdbc.password=<your-password>
mvn clean install
The application can be run using the Client class which demonstrates:
- Fetching all states
- Address management functionality
- State/Address relationship handling
The main application context is configured in src/main/resources/META-INF/spring/app-context.xml