Create project, add maven dependencies to pom.xml and create persistence.xml
Creating a sample entities.
Detaching and merging objects.