I’m getting this exception from Hibernate
building session factory
13:32:09,937 INFO SessionFactoryObjectFactory:105 – Not binding factory to JNDI, no JNDI name configured
Exception in thread “main” org.hibernate.HibernateException: The database returned no natively generated identity value
What does this mean and how can I solve it? Thanks!
I think it means you’re trying to use the IDENTITY ID generator with a table column which is not properly configured. It should be an auto_increment column for the IDENTITY generator to work. Else, the database doesn’t return any generated ID.