OGM-498 @GeneratedValue(strategy = GenerationType.AUTO) does not work when the session is used

https://hibernate.atlassian.net/browse/OGM-498