hibernate-orm
hibernate-orm copied to clipboard
Hibernate's core Object/Relational Mapping functionality
This PR against the 5.6 branch serves to establish a performance baseline for the regressions described in HHH-15854. https://github.com/hibernate/hibernate-orm/pull/6749 contains the same tests against the main branch. https://hibernate.atlassian.net/browse/HHH-15854
https://hibernate.atlassian.net/browse/HHH-16809
fix HHH-16054
1. they must be public classes, or Hibernate refuses to instantiate them 2. even after making it public the `EnhancedUserType` fails in a trivial test
`CamelCaseToUnderscoresNamingStrategy` converts all identifiers to lowercase, but quoted identifiers are generally case-sensitive and should not be converted. This simple patch prevents calling toLowerCase on quoted Identifiers.
https://hibernate.atlassian.net/browse/HHH-16627 https://hibernate.atlassian.net/browse/HHH-16628
If `Thing` that declares query methods is a non-`@Entity` class, inherit it in `Thing_` so that its concrete methods are invokable via `Thing_`. (Also fix use of `java.text.SimpleDateFormat` and `java.util.Date`.)
Created test to validate that the version column is incremented after a SELECT statement while in batch mode.
Feedback on this API, please!