Added .gitignore.
Changed the configuration to use H2 as database.
Added test which uses EntityManager#persist.

Calling EntityManager#persist will succeed, EntityManager#merge will fail.