Commit Graph

2753 Commits

Author SHA1 Message Date
Steve Ebersole 03c4009391 HHH-6088 - Move to slf4j-log4j12 for test logging 2011-04-06 11:32:57 -05:00
Steve Ebersole 7c4a9dac81 HHH-6073 - Dialects cannot use the Thread Context ClassLoader with AS7, please change to use the 2011-04-06 11:31:14 -05:00
Steve Ebersole aad256c634 HHH-6081 - Finish up Integrator 2011-04-05 16:10:41 -05:00
Steve Ebersole bd5c483b67 HHH-6073 : test fix up 2011-04-05 16:08:59 -05:00
Alex Snaps 8bd56a097a Added tests for newly introduced RegionFactories and upgraded to 2.4.1 (2.3 is busted with Hibernate 4.0) 2011-04-05 17:46:57 +02:00
Steve Ebersole 5e8e49d3ae HHH-6073 2011-04-05 10:26:58 -05:00
Scott Marlow a67b6028c1 HHH-6073 Dialects shouldn't use TCCL (revised to leave DerbyDialect alone) 2011-04-04 21:40:25 -04:00
Steve Ebersole 1da2262a4a HHH-5966 - Finish up loose ends for overriding a SqlTypeDescriptor 2011-04-02 18:30:37 -05:00
adamw b95ebe7e5b HHH-6020: removing the testng tests file 2011-04-02 11:38:12 +02:00
adamw abf2d21279 HHH-6020: keeping the in-memory database open for the duration of the JVM lifetime - so that the JTA tests pass - otherwise after creating the tables, all connections are closed before executing tests, which causes the DB to be cleared. 2011-04-02 10:02:48 +02:00
adamw 8ac8b87d8c HHH-6020: fixing the jta exception listener test - different exception thrown 2011-04-02 10:01:59 +02:00
adamw 8c233312ce HHH-6020: some refactoring on how the JTA tests are done. All hibernate config is in the AbstractEntityTest now, instead of loading an xml file. 2011-04-02 09:03:46 +02:00
adamw e9f16e4a76 HHH-6014: ignoring the performance tests 2011-04-01 23:16:23 +02:00
adamw 3b83b6fd54 HHH-6014: The flush mode must be set before all test methods 2011-04-01 23:16:01 +02:00
adamw 0b844b609b HHH-6014: Adding @Priority(10) to all initData methods. 2011-04-01 23:12:53 +02:00
adamw 9165b0c235 HHH-6014: Adding a priority annotation. Higher test method priority means that the method will be executed first. 2011-04-01 23:12:52 +02:00
adamw 8e1110634f HHH-6014: Making the runnable work from command line 2011-04-01 23:12:51 +02:00
Steve Ebersole 38e0484b4e HHH-2763 - Allow collection initialization during flush 2011-04-01 14:57:06 -05:00
adamw c2167b85a7 HHH-6014: Removing the testng dependency from envers and from the available libraries as it isn't used anymore 2011-04-01 21:40:09 +02:00
adamw fb512cdc25 HHH-6014: Migrating the tests from testng to junit 2011-04-01 21:40:09 +02:00
adamw 26b5e1afa8 HHH-6014: A JUnit test runner for Envers, which uses the CustomTestRunner and wraps it with a Parametrized test runner, so that tests are run with two audit strategies 2011-04-01 21:40:08 +02:00
Steve Ebersole 285da70a25 HHH-2860 - Consolidate Session creation options/parameters 2011-04-01 12:13:25 -05:00
Steve Ebersole b9381f6717 HHH-4362 - @RowId 2011-04-01 08:34:15 -05:00
Steve Ebersole ada64c172a HHH-4362 - @RowId 2011-03-31 20:44:02 -05:00
Steve Ebersole df9d8939bb HHH-2860 - Consolidate Session creation options/parameters 2011-03-31 15:22:01 -05:00
adamw 8e2619c31e Updating the failing JtaTransaction test - for some reason, only with the JTA config, the test entity table isn't created, although the log contains the schema export messages, create table statements etc. 2011-03-31 18:31:41 +02:00
Steve Ebersole 7a5c85823b HHH-5989 - Add tests of JPA-style transaction joining 2011-03-31 10:35:23 -05:00
adamw 33cc3f3f62 HHH-6036: Removing old Envers docs 2011-03-31 15:59:36 +02:00
adamw e71762a313 HHH-6036: Adding a basics chapter to introduce Envers concepts 2011-03-31 15:50:28 +02:00
adamw e9c555b214 HHH-6036: As the Envers docs are merged into the dev guide adding me as one of the authors :) 2011-03-31 14:35:44 +02:00
adamw ce4faca528 HHH-6036: Moving the "links" chapter of Envers docs 2011-03-31 14:31:11 +02:00
adamw 02e06265e8 HHH-6036: Moving the "configuration" chapter of Envers docs - creating a new section on Envers mapping annotations 2011-03-31 14:27:41 +02:00
adamw e72fa13bd4 HHH-6036: Some corrections to the "revision log" chapter of Envers docs 2011-03-31 14:16:13 +02:00
adamw a16177035a HHH-6036: Moving the "query" chapter of Envers docs 2011-03-31 14:02:36 +02:00
adamw 9758c63354 HHH-6036: Moving the "schema" and "tables" chapters of Envers docs 2011-03-31 13:57:34 +02:00
adamw 6c7ec667a0 HHH-6036: Moving the "partitioning" chapter of Envers docs 2011-03-31 13:53:47 +02:00
adamw 61bd52fb34 HHH-6036: Moving the "mapping exceptions" chapter of Envers docs 2011-03-31 13:49:44 +02:00
Steve Ebersole f36ebfee26 Merge branch 'master' of github.com:hibernate/hibernate-core 2011-03-30 17:00:09 -05:00
Steve Ebersole ee2dd0ddf5 HHH-5996 - Wire in JdbcServices into SchemaUpdateTask, SchemaExportTask, SchemaValidatorTask, HibernateService.dropSchema(), HibernateService.createSchema() 2011-03-30 16:58:15 -05:00
adamw 1a1432179f HHH-6064: only registering the Envers listeners if there are any audited entities 2011-03-30 20:45:36 +02:00
Steve Ebersole 3e22ef111c HHH-6061 - ValidatoryFactory type checking 2011-03-30 13:28:01 -05:00
David Mansfield 5b5ec673b4 HHH-3646 - documentation for Criteria query of collection-of-component and collection-of-scalar functionality 2011-03-30 12:23:20 -05:00
David Mansfield 90fdca9053 HHH-3646 - throw a better exception when criteria is placed directly on component
In the CriteriaQueryTranslator, we process the path given by
a SubCriteria object looking for the entity name for the property. If
the SubCriteria was mistakenly created on a component type, we will exit
the loop using the owning entity, and will eventually end up failing
(throwing an exception) trying to lookup up the restricted property
against the entity, instead of against the component. Fix this by
throwing a more informative exception, and modify the documentation to
be explicit about how to do this properly.
2011-03-30 12:23:20 -05:00
David Mansfield 69b09dfcd2 HHH-3646 - don't append spurious comma in SQL select fragment
In the JoinWalker, we assemble an SQL select list fragment
from a list of Joinables. In the existing code, we see it's
possible for the selectFragment generated by a joinable to be empty.
However if the LAST joinable generates an empty fragment, we put
a spurious comma into the fragment. Fix this by only prepending a
comma when necessary.
2011-03-30 12:23:20 -05:00
David Mansfield 9f311a4698 HHH-3646 - implement Criteria API querying of collection-of-component and collection-of-scalar
The general approach is:

