Right, this is what I thought would be your use case - a manual insert. Nothing in the JPA spec nor Hibernate documentation says that what you expect is a requirement.
/**
* Indicates that the persistence provider should pick an
* appropriate strategy for the particular database. The
* <code>AUTO</code> generation strategy may expect a database
* resource to exist, or it may attempt to create one. A vendor
* may provide documentation on how to create such resources
* in the event that it does not support schema generation
* or cannot create the schema resource at runtime.
*/
AUTO
You make an assumption, which is not at the moment valid. I've re-categorized this issue more appropriately to be an improvement request as opposed to a bug report. |