hailtondecastro
0f859e7bb4
HHH-13656 Can not build and run test on Eclipse IDE
...
Eclipse windows
2019-11-01 11:23:36 -05:00
hailtondecastro
e651bd7369
HHH-13656 Con not build and run test on Eclipse IDE
...
Eclipse windows
2019-11-01 11:23:36 -05:00
hailtondecastro
f6fad942df
HHH-13656 Con not build and run test on Eclipse IDE
...
Eclipse windows
2019-11-01 11:23:36 -05:00
hailtondecastro
9f8a312841
Eclipse windows
2019-11-01 11:22:21 -05:00
Sanne Grinovero
cec7329214
HHH-13700 Configuration property CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT should not be passed to the JDBC connection properties
2019-10-31 23:43:38 +00:00
Steve Ebersole
c89ee3761a
preliminary support for collections - lists and sets tested (excluding entity-valued elements and map-key)
2019-10-31 17:43:54 -05:00
Sanne Grinovero
2bcb1b0a6d
HHH-13654 Reorganize fields and add some comments about this work
2019-10-30 12:27:59 +00:00
Sanne Grinovero
f89bf35106
HHH-13654 Make AbstractFlushingEventListener#entitiesByKey also lazily initialized
2019-10-30 12:27:59 +00:00
Sanne Grinovero
6034ece731
HHH-13654 Refactor references to StatefulPersistenceContext#batchFetchQueue
2019-10-30 12:27:55 +00:00
Sanne Grinovero
500819e169
HHH-13654 Defer initialization of StatefulPersistenceContext#entitySnapshotsByKey
2019-10-30 12:27:53 +00:00
Sanne Grinovero
f4bf11331b
HHH-13654 Defer initialization of StatefulPersistenceContext#collectionsByKey
2019-10-30 12:27:48 +00:00
Steve Ebersole
093f410953
preliminary support for collections
2019-10-28 07:26:41 -05:00
barreiro
1dd787eaa1
HHH-13446 - Validate mapped-by values got from annotations in bytecode enhancers
2019-10-26 17:53:56 +01:00
Sanne Grinovero
b4a8052a15
HHH-13695 DDL export forgets to close a Statement
2019-10-25 16:47:52 +01:00
Sanne Grinovero
e5539cc36c
HHH-13651 Adding a regression test for the issue
2019-10-24 11:25:17 +01:00
Yosef Yona
a5c8a812f5
HHH-13651 Applying hibernate codestyle to PersistentBag
2019-10-24 09:27:23 +01:00
Yosef Yona
2808a75d5c
HHH-13651 NPE on flushing when ElementCollection field contains null element
2019-10-24 09:26:51 +01:00
Steve Ebersole
cf09e47d40
fixed usage of `AbstractEntityPersister#staticFetchableList`
2019-10-23 13:10:36 -05:00
Andrea Boriero
520c8f2004
initial work for table per class inheritance
2019-10-23 16:15:56 +01:00
Andrea Boriero
27968b8027
Add test for TablePerClassInheritanceTest and MappedSuperclassInheritanceTest
2019-10-23 14:59:54 +01:00
Steve Ebersole
9574ffbd84
improved visitation of of fetchables to use "static List of fetchables" when TREAT is not used
2019-10-22 21:18:47 -05:00
Steve Ebersole
f5c3ae181c
initial discriminator hierarchy support
2019-10-22 14:45:14 -05:00
Andrea Boriero
96e7abf80b
HHH-13672 The temporary PersistenceContext of a StatelessSession is not cleared after a refresh operation
2019-10-21 12:08:58 +01:00
Andrea Boriero
43402ea51c
HHH-13672 Add test for issue
2019-10-21 12:08:58 +01:00
Yoann Rodière
cacef1f466
HHH-13680 Upgrade to Byte-buddy 1.10.2
2019-10-21 12:59:29 +02:00
Steve Ebersole
3c65085123
changed log message level
2019-10-21 05:08:09 -05:00
Andrea Boriero
f39d96f9fa
HHH-13673 Cryptic error when providing import.sql file without a terminal char at the end of each line
2019-10-21 10:17:03 +01:00
Andrea Boriero
8f68a3573e
HHH-13673 Add test for issue
2019-10-21 10:17:03 +01:00
Steve Ebersole
31e2423d8a
initial work on support for discrim-inheritance;
...
started design doc about SQM model, building and translation;
initial work on `#load` support (strange error in BasicFormatterImpl as part of SqlStatementLogger)
2019-10-18 12:46:22 -05:00
Christoph Dreis
3b1e7afb20
HHH-13675 : Optimize PersistentBag.groupByEqualityHash()
2019-10-18 13:28:00 +01:00
Andrea Boriero
1c840f9dd1
HHH-12858 HHH-13432 fix Oracle failing tests
2019-10-18 13:15:48 +01:00
Steve Ebersole
26d914f414
(perf) Antlr parsing performance - what they call "2 step parsing"
2019-10-18 07:11:19 -05:00
Gail Badner
93a07453f0
HHH-13634 : Fix test case queries to order results
2019-10-17 12:04:19 -07:00
Gail Badner
42de569a37
HHH-13634 : PersistenceContext can get cleared before load completes using StatelessSessionImpl
2019-10-17 09:46:58 -07:00
Gail Badner
eccb786ba4
HHH-13634 : Test cases
2019-10-17 09:46:58 -07:00
Steve Ebersole
9aab0892eb
fixed issues with merging master
2019-10-17 10:20:52 -05:00
Andrea Boriero
8b500acc1d
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_9
2019-10-17 16:02:43 +01:00
Yoann Rodière
6cdb0256d4
HHH-13666 Test custom BeforeTransactionCompletionProcess/AfterTransactionCompletionProcess
2019-10-17 15:54:16 +02:00
Yoann Rodière
5c8169ba7c
HHH-13666 Re-use the wrapped exception's message upon beforeTransactionCompletion/afterTransactionCompletion failure
...
For convenience.
2019-10-17 15:54:16 +02:00
Yoann Rodière
f9c149ab0d
HHH-13666 Throw a HibernateException with a more appropriate message upon beforeTransactionCompletion/afterTransactionCompletion failure
2019-10-17 15:54:16 +02:00
Yoann Rodière
250f569339
HHH-13666 Clarify that existing BeforeCompletion/AfterCompletion tests are about JTA only
2019-10-17 15:54:16 +02:00
Yoann Rodière
8655d683e6
HHH-13666 Remove some dead code in tests related to transactions
2019-10-17 15:54:16 +02:00
Andrea Boriero
39afae5462
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_8
2019-10-17 09:18:56 +01:00
Gail Badner
81d5f5eb21
HHH-13633 : Fix test case queries to order results
2019-10-16 13:53:53 -07:00
Steve Ebersole
1a3fcff8af
(perf) fix cases of Map resizing when number of entries known ahead of time;
...
(perf) convert some List Iterators to "for i" loops
2019-10-16 13:48:23 -05:00
Gail Badner
388b62f049
HHH-13633 : Bugs join-fetching a collection when scrolling with a stateless session using enhancement as proxy
...
Make corrections.
(cherry picked from commit 40a7cee13d
)
2019-10-16 11:27:35 -07:00
Gail Badner
ce19b83e4e
HHH-13633 : Add tests including for no HibernateProxy factory
...
(cherry picked from commit 5aa421d697
)
2019-10-16 11:27:35 -07:00
Gail Badner
20d6b53631
HHH-13633 : Bugs join-fetching a collection when scrolling with a stateless session using enhancement as proxy
...
Minor changes suggested by Andrea.
(cherry picked from commit cce634f03b
)
2019-10-16 11:27:35 -07:00
Gail Badner
f1fa438bbe
HHH-13633 : Bugs join-fetching a collection when scrolling with a stateless session using enhancement as proxy
...
(cherry picked from commit b589251166
)
2019-10-16 11:27:35 -07:00
Gail Badner
e2a403e19d
HHH-13633 : Added more tests based on renamed original (w/ and w/o bytecode enhancement)
...
(cherry picked from commit 9ad427a33e
)
2019-10-16 11:27:35 -07:00
Andrea Boriero
38ff41c896
HHH-13633 : Add test for issue
...
(cherry picked from commit 1d8f93ca64
)
2019-10-16 11:27:35 -07:00
Steve Ebersole
5482c55e6c
remove caching of ColumnReferences inside ColumnReferenceQualifier - they are already cached as part of the SqlExpressionResolver, which has a broader scope and is therefore more efficient place
2019-10-16 10:30:17 -05:00
Steve Ebersole
4d32d3d763
prep work for to-one mapping support
2019-10-16 10:04:28 -05:00
Steve Ebersole
63b22c4c6b
fixed references to same column, but from different TableReferences (different qualifiers)
2019-10-15 15:30:03 -05:00
Steve Ebersole
39391c86f2
Checkstyle (missing license header)
2019-10-15 14:22:47 -05:00
Steve Ebersole
a5fe864295
Fixed test
2019-10-15 14:06:33 -05:00
Gail Badner
fb8d5b42c9
HHH-13640 : Correct DefaultLoadEventListener#proxyOrLoad to work properly enhancement but no HibernateProxy factory
2019-10-15 10:47:33 -07:00
Gail Badner
66afff296a
HHH-13640 : Add test using custom EntityTuplizer with no HibernateProxy factory using Session
2019-10-15 10:47:33 -07:00
Steve Ebersole
6ea723ddc5
New test
2019-10-15 11:49:36 -05:00
Steve Ebersole
611cdceeb2
Performance work
2019-10-15 11:38:29 -05:00
Andrea Boriero
c392d03bf1
HHH-13665 selecting an Entity annotated with @Immutalbe but not with @Cachable causes a NPE when use_reference_entries is enabled
2019-10-15 11:02:04 +01:00
Andrea Boriero
8d9eb04d16
HHH-13665 Add test for issue
2019-10-15 11:02:04 +01:00
Gail Badner
e10e84159a
HHH-13640 : Remove SharedSessionContractImplementor#internalLoad(String, Serializable, boolean, boolean, Boolean unwrapProxy)
2019-10-14 11:40:00 -07:00
Gail Badner
c21ecb511c
HHH-13640 : Added/modified tests
2019-10-14 11:39:59 -07:00
Francisco A. Lozano
8f96d7e1e9
HHH-4235 MapBinder.createFormulatedValue() does not honor DB schema name when creating query
2019-10-14 10:29:58 +01:00
Andrea Boriero
2985c1db98
HHH-4235 Add test for issue
2019-10-14 10:27:11 +01:00
Sanne Grinovero
14b6330a32
HHH-13663 Have the test actually use ThreadLocalSessionContext
2019-10-11 10:59:29 +01:00
Sanne Grinovero
1d64a386cd
HHH-13663 adjust formatting style
2019-10-11 10:44:39 +01:00
mimmoz81
26edb2863f
HHH-13663 Method setHibernateFlushMode not callable without an active transaction on threadbound Sessions
2019-10-11 10:41:53 +01:00
Sanne Grinovero
9d6463eab6
HHH-13662 Avoid initializing XmlMappingBinderAccess when no XML mappings are defined
2019-10-10 10:27:52 +01:00
Andrea Boriero
567eb38069
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_6
2019-10-09 18:00:48 +01:00
Steve Ebersole
c7ce52c4b1
perf changes
2019-10-09 11:42:05 -05:00
Steve Ebersole
6f77e0d261
perf work
2019-10-09 11:42:05 -05:00
Sanne Grinovero
404bc196f7
HHH-13660 Removing dead parameter: forceFetchLazyAttributes
2019-10-09 11:57:56 +01:00
Sanne Grinovero
9dd6b8439b
HHH-13660 Reduce allocation costs of IdentityMaps used by ResultSetProcessingContextImpl
2019-10-09 11:57:53 +01:00
Gail Badner
d6376834a7
HHH-13640 : Minor improvement
2019-10-07 12:22:51 +01:00
Andrea Boriero
cec4228d70
HHH-13640 - Fix initialization of existing proxy association leaf subclass
2019-10-07 12:22:51 +01:00
Gail Badner
c712b83955
HHH-13653 : More test cases
2019-10-07 07:58:45 +01:00
Andrea Boriero
3c1f4356dd
HHH-13653 Uninitialized entity does not get initialized when a setter is called with enhancement-as-proxy enabled
2019-10-07 07:58:45 +01:00
Steve Ebersole
ab508d2afa
HHH-12858 - integration overrides during JPA bootstrap ought to override all logically related settings
...
HHH-13432 - Have EntityManagerFactory expose persistence.xml `jta-data-source` element as a `javax.persistence.nonJtaDataSource` property
2019-10-05 23:03:09 -05:00
Steve Ebersole
fd72e4f75f
HHH-12858 - integration overrides during JPA bootstrap ought to override all logically related settings
...
HHH-13432 - Have EntityManagerFactory expose persistence.xml `jta-data-source` element as a `javax.persistence.nonJtaDataSource` property
2019-10-05 22:45:29 -05:00
Gail Badner
00f45951da
HHH-13653 : Test case
2019-10-03 23:54:23 -07:00
Steve Ebersole
b350599442
HHH-12858 - integration overrides during JPA bootstrap ought to override all logically related settings
...
- e.g. a datasource passed in the integration overrides map ought to effectively override JDBC-connection settings in `persistence.xml` (and vice-versa)
HHH-13432 - Have EntityManagerFactory expose persistence.xml `jta-data-source` element as a `javax.persistence.nonJtaDataSource` property
2019-10-03 16:03:43 +01:00
Andrea Boriero
2bc7fed96e
HHH-13640 - Add PrepareStatement executed check to LazyToOnesProxyWithoutSubclassesTest
2019-10-02 16:19:54 +01:00
Andrea Boriero
4b6777cde2
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_4
2019-10-02 10:24:59 +01:00
Gail Badner
616f549f8c
HHH-13640 : Added failing test where a proxy is found in PersistenceContext, but it does not have a subclass
2019-10-01 17:32:45 -07:00
Steve Ebersole
ee304305e8
HHH-13640 - Uninitialized HibernateProxy mapped as NO_PROXY gets initialized when reloaded with enhancement-as-proxy enabled
2019-10-01 09:25:09 -05:00
Steve Ebersole
d46d3d66a2
HHH-13432 - EntityManagerFactory no longer exposes "javax.persistence.nonJtaDataSource"
2019-10-01 09:25:09 -05:00
Andrea Boriero
726dbeef34
Merge remote-tracking branch 'upstream5/master' into wip/6.0_merged_4
2019-09-30 16:45:27 +01:00
Vlad Mihalcea
9a627c30fe
HHH-13493 - For a native query, the SessionImpl class does not call applyQuerySettingsAndHints
2019-09-30 11:02:22 +01:00
Sanne Grinovero
a92cd6c9b9
HHH-13645 Include a comment in the implementation about the design choice to not optimise for null values
2019-09-30 10:40:45 +01:00
Gail Badner
00d25c1824
HHH-13645 : StatsNamedContainer#getOrCompute throws NullPointerException when computed value is null
2019-09-30 10:30:05 +01:00
Gail Badner
3f7d03bfec
HHH-13645 : test cases
2019-09-30 10:30:05 +01:00
Steve Ebersole
032f03afa3
initial work for LoadQueryInfluencer (EntityGraph, FetchProfile, etc) in SQM -> SQL AST transformation while building DomainResult/Fetch graph
2019-09-27 14:58:34 -05:00
Steve Ebersole
e572202cd1
fixed SqmParameter type inference from an SqmPath during translation to SQL AST
2019-09-27 12:10:59 -05:00
Kim Hansen
7355fc5131
Fix error in error message
2019-09-27 12:33:27 +01:00
Andrea Boriero
e04348079f
HHH-13597 Building DatabaseInformation fails on H2 without DATABASE_TO_UPPER
2019-09-27 11:57:36 +01:00
Vootele Rotov
0e9ef8c7c9
HHH-13597 Add test for issue
2019-09-27 11:57:36 +01:00
Steve Ebersole
b9f4562680
fixed source of NPE wrt accessing an entity's version attribute descriptor when no versioning is defined;
...
added `@org.hibernate.testing.orm.junit.SessionFactory#exportSchema`
2019-09-26 14:14:19 -05:00
Steve Ebersole
57fba402b4
HHH-12858 - Persistence.createEntityManagerFactory(Map) should allow overwriting jta-data-source of persistence.xml
2019-09-25 15:12:25 -05:00
Steve Ebersole
12ca8a2a81
avoid NPE with no proxy-class defined
2019-09-25 11:36:25 -05:00
Steve Ebersole
7fd33fdd93
various perf cleanup
2019-09-25 11:29:27 -05:00
Gail Badner
283802c491
HHH-13640 : Test case (marked FailureExpected)
2019-09-24 15:03:29 -07:00
Steve Ebersole
4e3f60bf32
clean up SqmPath -> TableGroup resolution, esp wrt LHS
2019-09-23 14:12:13 -05:00
Steve Ebersole
4149350222
pluggable SQL AST translators
2019-09-23 12:53:51 -05:00
Steve Ebersole
35860baad6
support for pluggable HqlTranslator (renamed from SemanticQueryProducer);
...
support for pluggable SqmToSqlAstConverterFactory
- both allow a precedence of user-supplied > Dialect > standard
2019-09-23 11:53:14 -05:00
Steve Ebersole
cd354f1e2b
minor cleanup
2019-09-23 11:01:00 -05:00
Steve Ebersole
25152db2de
cleanup wrt TableGroup rendering;
...
better utilize constants when rendering SQL AST
2019-09-23 09:01:53 -05:00
Steve Ebersole
0f5107ca11
Merge branch 'andrea-merge' into wip/6.0
2019-09-23 05:44:40 -05:00
Steve Ebersole
3d764e15d5
minor cleanup
2019-09-22 10:52:43 -05:00
Steve Ebersole
233a3b176c
initial working "unqualified" entity join support in criteria
2019-09-22 10:32:41 -05:00
Andrea Boriero
18c8495bab
Merge branch 'master' into wip/6.0_merged2
2019-09-20 08:09:34 +01:00
Steve Ebersole
26b08fd35e
initial working literal and parameter selection
2019-09-19 15:59:59 -05:00
Steve Ebersole
5631a702a7
initial working dynamic instantiation support;
...
cleanup
2019-09-19 15:13:50 -05:00
Steve Ebersole
055ce0c542
cleanup
2019-09-19 07:36:41 -05:00
Steve Ebersole
05a38d2c7c
initial working support for embeddables and sub-references in HQL
2019-09-19 07:30:44 -05:00
Sanne Grinovero
1bdbc0e764
HHH-13625 After upgrading to 5.4.5, it's no longer possible to bootstrap Hibernate if the org.hibernate.cfg LOG is set to DEBUG
2019-09-17 19:43:08 +01:00
Steve Ebersole
5500985afa
initial working support for root entity loading via HQL
2019-09-16 13:09:43 -05:00
Andrea Boriero
00267022eb
Initial working support for selecting a "query root" - i.e.
2019-09-16 11:16:31 +01:00
Andrea Boriero
c27c53f619
Initial working support for selecting a "query root" - i.e.
2019-09-16 11:07:58 +01:00
Andrea Boriero
f5877052ff
HHH-13621 Exception if spaces after value of javax.persistence.schema-generation.scripts.action in hibernate.properties
2019-09-16 10:12:13 +01:00
Andrea Boriero
26c2e0bf2b
HHH-13621 Add test for issue
2019-09-16 10:12:13 +01:00
Steve Ebersole
9cf6195110
All hail the mighty Checkstyle
2019-09-16 08:51:52 +01:00
Steve Ebersole
648dd3d2ed
More work on EntityResult handling;
...
Changes to how SqmParameters are handled to account for criteria parameters
2019-09-16 08:51:16 +01:00
Andrea Boriero
1db0927e8e
6 - Fix StandardBasicTypes not registering types into BasicTypeRegister when a SF is closed and recreated
2019-09-12 10:42:33 +01:00
Steve Ebersole
76b42a94c3
Initial working support for selecting a "query root" - i.e. `select e from TheEntity e`
2019-09-12 10:42:33 +01:00
Steve Ebersole
a4e4cb7260
Initial working support for building and executing JdbcSelect operation from simple HQL for a converted (enum) value - actually reading;
...
fixed (temporary) support for writing enumerated values
2019-09-12 10:42:33 +01:00
Andrea Boriero
340ba91e5c
Initial working support for building and executing JdbcSelect operation from simple HQL
2019-09-12 10:42:33 +01:00
Andrea Boriero
f85fe137b2
Initial working support for building and executing JdbcSelect operation from simple HQL
2019-09-12 10:42:33 +01:00
Steve Ebersole
5b1df3c6c9
Initial working support for building and executing JdbcSelect operation from simple HQL for a converted (enum) value
2019-09-12 10:42:33 +01:00
Steve Ebersole
dbd108e0b7
Initial working support for building and executing JdbcSelect operation from simple HQL
2019-09-12 10:42:33 +01:00
Steve Ebersole
70c051af6f
Proper creation of JdbcSelect for simple HQL query
2019-09-12 10:42:33 +01:00
Steve Ebersole
1ec133a989
Continued tests of Hibernate mapping model and SQL AST
2019-09-12 10:42:33 +01:00
Andrea Boriero
f4441e3664
Fix compilation errors
2019-09-12 10:42:33 +01:00
Steve Ebersole
0acd11fae3
6 - SQM based on JPA type system
...
Completed rebase on master (from the point just after HHH-11147 work) - fixed compilation failures
2019-09-12 10:42:33 +01:00
Sanne Grinovero
a4fa6430f3
Fixing the SessionImpl#buildLockOptions method
2019-09-12 10:42:33 +01:00
Sanne Grinovero
fffc9e7786
6 - SQM based on JPA type system
...
Fix compilation errors, imports, and amend deleted files after rebasing.
2019-09-12 10:42:33 +01:00
Steve Ebersole
5aea8bcf6a
6 - SQM based on JPA type system
...
Completed rebase on master (from the point just after HHH-11147 work) - fixed compilation failures
2019-09-12 10:42:33 +01:00
Andrea Boriero
58acd33b54
6 - SQM based on JPA type system
2019-09-12 10:42:33 +01:00
Andrea Boriero
00d3abba13
6 - SQM based on JPA type system
2019-09-12 10:42:33 +01:00
Steve Ebersole
7a82dcf22b
6 - SQM based on JPA type system
...
- Continued work on mapping model and conversion from SQM to SQL. Currently flushing out mapping model - how expressive do we want this to be? Do we really want to re-use the walking contracts? Or create a new SPI/impls based on MappingModelExpressable?
2019-09-12 10:42:32 +01:00
Steve Ebersole
0c66f23af2
6 - SQM based on JPA type system
...
- Initial work on SQL AST generation based on older persister model
2019-09-12 10:42:32 +01:00
Steve Ebersole
bb207c0926
6 - SQM based on JPA type system
...
- Initial work on SQL AST generation based on older persister model
2019-09-12 10:42:32 +01:00
Steve Ebersole
4dd7c280ca
6 - SQM based on JPA type system
...
- SQM tests
2019-09-12 10:42:32 +01:00
Steve Ebersole
5359a7b5fd
6 - SQM based on JPA type system
...
- SQM tests
2019-09-12 10:42:32 +01:00
Steve Ebersole
ac93c1d213
6 - SQM based on JPA type system
...
- SQM tests
2019-09-12 10:42:32 +01:00
Steve Ebersole
62b98712d4
6 - SQM based on JPA type system
...
- SQM tests
2019-09-12 10:42:32 +01:00
Steve Ebersole
1003ddf115
6 - SQM based on JPA type system
...
- SQM tests
2019-09-12 10:42:32 +01:00
Steve Ebersole
21f4cfb891
6 - SQM based on JPA type system
...
- DynamicInstantiationTests
2019-09-12 10:42:32 +01:00
Steve Ebersole
5e8be067ca
6 - SQM based on JPA type system
...
- moving SQM-specific tests from wip/6.0
2019-09-12 10:42:32 +01:00