Gavin
72edfa77e4
minor fix to DDL formatter
2022-12-13 22:58:41 +01:00
Gavin
6348d9927e
introduce TableMigrator and kill some code duplication
2022-12-13 22:56:44 +01:00
Marco Belladelli
f2576d6b87
HHH-15745 Change string literal handling in HQL lexer
2022-12-13 18:20:14 +01:00
Marco Belladelli
1109dfbb1c
HHH-15745 Add test for issue
2022-12-13 18:20:14 +01:00
Sanne Grinovero
c105c34976
Minor code refactoring
2022-12-13 15:28:05 +00:00
Christian Beikov
371d2f1d49
Move getCheckCondition to BasicType and add variant to JdbcType for Oracle Booleans and other future uses
2022-12-12 20:13:52 +01:00
Gavin
919278aac2
HHH-15845 sort enum values on MySQL
2022-12-12 19:39:24 +01:00
Sanne Grinovero
a5525a943f
HHH-15853 Remove the AttributeMetadataAccess interface
2022-12-12 15:00:42 +00:00
Sanne Grinovero
d2d40c7318
HHH-15853 Avoid re-computing AttributeMetadataAccess at runtime
2022-12-12 15:00:42 +00:00
Sanne Grinovero
58f8d3d449
HHH-15844 Introduce custom containers for AttributeMapping Lists and Maps
2022-12-12 10:55:08 +00:00
Gavin
33faa5b060
HHH-15847 run AttributeBinders in a SecondPass
...
so that they can do stuff like register converters and not
have the results hammered by the SecondPass registered by
BasicValueBinder.
2022-12-11 17:40:15 +01:00
Gavin
2b7eb6fc1c
HHH-15847 introduce ConverterRegistry
2022-12-11 17:40:15 +01:00
Gavin
4d2f4988c8
HHH-15847 fix check constraint creation
...
- fix check constraints for built-in Boolean converters
- move getCheckCondition() + getSpecializedTypeDeclaration() from JavaType to BasicValueConverter
- simplify the API of Dialect related to check constraints
- recover check constraint for boolean on Oracle by letting Dialects register converters
- attempt to clean up some generics stuff in enum-related code
2022-12-11 17:40:15 +01:00
Gavin
a25e53d1ab
also use enum type for boolean->char mappings on MySQL
2022-12-10 12:45:59 +01:00
Gavin
413b9ba03e
correct impl of MySQL.supportsColumnCheck()
2022-12-10 12:45:59 +01:00
Gavin
baffbc0aae
reenable check constraings on enum columns, and use MySQL enum column types
...
MySQL doesn't have real check constraints, but it does have something just as good for this special case
2022-12-10 01:48:35 +01:00
Gavin
7208bcea41
clean up some bodgy handling of "null" annotation values (empty strings)
2022-12-09 18:24:01 +01:00
Christian Beikov
a9be2e1584
Fix temporal round in tests and render calendar with milliseconds precision
2022-12-08 16:15:40 +01:00
Gavin
7376a1cdfb
improve some javadoc around settings
2022-12-08 11:48:41 +01:00
Gavin
2c8d6d719b
improve some assertions in time zone tests + rename
2022-12-08 02:02:17 +01:00
Gavin
3196f2584b
add yet another time zone test
2022-12-08 02:02:17 +01:00
Gavin
d08498109b
jdoc for schema management Action + for JDBC_TIME_ZONE
2022-12-07 23:57:02 +01:00
Karel Maesen
7a1f2542c1
HHH-15814 add methods for current time selection to CockroachLegacy Dialect
2022-12-07 22:35:53 +01:00
Karel Maesen
c8723d3f14
HHH-15814 add methods for current time selection to CockroachDB Dialect
2022-12-07 22:35:53 +01:00
Gavin
7dff19795f
attempt to fix continuing test flakiness on Sybase
2022-12-07 22:35:32 +01:00
Gavin
86ef33d55b
clarify semantics of NORMALIZE
2022-12-07 19:24:57 +01:00
Gavin
5e9b57cf40
add one more test, this time for TIMEZONE_DEFAULT_STORAGE=NORMALIZE
2022-12-07 19:24:57 +01:00
Gavin
9660a0424f
clarify AnnotationBasedGenerator vs constructor for Generators
...
this was unclear/misleading in the javadoc, as pointed out by @sebersole
2022-12-07 16:13:19 +01:00
Gavin
7bb066330a
improve a couple of javadoc links
2022-12-07 15:18:58 +01:00
Gavin
512ad8c80d
fix @Column(precision=p) with TimeZoneStorageType.COLUMN
2022-12-07 14:48:36 +01:00
Sanne Grinovero
cceac72a22
HHH-15836 Cleanup unneccessary String <> Serializable casts in TimestampsCacheEnabledImpl
2022-12-07 13:42:04 +00:00
Andrea Boriero
23cff8bd10
HHH-15674 @NamedEntityGraph not working on entity that have composite PK
2022-12-07 14:03:13 +01:00
Andrea Boriero
ff28d677ab
HHH-15674 Add test for issue
2022-12-07 14:03:13 +01:00
Gavin
a7a455c39a
HHH-15834 add @TypeRegistration annotation
2022-12-07 13:36:15 +01:00
Jeremy Whiting
60468dadf0
HHH-15825 Avoid pointless autoboxing of timestamp.
2022-12-07 12:34:45 +00:00
Sanne Grinovero
52b143c613
HHH-15835 Avoid using functions in PersistenceContext#clear implementation
2022-12-07 12:28:56 +00:00
Gavin
6b1cbc0640
document the default behavior of time zone storage
2022-12-07 10:57:41 +01:00
Andrea Boriero
cc570da296
HHH-15653 Named Native Query cannot be registered/used with named parameters
2022-12-07 08:46:33 +01:00
Andrea Boriero
0d2e39314f
HHH-15653 Add test for issue
2022-12-07 08:46:33 +01:00
Gavin
015010febb
let's see if this works
2022-12-07 00:00:05 +01:00
Gavin
ef4ed9936e
move timezone tests where they belong
2022-12-07 00:00:05 +01:00
Gavin
ee66a93302
HHH-15828 fix setting TIMEZONE_DEFAULT_STORAGE to COLUMN
2022-12-07 00:00:05 +01:00
Gavin
4fba6ac60d
add tests for [Zoned|Offset]DateTime handling with AvailableSettings.TIMEZONE_DEFAULT_STORAGE set
2022-12-07 00:00:05 +01:00
Gavin
e53b55583b
misc javadoc and refactorings around TimeZoneStorage stuff
2022-12-07 00:00:05 +01:00
Gavin
863dda5cf5
HHH-15820 make the default TimeZoneStorageStrategy for [Zoned|Offset]DateTime depend on the dialect
...
Define TimeZoneStorageType.DEFAULT, uses NATIVE if possible, falls back to NORMALIZE_UTC
so that for dialects with proper support for TIMESTAMP WITH TIME ZONE we use it
this is consistent with what we already do for Instant
2022-12-07 00:00:05 +01:00
Gavin
a4f301814b
HHH-15819 fix extract(offset hour from datetime)
...
bug noticed by @mrotteveel
improve the tests for extracting time zones
2022-12-07 00:00:05 +01:00
Marco Belladelli
e088738687
HHH-15742 Always return inferred mapping for is-null clauses
2022-12-06 11:39:15 +01:00
Marco Belladelli
cdfbc58bb9
HHH-15742 Add test for issue
2022-12-06 11:39:15 +01:00
Mark Rotteveel
d91e878c66
HHH-15812 Remove dialect checks due to fix in #5699
2022-12-06 11:38:51 +01:00
Mark Rotteveel
9290f8b754
HHH-15812 Firebird dialect improvements
2022-12-06 11:38:51 +01:00