gavinking
41cb827267
Delete two obsolete ICS classes
2020-01-30 14:01:34 -06:00
gavinking
e4379bea4b
Improve javadoc
2020-01-30 14:01:34 -06:00
gavinking
a63d23f724
Use switch for consistency
2020-01-30 14:01:34 -06:00
gavinking
eb71ec395d
Oracle doesn't recognize "as", so use the Dialect to decide
2020-01-30 14:01:34 -06:00
gavinking
5cae462f7a
Let ClobTypeDescriptor handle Strings
...
Just like BlobTypeDescriptor can handle byte[] arrays
2020-01-30 14:01:34 -06:00
gavinking
3ab747517d
Use OID instead of BYTEA for @Lob mappings on PostgreSQL
2020-01-30 14:01:34 -06:00
gavinking
c8f477c962
A couple of default properties went missing from the dialects
2020-01-30 14:01:34 -06:00
gavinking
4f5b37c9c4
Use SequenceSupport everywhere instead of deprecated methods of Dialect
2020-01-30 14:01:34 -06:00
gavinking
f6eaaca824
Fix up Dialect auto-detection
...
- make it work for DriverManagerConnectionProviderImpl
- improve logging and some confusing exceptions
- make it respect explicit database setting properties
2020-01-30 14:01:34 -06:00
gavinking
95930820af
Support for timezones
...
- add TimestampWithTimeZoneDescriptor and use it in OffsetDateTimeJD
and ZonedDateTimeJD
- add ZoneOffsetJavaDescriptor for ZoneOffset attributes
- clean up string rendering for temporal types using ISO formats;
note that they do not need to implement objectToSQLString()
since they cannot be discriminators
Note that at this time very few databases have meaningful support
for the ANSI-standard TIMESTAMP WITH TIME ZONE type. This limits
the usefulness of TimestampWithTimeZoneDescriptor for now.
Also add in some missing but needed type mappings for temporal types
2020-01-30 14:01:34 -06:00
gavinking
5a3838dfa6
Simplify the whole SqmFunctionDescriptor hierarchy
...
And make the various function implementations work in more common ways.
- remove some unnecessary flexibility
- simplify some function descriptors to do their work during render()
- fix generics of QueryLiteral
- fix DerbyConcatEmulation
2020-01-30 14:01:34 -06:00
gavinking
effec02964
Automatically generate check constraints for boolean and enum attributes
...
And make enums map to TINYINT by default.
2020-01-30 14:01:34 -06:00
gavinking
992b390fce
Get type-specific column length/precision/scale defaulting working again
...
And fix resulting breakage to envers
2020-01-30 14:01:34 -06:00
gavinking
f0d93200b5
Add hibernate.dialect.show_hql_functions
...
Very useful feature for logging available functions
2020-01-30 14:01:34 -06:00
gavinking
96c948b06b
Changes to tests
...
First, disable tests that fail because of loss of indirected parameter binding.
On the other branch, the index of a HQL parameter wasn't passed directly through
as the index of the JDBC parameter. On this branch it seems to be. This causes a
problem for fancy HQL functions like overlay() and pad() which sometimes
duplicate/reorder HQL arguments in the generated SQL.
Also reenable tests that now pass.
Also fixed a rather badly-written test that failed for me.
- called Thread.sleep(), wasting a whole second
- failed on non-slow machines
2020-01-30 14:01:34 -06:00
gavinking
5b18a4048d
Make parenthesized expressions work in HQL
...
Previously, parenthesized expression were broken.
2020-01-30 14:01:34 -06:00
gavinking
95a291575e
Hacky solution to make count(e) work again
...
(It wasn't working on the new 6 branch)
2020-01-30 14:01:34 -06:00
gavinking
28232427ce
Got unary +, - working again
...
(They were unimplemented on the new 6 branch)
2020-01-30 14:01:34 -06:00
gavinking
9565d499af
Big merge of my branch with new Hibernate 6 codebase
...
Lots of new functionality here related to HQL functions, SQL
dialects, and date/time handling.
2020-01-30 14:01:33 -06:00
Davide D'Alto
4cd9dd30a0
HHH-13831 Rename test class to EventListenerDuplicationStrategyTest
2020-01-30 18:09:23 +01:00
Davide D'Alto
0268ba9a33
HHH-13831 Test listeners error replacement strategy
2020-01-30 18:09:23 +01:00
Davide D'Alto
e38d2be431
HHH-13831 Test listener keep original replacement strategy
2020-01-30 18:09:23 +01:00
Davide D'Alto
6670d03493
HHH-13831 Add tests for multiple listeners
...
We want to test what happens when we apply a replacement strategy
that doesn't match all listeners.
2020-01-30 18:09:23 +01:00
Davide D'Alto
695e3a084e
HHH-13831 Clean up existing tests for listeners
2020-01-30 18:09:23 +01:00
Davide D'Alto
7bf632e5c5
HHH-13831 Fix the way we keep track of the callers in test
2020-01-30 18:09:23 +01:00
Davide D'Alto
c0a2b4f424
HHH-13831 Add missing placeholder to log message
2020-01-30 18:09:23 +01:00
Steve Ebersole
0a2dd4e126
HHH-13831 Refresh listeners when one is replaced
2020-01-30 18:09:23 +01:00
Steve Ebersole
2f86c4983f
HHH-13831 Refresh listeners when one is replaced
2020-01-30 18:09:23 +01:00
Davide D'Alto
739ca869af
HHH-13831 Test for replacing listeners
2020-01-30 18:09:23 +01:00
Davide D'Alto
5c1cc35f98
HHH-13831 Refresh listeners when one is replaced
2020-01-30 18:09:23 +01:00
Christian Beikov
89ebcfbc32
Allow to invoke list() operation also without unique filtering
2020-01-30 17:24:49 +01:00
Christian Beikov
7b064afbd3
Use type inference for every added when/otherwise arm for case expressions
2020-01-30 17:23:54 +01:00
Sanne Grinovero
f7aba3ea17
HHH-13833 Replace references to Opcodes.ASM7 with OpenedClassReader.ASM_API
2020-01-30 09:02:43 +00:00
Nathan Xu
3eb49972f3
HHH-8776 add more 'final' keywords to align with existing coding style
2020-01-29 20:52:33 +01:00
Nathan Xu
d02ce91e9c
HHH-8776 add testing cases to prove 'fetch graph' takes precedence over 'fetch profile'
2020-01-29 20:52:33 +01:00
Nathan Xu
29f905dafc
HHH-8776 fix check style issue
2020-01-29 20:52:33 +01:00
Nathan Xu
f3cfff5cee
HHH-8776 fix 'fetch graph' semantic
2020-01-29 20:52:33 +01:00
Sam De Block
a60a10f009
HHH-13390
...
Upgrade JPA MetaModel Generator (jpamodelgen) to support Gradle Incremental Compile
2020-01-29 20:23:11 +01:00
Christian Beikov
1cd5ea61f6
Fix type inference for case expressions and simple case SQL rendering issue
2020-01-29 19:05:16 +01:00
Christian Beikov
f66728d5b2
Fix plural join alias de-reference
2020-01-29 17:51:13 +01:00
Christian Beikov
31377b1423
Register JPA embeddable types properly, allow access to functions in registry and fix AttributeClassifications
2020-01-29 17:51:13 +01:00
Gwenneg Lepage
a4ba766620
HHH-13833 Replace OpCodes.ASM5 with OpCodes.ASM7 in the Byte Buddy enhancer
2020-01-29 15:48:53 +00:00
Sanne Grinovero
252ca9e98b
HHH-13832 Optimise setting of default Flush Mode on a newly created Session
2020-01-29 15:42:23 +00:00
Safeer Ansari
9b2a839ee4
Fixing a typo in the build task #HHH-13830
...
One of the build tasks, publish, had a typo in the description. It has been corrected in this commit.
2020-01-29 15:13:59 +01:00
Jonathan Bregler
b178f9e23a
HHH-13783: fix test failure in HiLoSequenceMismatchStrategyTest
2020-01-28 21:36:32 +01:00
Andrea Boriero
b51d34a22d
HHH-13796 Fix test failure on Oracle
2020-01-28 15:18:06 +00:00
Nathan Xu
9d2ac546f3
HHH-13677 make org.hibernate.flushMode config take effect
2020-01-28 08:14:39 +00:00
Nathan Xu
a6934467f7
HHH-6686 fix JQL exception in face of 'empty'
2020-01-27 14:55:39 +00:00
Andrea Boriero
f1d1e62478
HHH-10844 Fix test formatting
2020-01-27 13:42:34 +00:00
Jan-Willem Gmelig Meyling
85bfcc6e21
HHH-13796 - Missing from clause in query from BinaryLogicOperatorNode row value constructor translation
...
https://hibernate.atlassian.net/browse/HHH-13796
2020-01-27 13:40:44 +00:00