Commit Graph

1548 Commits

Author SHA1 Message Date
Strong Liu d0e13b664a HHH-7108 HHH-6608 2012-08-07 15:08:23 +08:00
Steve Ebersole 45118e729d HHH-7502 - Problems with multi-tenancy and 2nd level cache 2012-08-06 18:26:22 -05:00
Steve Ebersole 481e427fbc HHH-7472 - Introduce a "schema management" service 2012-08-06 17:34:33 -05:00
Strong Liu 7f10972048 HHH-2808 CLONE -Impossible to define caching for a subclass's collection in hibernate.cgf.xml 2012-08-06 14:37:27 +08:00
Tair Sabirgaliev 1ec1254bab Test: order of <mapping .../> affects caching configuration 2012-08-06 13:22:30 +08:00
Strong Liu c9d6d61adf HHH-7446 bug-fix 2012-08-06 13:08:24 +08:00
Guenther Demetz 8b9f171a03 HHH-7446 bug-fix 2012-08-06 13:05:16 +08:00
Guenther Demetz 7673092426 HHH-5281 test-case 2012-08-06 13:05:16 +08:00
Strong Liu 420cec8c7a fix unique annotations parse issue, was a typo 2012-08-06 12:50:04 +08:00
Hardy Ferentschik 0f9a83611e HHH-7470 Applying constraints in new metamodel 2012-08-04 02:15:58 +02:00
Hardy Ferentschik 54b5ccf875 HHH-7470 Starting to apply constraints using the new metamodel.
Refactoring TypeSafeActivator#validateFactory
2012-08-04 02:15:57 +02:00
Hardy Ferentschik c9d42fa64e HHH-7470 Making the code more readable 2012-08-04 02:15:57 +02:00
Hardy Ferentschik 8ed8f34544 HHH-7470 Formatting 2012-08-04 02:15:57 +02:00
Hardy Ferentschik 389e8d01d6 HHH-7470 Introducing interface SchemaConstraint and add implementations for the constraints used in TypeSafeActivator 2012-08-04 02:15:57 +02:00
Gail Badner d631bf6342 HHH-7500 : Update to make VersionedLobTest assertions determinate 2012-08-03 13:55:01 -07:00
Hardy Ferentschik 90c0791e03 HHH-7500 Commenting out a @FailureExpected. It seems that w/ the new metamodel the failure does not occur 2012-08-03 13:25:33 +02:00
Hardy Ferentschik 66be75c631 HHH-7500 Adding @FailureExpectedWithNewMetamodel 2012-08-03 13:21:22 +02:00
Hardy Ferentschik bd64a464f8 HHH-7500 Using BaseAnnotationBindingTest as base for the test. This way @FailureExpectedWithNewMetamodel takes effect 2012-08-03 13:20:15 +02:00
Hardy Ferentschik bdd8d49b6a HHH-7500 Using BaseAnnotationBindingTest as base for the test. This way @FailureExpectedWithNewMetamodel takes effect 2012-08-03 13:19:57 +02:00
Hardy Ferentschik 39f509e886 HHH-7500 Moving BaseAnnotationBindingTest into the testing module. This way it can be reused by other annotation based tests 2012-08-03 13:18:37 +02:00
Gail Badner f79001e675 HHH-7500 HHH-7497 : Use new metamodel and validate expected failures by default; add/remove @FailureExpectedWithNewMetamodel as necessary 2012-08-03 00:28:11 -07:00
Hardy Ferentschik 18a255a0e0 HHH-6285 Adding test case 2012-08-02 16:46:43 +02:00
Hardy Ferentschik 28c52727b4 HHH-7484 Moving EntityHierarchyBuilder into the util subpackage 2012-08-02 16:11:46 +02:00
Hardy Ferentschik 4ddf38f751 HHH-7484 Make sure id attributes are overridable as well 2012-08-02 15:39:49 +02:00
Hardy Ferentschik 50d9189b9d HHH-7484 Transparently indexing all super types of configured classes to match behavior of old Configuration 2012-08-02 15:18:43 +02:00
Hardy Ferentschik 43c1e0465f HHH-7484 Taking care of attribute overrides and re-enabling MappedSuperclassTest 2012-08-02 13:35:51 +02:00
Hardy Ferentschik eb7608cd1b HHH-7484 Separating the org.hibernate.metamodel.spi.source implementations from the model build in org.hibernate.metamodel.internal.source.annotations.entity and org.hibernate.metamodel.internal.source.annotations.attribute 2012-08-02 13:35:50 +02:00
Hardy Ferentschik ddaf155423 HHH-7484 Making sure the mapped super class list is initalized 2012-08-02 13:35:50 +02:00
Hardy Ferentschik 449d020d04 HHH-7484 Creating a dedicated RootEntityClass 2012-08-02 13:35:50 +02:00
Eric Dalquist 8de0f9e875 HHH-7468 Recreate toString value holder after deserialization 2012-08-02 13:30:21 +08:00
Gail Badner 4ae8280e97 HHH-7497 : Remove @FailureExpectedWithNewMetamodel from tests that succeed without it 2012-08-01 16:11:36 -07:00
Gail Badner 8c623005fc HHH-7497 : Remove @FailureExpectedWithNewMetamodel from tests that succeed without it 2012-08-01 13:20:21 -07:00
Hardy Ferentschik c4b0a58f55 HHH-7484 Introducing a MappedSuperclass (just used as a marker atm) and added special constructor for root entity.
Fixed handling of discriminator column. If there are no subclasses and the discriminator column is not forced no column should be generated
2012-08-01 13:51:42 +02:00
Hardy Ferentschik d6bb126c04 HHH-7484 Formatting 2012-08-01 13:37:52 +02:00
Hardy Ferentschik 57be2cfff0 HHH-7484 Removing unnecessary ColumnSourceImpl#resolveColumnName 2012-08-01 13:37:52 +02:00
Hardy Ferentschik d8c4c266df HHH-7484 Setting the default value for column definition to null instead of empty string 2012-08-01 13:37:52 +02:00
Hardy Ferentschik 8dfa264df1 HHH-7484 Import cleanup 2012-08-01 13:37:52 +02:00
Hardy Ferentschik e2dfecc1b1 HHH-7484 Starting to add support for mapped superclasses 2012-08-01 13:37:52 +02:00
Hardy Ferentschik 672368931f HHH-7484 Removing obsolete //$Id$ and adding missing license headers (no functional changes) 2012-08-01 13:37:51 +02:00
Strong Liu 7f3ad01b50 HHH-7495 HHH-7492 Move RegionFactory to session factory scope service registry 2012-08-01 04:28:55 +08:00
Strong Liu 9632e010e8 HHH-7492 - fixing test failures caused by some configuration is not applied to metamodel 2012-07-31 15:08:19 +08:00
Strong Liu 60aad81c23 HHH-7491 fix test failures caused by natural id cache access strategy is not exposed to the persister 2012-07-31 04:03:14 +08:00
Strong Liu 887c6539d2 HHH-7452 fixing xsd issue 2012-07-30 21:25:13 +08:00
Strong Liu be2a4f44f6 HHH-7482 fix test failure 2012-07-30 20:20:43 +08:00
Strong Liu b6f068a1f0 HHH-7485 Collection Caching region is bindded with wrong default region in annotation side 2012-07-30 20:09:39 +08:00
Strong Liu 127283374d HHH-7483 fix test failures caused by quoting table name 2012-07-30 12:58:15 +08:00
Strong Liu e4bf3e4583 HHH-7482 auto import entities with annotation mapping 2012-07-30 11:50:58 +08:00
Steve Ebersole b2ef3b67b2 HHH-7472 - Introduce a "schema management" service 2012-07-29 17:05:41 -05:00
Strong Liu 517a94fc41 HHH-7480 fix test failures caused by column name is null 2012-07-30 00:10:49 +08:00
Steve Ebersole 2d82a57632 HHH-7472 - Introduce a "schema management" service 2012-07-28 17:47:04 -05:00
Steve Ebersole 47f6360225 HHH-7472 - Introduce a "schema management" service 2012-07-28 00:04:20 -05:00
Steve Ebersole f43c8bab1b HHH-7472 - Introduce a "schema management" service 2012-07-27 21:28:05 -05:00
Steve Ebersole ce9fa10902 HHH-7472 - Introduce a "schema management" service 2012-07-27 21:01:39 -05:00
Gail Badner d71a2bb6e2 HHH-7477 : Fix DiscriminatorTest.testDiscriminatorSubclass 2012-07-26 14:57:49 -07:00
John Verhaeg d7c4128826 HHH-7474: Added @FailureExpectedWithNewMetamodel annotation to all remaining tests that fail with the new metamodel, but still a couple of strange failures happening with some Envers tests. 2012-07-26 15:32:19 -05:00
Hardy Ferentschik 1d53de8262 HHH-7470 Re-enabling bean validation integration for new metamodel 2012-07-26 12:38:59 +02:00
Lukasz Antoniak 9c859d0432 HHH-6662 - More descriptive test names 2012-07-26 06:53:54 +02:00
John Verhaeg 0f77803b9c HHH-7474: Added @FailureExpectedWithNewMetamodel annotation to more tests that fail with the new metamodel. 2012-07-25 17:17:08 -05:00
Lukasz Antoniak 414e6111a8 HHH-6662, HHH-7445 - Fix and test 2012-07-25 23:23:17 +02:00
Steve Ebersole e3a606e3db HHH-6159 - Create EntityManagerFactoryBuilder : remove explicit 'use metamodel' flag + fixed query imports from hbm processing 2012-07-25 15:25:17 -05:00
John Verhaeg 61fe3b7457 HHH-7474: Added support for new @FailureExpectedWithNewMetamodel annotation to be used by tests that still fail with the new metamodel. Functions exactly like @FailureExpected, except requires no JIRA key and is only processed when testing against the new metamodel. Also added annotation to several tests that were failing against the new metamodel, to get started with the process of annotating them all. 2012-07-25 15:00:55 -05:00
Strong Liu 787ab27d45 HHH-7452 mixin interface to simplify orm xml binding 2012-07-25 13:41:50 +08:00
John Verhaeg 37d365cdf0 HHH-7471: Fixed back ref support. This is now done at the end of building metadata within the MetadataImpl, as opposed to within the Binder, since we need everything resolved on both sides of an association to know when a back ref is needed. Also corrected some issues with the hbm file. 2012-07-24 17:02:13 -05:00
Steve Ebersole df74a4d55f HHH-6159 - Create EntityManagerFactoryBuilder : fixed failures hidden behind 'use new metamodel flag' not being true 2012-07-24 16:22:10 -05:00
Steve Ebersole 183c914f57 HHH-6204 - JoinColumn on non key field fails to populate collection 2012-07-24 14:59:27 -05:00
John Verhaeg 5932915b68 HHH-7439: Added tests to support unidirectional one-to-many lists, but not for maps since current test infrastructure doesn't support anything but Java collections. Tests failed to illuminate any additional problems, contrary to what we were expecting, so skipping map support for now. 2012-07-24 10:51:46 -05:00
Steve Ebersole 288155bcb2 HHH-6159 - Create EntityManagerFactoryBuilder : integrate EntityManagerFactoryBuilder with metamodel codebase 2012-07-24 02:30:40 -05:00
Steve Ebersole 61c04a0b30 HHH-6159 - Create EntityManagerFactoryBuilder : integrate EntityManagerFactoryBuilder with metamodel codebase 2012-07-24 00:03:29 -05:00
Hardy Ferentschik 72af04524a Moving xml mapping files into resources folder. Creating subpackages for some tests 2012-07-23 17:02:43 +02:00
Strong Liu 49e156d309 HHH-7452 mixin interface to simplify orm xml binding 2012-07-22 02:00:02 +08:00
Strong Liu 55ce8d7406 HHH-6409 : correct test to make it determinate 2012-07-21 11:42:18 +08:00
Gail Badner 05cd530044 HHH-6409 : correct test to make it determinate 2012-07-20 19:00:17 -07:00
Gail Badner b8f8c90199 Bugfixes due to merge from master 2012-07-20 18:57:46 -07:00
Gail Badner ba459aa00c HHH-6569 : Update persisters and tuplizers to use components 2012-07-19 23:29:04 -07:00
Steve Ebersole 42a3061f3e Merge branch 'master' into metamodel
Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/spi/NamedQueryDefinition.java
	hibernate-core/src/main/java/org/hibernate/internal/SQLQueryImpl.java
	hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
	hibernate-core/src/main/java/org/hibernate/loader/custom/sql/SQLQueryReturnProcessor.java
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/AnnotationBindingContextImpl.java
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/global/QueryProcessor.java
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/hbm/CompositePluralAttributeElementSourceImpl.java
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/hbm/MappingDocument.java
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/hbm/TimestampAttributeSourceImpl.java
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/hbm/VersionAttributeSourceImpl.java
	hibernate-core/src/main/java/org/hibernate/metamodel/source/annotations/entity/EntityBindingContext.java
	hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/ComponentAttributeSourceImpl.java
	hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/HibernateMappingProcessor.java
	hibernate-core/src/main/java/org/hibernate/metamodel/spi/domain/Composite.java
	hibernate-core/src/main/java/org/hibernate/metamodel/spi/source/BindingContext.java
	hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java
	hibernate-core/src/main/resources/org/hibernate/hibernate-mapping-4.0.xsd
	hibernate-core/src/test/java/org/hibernate/metamodel/spi/binding/SimpleValueBindingTests.java
	hibernate-entitymanager/src/main/java/org/hibernate/ejb/AvailableSettings.java
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/internal/event/CallbackResolver.java
2012-07-19 15:50:50 -05:00
Steve Ebersole 6a65c3e7e6 HHH-7451 - Integrate Draft 7 of the JPA 2.1 spec : SynchronizationType 2012-07-18 17:48:59 -05:00
Steve Ebersole f8d06216e5 HHH-7451 - Integrate Draft 7 of the JPA 2.1 spec : criterias 2012-07-18 17:48:59 -05:00
Steve Ebersole 219707df1d HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : REF_CURSOR param handling 2012-07-18 17:48:59 -05:00
Steve Ebersole cb13cea1ac HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec + HEM boot cleanup (HHH-6159) 2012-07-18 17:48:59 -05:00
Steve Ebersole 9ce3afd8da HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : AttributeConverter + HEM boot cleanup (HHH-6159) 2012-07-18 17:03:09 -05:00
Steve Ebersole ad2a9ef651 HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : AttributeConverter 2012-07-18 17:00:20 -05:00
Steve Ebersole 153eb4a913 HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : stored procedure queries 2012-07-18 17:00:19 -05:00
Steve Ebersole 4174c14675 HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : UPDATE/DELETE criterias 2012-07-18 16:52:33 -05:00
Steve Ebersole 2adab60d15 HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : TREAT 2012-07-18 16:52:32 -05:00
Steve Ebersole 8b87ae8830 HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : FUNCTION keyword 2012-07-18 16:52:32 -05:00
Steve Ebersole 0a37440431 HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : ON keyword 2012-07-18 16:52:32 -05:00
Steve Ebersole 3edb72db48 HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : addNamedQuery support 2012-07-18 16:52:32 -05:00
Strong Liu f0a49ada75 HHH-7452 mixin interface to simplify orm xml binding 2012-07-17 15:26:45 +08:00
Strong Liu 6ed7e9ee7f HHH-7452 mix SchemaAware interface into orm.xml binding 2012-07-17 13:35:45 +08:00
Strong Liu 3806705b82 HHH-7450 reformat hibernate mapping xsd 2012-07-17 13:35:30 +08:00
Strong Liu 95a06fc49f HHH-7450 simplify xsd 2012-07-16 21:30:30 +08:00
Strong Liu d6ab4a203a HHH-7450 mapkey 2012-07-16 20:50:20 +08:00
Strong Liu f100b3de03 HHH-7450 component 2012-07-16 20:38:03 +08:00
Strong Liu 347398aad5 HHH-7450 fix test failure 2012-07-16 19:16:21 +08:00
Strong Liu f057bc8ac9 HHH-7450 meta-element 2012-07-16 18:55:46 +08:00
Strong Liu d57ffbdb32 HHH-7450 apply simplify plugin 2012-07-16 18:28:49 +08:00
Strong Liu 2eb320b9c6 HHH-7450 simplify composite-element-element 2012-07-16 17:25:29 +08:00
Strong Liu c1f7fd4d13 HHH-7450 simplify composite id's key-property and key-many-to-one property 2012-07-16 17:23:34 +08:00
Strong Liu 91a9e0f616 HHH-7450 add simplify plugin 2012-07-16 17:06:29 +08:00
Strong Liu 4e9bf24af1 HHH-7450 simplify hbm xsd 2012-07-16 17:01:44 +08:00