| First, this is not a bug. This works exactly as JPA says it should. And since JPA is the thing that added this "globally quoted identifiers" requirement the default logically follows that defined behavior. Personally we (Hibernate) agree that this is insanely silly so we added a setting to allow filtering certain things out of being quoted, one of which is column definitions. This has already been doen quite some time ago as an enhancement. Please search in the future before opening new issues; thanks.
/**
* Assuming {@link #GLOBALLY_QUOTED_IDENTIFIERS}, this allows such global quoting
* to skip column-definitions as defined by {@link javax.persistence.Column},
* {@link javax.persistence.JoinColumn}, etc.
* <p/>
* JPA states that column-definitions are subject to global quoting, so by default this setting
* is {@code false} for JPA compliance. Set to {@code true} to avoid column-definitions
* being quoted due to global quoting (they will still be quoted if explicitly quoted in the
* annotation/xml).
*/
String GLOBALLY_QUOTED_IDENTIFIERS_SKIP_COLUMN_DEFINITIONS = "hibernate.globally_quoted_identifiers_skip_column_definitions";
|