* create an interface called the CriteriaInfoProvider which abstracts
  the operations that are different for the different types of Criteria
  targets.
* change the getPathEntityName method to be a factory method for
  creating the proper implementation of the interface
* change the rest of CriteriaQueryTranslator to use the interface
  instead of using the previous entity-only implementation
* implementations of the interface exist for
  Entity: this implements the same code as currently exists
  ComponentCollection: for collection-of-component
  ScalarCollection: for collection-of-value
  Component: for components
* update the logic in CriteriaJoinWalker which has to be very careful
  about how it works since the walker walks certain property paths twice.
2011-03-30 12:23:20 -05:00
David Mansfield 4ddaaa1deb HHH-3646 - make SessionFactoryHelper::getCollectionPropertyMapping public - it will be used later 2011-03-30 12:23:20 -05:00
David Mansfield b8230bd07d HHH-3646 - implement a test case for query collection-of-component 2011-03-30 12:23:20 -05:00
David Mansfield 64b73d6301 HHH-3646 - implement a test case for query collection-of-value 2011-03-30 12:23:20 -05:00
adamw e0431adca9 HHH-6023: a citation pointing to the Envers User Guide in "take it further" 2011-03-30 19:01:19 +02:00
Steve Ebersole d104f28a59 HHH-5348 - support for TypedQuery jpaql/hql "scalar" queries 2011-03-30 11:37:12 -05:00