This example demonstrates the map a collection using hibernate @ElementCollection and CollectionTable annotation.
- Jdk - 1.8 or later
- Hibernate - 5.4.4.Final
- MySQL - 5.1.47
- Maven - 3.1
- IDE - Eclipse oxygen
1. Clone the application
https://github.com/scbushan05/hibernate-advance-concept-01.git
2. Create MySQL database
CREATE DATABASE hibernate_concepts
3. Change mysql username and password as per your installation
-
open
src/main/resources
-
change
connection.username
andconnection.password
as per your mysql installation
4. Run and Test the application
CTRL+F11
You can find the tutorial for this application on my blog Bushan Sirgur