Gavin King

Results 184 issues of Gavin King

Adds the new method I proposed in this discussion: https://github.com/jakartaee/persistence/issues/298#issuecomment-736682475.

Allows `@IdClass and` `@Embeddable` types to be records.

Currently, setting the `CacheStoreMode` or `CacheRetrieveMode` requires the use of string typing, the `jakarta.persistence.cache.retrieveMode` or `jakarta.persistence.cache.storeMode` properties. This is obviously bad, and therefore: - We should add `setCacheStoreMode()` and `setCacheRetrieveMode()`...

Reviewing the spec, I'm wondering whether we should revise some restrictions on user code. ### `@Entity` classes An entity class must: - be toplevel - be non-`final` - have a...

This approach isn't completely typesafe, but it's significantly less complex than a solution which is. Questions: - Do we want to buy into the extra complexity required to make this...

The following functions are, I believe, supported on all major databases, and it seems to me that there would be value in adding them to the query language: `power()`, `floor()`,...

According to my calculations, all major databases support the `replace()` function, except for Sybase ASE, which has a similar function named `str_replace()`, and Derby. I think it would be useful...

This breaks quite a few tests. Main issue with it is that `fetch="join"` was the way to select eager fetching in `.hbm.xml`.

The default precision returned by `getDefaultTimestampPrecision()` is only appropriate for timestamps (hence the name) and should not be used for dates or plain times. https://hibernate.atlassian.net/browse/HHH-17576