Gavin King
4a88399bb5
remove name() from @ColumnDefault + @GeneratedColumn
...
after all that, we decided it wasn't necessary :-D
2021-12-31 18:34:57 +01:00
Steve Ebersole
9beab38716
Re-write of `Collections` domain model section
...
preliminary work
2021-12-31 11:32:44 -06:00
Gavin King
aa08c90b52
add some overrides that should not be necessary
...
Javac doesn't mind, but IntelliJ seems to get confused
2021-12-31 18:11:38 +01:00
Steve Ebersole
4ea949d93d
Re-write of `Collections` domain model section
...
preliminary work
2021-12-31 11:08:25 -06:00
Gavin King
f2c3ac7db7
remove some obsolete code from AnnotationBinder
2021-12-31 16:02:23 +01:00
Gavin King
5bcf691d2b
mention @GeneratedColumn in the docs
2021-12-31 16:01:32 +01:00
Gavin King
4ce27e70ae
introduce @GeneratedColumn annotation
...
to make it easy to produce portable DDL with 'generated always as'
or equivalent
also add 'name' to @ColumnDefault, and add some missing tests for
basic usage patterns of @ColumnDefault
2021-12-31 16:01:32 +01:00
Gavin King
37010a1a8d
fix a broken @see annotation + remove one
2021-12-31 16:01:11 +01:00
Steve Ebersole
b7caec4b68
`@CollectionClassificationType`;
...
`AvailableSettings.DEFAULT_LIST_SEMANTICS` / MappingDefaults.getImplicitListClassification`;
additional improvements to CollectionSemantics resolution handling from annotations
2021-12-30 13:07:46 -06:00
Steve Ebersole
452f114957
`@CollectionType` + better CollectionSemantics resolution handling from annotations;
...
HHH-9688 - Combination of @OrderBy and @SortComparator
HHH-9688 was simple change in the code I was working on already, so went ahead and just did it
2021-12-30 09:22:13 -06:00
Steve Ebersole
e16c78f7ea
log4j config
2021-12-29 11:40:24 -06:00
Gavin King
bf1eec69d0
minor fixes to generic types in QueryParameterBinding
...
gets rid of some warnings
2021-12-29 12:56:06 +01:00
Gavin King
537953e12c
more cleanups to the Javadoc for Query
2021-12-29 12:52:04 +01:00
Gavin King
553688ca67
fix the javadoc of Query.getSingleResult()
...
which incorrectly described the semantics of this method
and add tests for this stuff, since we didn't seem to have them
2021-12-29 10:35:02 +01:00
Gavin King
0b2a357670
add MappingMetamodel.isEntityClass() and clean up raw types
2021-12-27 22:15:30 +01:00
Gavin King
0bf2365955
fix signature of createQuery(CriteriaUpdate|CriteriaDelete)
2021-12-27 22:15:30 +01:00
Gavin King
ac845bca31
impl the new overload of createNativeQuery()
...
- and add a second new overload
- tolerate non-entity classes as arguments to these methods
- the overloads accept a result class, and return a typed Query<R>
2021-12-27 22:15:30 +01:00
Gavin King
4ea59b4961
deprecate a bunch of methods of Query + QueryProducer
2021-12-27 22:15:30 +01:00
Gavin King
8a68ee49c1
remove wildcards from APIs in Query hierarchy
...
I hate doing this but it's necessary since Query is often
used as a raw type, and the wildcards result in additional
compiler warnings at the usage site
Also clean up some other warnings I encountered in this code
2021-12-27 22:15:30 +01:00
Gavin King
82aff7cd8a
add tests for Session.fetch()
2021-12-27 21:25:11 +01:00
Gavin King
313de3f917
implement Session.fetch() for bytecode-enhanced proxies
...
had to add a way to easily set collectionsInDefaultFetchGroup
2021-12-27 21:25:11 +01:00
Gavin King
8770db00af
add fetch() to StatelessSession
2021-12-27 21:25:11 +01:00
Gavin King
2d10698d94
remove operations that always threw UnsupportedOperationException
2021-12-27 14:14:42 -06:00
Gavin King
a25aa20187
clean up some warnings
2021-12-27 14:14:42 -06:00
Gavin King
9d0ee368ca
reword some javadoc
2021-12-27 12:50:48 -06:00
Gavin King
4a8a2ae3cc
tests for Session.getReference(Object)
...
and clean up lots of warnings in ProxyTest
2021-12-27 12:50:48 -06:00
Gavin King
65ce96b776
add Session.getReference(Object)
...
like in Hibernate Reactive
this is really useful for dealing with detached instances + associations
2021-12-27 12:50:48 -06:00
Dariush Moshiri
0dc94d312e
HHH-14682: Enable COMMENT ON H2
2021-12-27 07:31:42 -06:00
Gavin King
f2f2a195cd
fixes to Session javadoc, including usage of @see
2021-12-27 07:31:15 -06:00
Gavin King
800af2764d
remove reference to obsolete config property
2021-12-27 07:31:15 -06:00
Gavin King
92a000b8e6
misc Javadoc fixes, and added @links
2021-12-27 07:31:15 -06:00
Gavin King
8adc1d8d70
use @code instead of <tt> in Javadoc
2021-12-27 07:31:15 -06:00
Christian Beikov
fb8186d3e8
Cleanup stored procedure handling and add support for stored procedure function return
2021-12-24 01:44:41 +01:00
Christian Beikov
1aefd1977a
Rename result.SqlSelectionImpl to ResultSetMappingSqlSelection. Introduce support for resolving the selection type also for normal JdbcValuesMapping.
2021-12-24 01:44:41 +01:00
Andrea Boriero
313bc2666c
Remove few NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Andrea Boriero
67f73f20ef
Remove few NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Andrea Boriero
87c059ac95
Remove DomainResultProducer NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Andrea Boriero
63c119bf89
Remove ProcedureParameterImplementor NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Andrea Boriero
5b425f39fd
Remove EntityPersister NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Andrea Boriero
2200a221a7
Remove ModelPart NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Andrea Boriero
0a41272e16
Remove JdbcMappingContainer NotYetImplementedFor6Except
2021-12-23 21:33:01 +01:00
Andrea Boriero
ee11f9a9ef
Remove Bindable NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Andrea Boriero
c612669bb5
Remove few NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Andrea Boriero
7a3ad20aea
Remove few NotYetImplementedFor6Exception
2021-12-23 21:33:01 +01:00
Christian Beikov
aec5ce9d8a
Move some more tests and fix H2 tuple comparison issues
2021-12-23 18:51:13 +01:00
Fabio Massimo Ercoli
2f8d22e9e5
Fix test to follow 6.0 behaviour ( #4513 )
...
* Fix test to follow 6.0 behaviour
2021-12-23 14:15:43 +01:00
Fabio Massimo Ercoli
91a720772f
Set correct key type if !referenceToPrimaryKey
2021-12-23 12:45:36 +01:00
Christian Beikov
3ea5a066ed
Add query plan cache statistics for native queries and implement proper caching
2021-12-23 10:01:07 +01:00
Christian Beikov
1184a5963b
Re-add AvailableSettings.JPA_METAMODEL_GENERATION and re-enable metamodel tests
2021-12-23 10:01:07 +01:00
Jan Schatteman
195df69019
Fixed and moved MappedSuperclassInheritanceTest to orm.test
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-12-23 08:41:10 +01:00