Upgrated schema definitions to 3.1
Upgraded entity definition
Added persistence unit and configured hibernate as JPA provider