Andrea Boriero
5446291171
Throw UnknownSqlResultSetMappingException for non existing StoreProcedure result mapping
2022-01-31 17:34:38 +01:00
Andrea Boriero
b139967be1
Fix Criteria Subquery#getSelection() returns null when it has not any select expression
2022-01-31 17:34:11 +01:00
Christian Beikov
de0dd8cda3
Copy DomainParameterXref on demand instead of recreating to avoid instance mismatch with ParameterMetadata
2022-01-31 16:55:59 +01:00
Christian Beikov
1e823386f6
Support FK column access optimization also for associations in embeddables of an element collection
2022-01-31 16:55:59 +01:00
Christian Beikov
afdedb0fc5
Avoid rendering unnecessary parenthesis for junctions
2022-01-31 16:55:59 +01:00
Christian Beikov
cd555de724
Fix NPE for unbound parameters due to wrong type determination
2022-01-31 16:55:59 +01:00
Christian Beikov
ce5951a948
Fix type inference for binary arithmetic expressions
2022-01-31 16:55:59 +01:00
Christian Beikov
af42f3a76c
Allow controlling whether selection item deduplication should happen and disable deduplication in subqueries. Remove some dead code and fix a possible NPE. Expose some JdbcOperation fields for libraries to make it easy to produce a derived operation.
2022-01-31 16:55:59 +01:00
Gavin King
ef391bf644
get rid of warnings about use of deprecated PersisterCreationContext
2022-01-31 14:10:04 +01:00
Gavin King
1c73be8ba4
remove use of deprecated method
2022-01-31 14:10:04 +01:00
Gavin King
3f563087e6
add a couple of comments
2022-01-31 11:29:24 +01:00
Gavin King
c9015bcd8d
make ln() and exp() have the return type Double
2022-01-31 11:29:24 +01:00
Gavin King
385cba79d8
remove PowerReturnTypeResolver
...
You can't do "exact decimal" exponentiation. For the same reason that
sqrt() is of type Double in the JPA, pow(decimal, 0.5) is also of type
Double.
Yes, yes, I know that some dbs (Postgres!) claim that the return type is
NUMERIC for NUMERIC arguments. But go on, try it: yes, the return type of
typed NUMERIC, but then it has a very suspicious number of digits. Hrrm....
17 decimal digits, now why does that specific number ring a bell?
2022-01-31 11:29:24 +01:00
Gavin King
5b5c76abfd
fill in type parameters of raw type in Type interface
2022-01-30 19:28:24 +01:00
Gavin King
1b0862babd
introduce Contexts for the other cascading operations that need them
...
and typesafety, finally!
2022-01-30 19:28:24 +01:00
Gavin King
7570d15291
finally fix the warnings and typecasts in DefaultMergeEventListener
...
by using MergeContext instead of (raw!) Map
2022-01-30 19:28:24 +01:00
Gavin King
b75613cff1
edit the (excellent) javadoc of MergeContext
2022-01-30 19:28:24 +01:00
Gavin King
772c4533ee
move inner classes of CommonFunctionFactory to toplevel
2022-01-30 19:01:36 +01:00
Gavin King
8025af7592
add some code comments documenting some decisions taken here
...
cc @beikov
2022-01-30 16:58:24 +01:00
Gavin King
f5278ce678
javadoc about XML format mappings
2022-01-29 19:18:38 +01:00
Gavin King
9a11e843e6
stop calling factory.getJdbcServices().getDialect() so much
2022-01-29 18:00:39 +01:00
Gavin King
48dc4662ef
move subclassColumnClosure down to the only subclass that uses it
2022-01-29 17:46:42 +01:00
Gavin King
135216b0a9
fix some warnings in a couple of tests
2022-01-29 17:01:57 +01:00
Gavin King
56232a0159
remove a bunch of unused junk from the persisters
...
this is a potential performance gain!
2022-01-29 17:01:57 +01:00
Gavin King
929cbd1139
add missing @Override annotations
2022-01-29 17:01:57 +01:00
Gavin King
38f4c70e7b
split up TypeHelper
2022-01-29 12:55:27 +01:00
Gavin King
6c3b74d39e
clean up an important test
2022-01-29 11:16:20 +01:00
Gavin King
e8d7c98798
deprecate two operations that are no longer called
...
... and return deprecated types
2022-01-29 11:15:55 +01:00
Gavin King
ea36099571
fix some deprecation warnings by using getValues() instead of getPropertyValues()
...
though I don't like the underlying deprecation that made this necessary, and I
would prefer to be able to roll back these changes
2022-01-29 10:58:37 +01:00
Gavin King
678adbf682
add some missing (since = "6.0")
2022-01-29 10:55:50 +01:00
Gavin King
3f1cc36c2a
fix some warnings in QueryResultsCacheImpl
2022-01-29 10:48:23 +01:00
Gavin King
d86e9b6ab6
minor stylistic review and generics fixes in event stuff
2022-01-29 10:32:49 +01:00
Gavin King
c086fff1f8
fix some warnings in a couple of tests
2022-01-29 09:00:14 +01:00
Gavin King
c807aecdb9
add some @FunctionalInterface annotations
...
and fix a warnings
2022-01-29 08:59:34 +01:00
Gavin King
232ad00f5c
add some missing (since="6.0")
2022-01-29 08:57:25 +01:00
Gavin King
cd7417e815
remove unwrap() methods that aren't to do with proxying
...
it's better to do this stuff in a more typesafe way
2022-01-29 02:12:44 +01:00
Gavin King
2e2a544584
correct fix for Interceptor.onSave()
...
see 9898151dda
This change broke the ability to selectively implement methods of Interceptor,
and also broke backwards compatibility with older implementations of Interceptor.
2022-01-29 02:12:25 +01:00
Gavin King
2090df4a08
fix some raw types in Configuration
2022-01-29 02:12:25 +01:00
Gavin King
9276ce4421
explain how to get things in the javadoc
2022-01-29 00:43:08 +01:00
Gavin King
f388b2fb2b
Javadoc for SessionFactoryBuilder and lots of crossrefs
2022-01-28 19:46:39 +01:00
Gavin King
77137f7407
remove type parameter from BasicValueBinder
...
why it ever had one, I can only speculate
2022-01-28 17:25:16 +01:00
Gavin King
fb1650f789
refresh Javadoc for Configuration and friends
2022-01-28 17:16:59 +01:00
Andrea Boriero
b1a09d5630
Fix Criteria#getResultType() returning Object class instead of null
2022-01-28 16:51:00 +01:00
Gavin King
475d028981
remove @TimeZoneColumn for now because it's unimplemented
...
and there's no plan to implement it for 6.0
(we can put it back later if someone gets around to implementing it)
2022-01-28 16:01:58 +01:00
Gavin King
5f1358633d
remove a deprecation that was probably an accident
2022-01-28 14:05:09 +01:00
Gavin King
d4f934881c
fix some warnings and other misc cleanups to .cfg package
2022-01-27 22:08:39 +01:00
Andrea Boriero
f9141ecb5a
Add additional test
2022-01-27 20:10:24 +01:00
Gavin King
6bfa8d6c27
fix disabling of fk in @ManyToOne associations
2022-01-27 19:44:32 +01:00
Gavin King
abe0cc3108
javadoc for @NotFound and NotFoundAction
2022-01-27 19:39:36 +01:00
Gavin King
0a251e9a0e
second round of binder cleanup: CollectionBinder, more AnnotationBinder
2022-01-27 18:13:09 +01:00