Commit Graph

2362 Commits

Author SHA1 Message Date
Steve Ebersole 21ade0c798 HHH-1168 - Problem combining locking and paging on Oracle 2012-11-30 12:09:15 -06:00
brmeyer a54f750152 HHH-7837 Support Hibernate's @Cascade annotation in metamodel 2012-11-29 16:28:20 -05:00
brmeyer 727e51c0e5 HHH-7436 Initial many-to-many annotation support 2012-11-29 16:28:19 -05:00
Steve Ebersole 6e71a0907e HHH-1168 - Problem combining locking and paging on Oracle 2012-11-29 12:33:54 -06:00
Brett Meyer a36af1471e HHH-6551 HBM XML does not process subclasses within <subclass> tags 2012-11-28 16:12:17 -05:00
Strong Liu 5707798b4b Revert "HHH-7612 - Fix and test"
This reverts commit 14d1c626a5.
2012-11-28 23:35:08 +08:00
Strong Liu c35fc39a71 HHH-7832 - map entity mode support, not finished yet 2012-11-28 20:59:06 +08:00
Strong Liu 01bab54f46 HHH-7832 - map entity mode support, not finished yet 2012-11-28 20:11:53 +08:00
Strong Liu 7c48f03874 HHH-7831 - no-proxy attribute should be lazy instead of throwing exception 2012-11-28 18:17:45 +08:00
Strong Liu 9b3e6a3714 HHH-7380 - union subclass support 2012-11-28 18:12:57 +08:00
Steve Ebersole caf2ee420c HHH-7825 - org.hibernate.type.descriptor.java.DataHelper is incompatible with FireBird JDBC 2012-11-26 17:49:55 -06:00
Steve Ebersole dd280b8c27 HHH-1168 - Problem combining locking and paging on Oracle 2012-11-26 13:19:08 -06:00
Strong Liu 73f9df1bb5 HHH-7736 - simple improvement and test fixing 2012-11-26 16:44:49 +08:00
Lukasz Antoniak 46a34a4cf4 HHH-7612 - Fix and test 2012-11-24 19:07:53 +01:00
Lukasz Antoniak 14d1c626a5 HHH-7612 - Fix and test 2012-11-24 18:08:15 +01:00
Brett Meyer 0118819133 HHH-7819 Correct test issues found in CI hibernate-core-master-matrix
job
2012-11-21 14:08:13 -05:00
Brett Meyer 8df655aa6b HHH-7819 Correct test issues found in CI hibernate-core-master-matrix
job
2012-11-21 12:53:13 -05:00
Brett Meyer b77d5aece2 HHH-6396 Remove org.hibernate.annotations.Entity 2012-11-20 23:01:24 -05:00
Steve Ebersole 5d2f21a01e HHH-7816 - DDL opertations will incorrectly commit current transaction on Oracle XA 2012-11-20 15:57:33 -06:00
Gail Badner d779125ea5 HHH-7803 Refactored the attribute type discovery and moved into ReflectHelper 2012-11-20 11:56:53 -08:00
Steve Ebersole 4b2871cfba HHH-1168 - Problem combining locking and paging on Oracle 2012-11-20 13:23:10 -06:00
Brett Meyer 037f081793 HHH-7702 Add support for collections of (aggregated) composite elements 2012-11-19 19:22:33 -05:00
Brett Meyer 1c992b1faf HHH-7803 Refactored the attribute type discovery and moved into
ReflectHelper
2012-11-19 18:00:47 -05:00
Brett Meyer 8acfa1c37f HHH-7702 Add support for collections of (aggregated) composite elements 2012-11-19 16:44:27 -05:00
Brett Meyer b0db6e345e HHH-7798 Corrected now-passing tests 2012-11-19 14:28:49 -05:00
Brett Meyer 84656aa572 HHH-7798 Implement sources for array attributes 2012-11-19 13:49:42 -05:00
Brett Meyer 95512c749b HHH-7798 Moved determineDeclaredType to AttributeBuilder 2012-11-19 12:34:54 -05:00
Gail Badner 58f67d59bd HHH-7808 : Some exceptions returned by LocalBindingContext.makeMappingException() are not thrown 2012-11-16 18:02:50 -08:00
Gail Badner f75c7eff59 HHH-7436 : Add support for many-to-many associations to new metamodel
HHH-7436 : Add support for many-to-many associations to new metamodel

HHH-7436 : Add support for many-to-many associations to new metamodel
2012-11-16 14:54:03 -08:00
Strong Liu 09e5bfe4d5 fix test failures after merge 2012-11-16 14:00:41 +08:00
Brett Meyer bc71c7a762 Post-merge: handled failing tests 2012-11-15 15:59:11 -05:00
Brett Meyer 18e44d1739 Merge branch master into metamodel 2012-11-15 15:01:13 -05:00
Strong Liu e998269402 HHH-7736 partial joined subclass support 2012-11-15 19:54:51 +08:00
brmeyer 4359b9971b HHH-7798 Implement sources for array attributes 2012-11-14 21:15:01 -05:00
brmeyer 140c41af96 HHH-7702 Add support for collections of (aggregated) composite elements 2012-11-14 21:07:28 -05:00
brmeyer 4c4f52489e HHH-7798 Implement sources for array attributes 2012-11-14 15:56:56 -05:00
brmeyer 233c602bd9 HHH-7702 Add support for collections of (aggregated) composite elements 2012-11-14 14:44:15 -05:00
brmeyer 36120a0a84 HHH-7702 Add support for collections of (aggregated) composite elements 2012-11-14 14:24:14 -05:00
brmeyer 32746ff07e HHH-7785 Reverting a few more Dialect supportsNotNullUnique changes 2012-11-14 11:01:51 -05:00
brmeyer e19513c4ea HHH-7798 Partially implemented array attribute binding. 2012-11-13 18:20:31 -05:00
brmeyer 59d8fdbd28 HHH-7798 Initial structure for array attributes 2012-11-13 18:20:29 -05:00
brmeyer a1ba4dbdb7 HHH-7702 Add support for collections of (aggregated) composite elements 2012-11-13 18:20:28 -05:00
brmeyer a4112b9206 HHH-7702 Add support for collections of (aggregated) composite elements 2012-11-13 18:20:27 -05:00
Steve Ebersole 8b53e4630a HHH-7776 - Consolidate to/from string handling for types in StringRepresentableType 2012-11-13 16:36:49 -06:00
Steve Ebersole 1b68eb1411 HHH-7791 - Define population precedence for BasicTypeRegsitry 2012-11-13 13:29:37 -06:00
Steve Ebersole 2daa74faa0 HHH-7787 - Expose BasicTypeRegistry as part of MetadataBuilder or MetadataSources 2012-11-13 12:30:22 -06:00
brmeyer 65093aabf0 HHH-7785 Reverting supportsNotNullUnique change in HSQL 2012-11-13 11:32:25 -05:00
Steve Ebersole 1f824b0496 HHH-7795 - Clean up JdbcTypeJavaClassMappings 2012-11-13 10:27:04 -06:00
Steve Ebersole 101b0fa212 HHH-7794 - Introduce JdbcTypeCodeNameMap 2012-11-13 10:27:04 -06:00
Strong Liu af5208c1cf HHH-7459 correct code format 2012-11-13 11:23:11 +08:00
Steve Ebersole 2158bec47c HHH-7643 - java.io.NotSerializableException org.hibernate.type.EnumType 2012-11-12 14:21:01 -06:00
Steve Ebersole 07fc1627cd HHH-7780 - many envers tests are failing 2012-11-12 13:51:12 -06:00
Steve Ebersole 3353926fa4 HHH-7776 - Consolidate to/from string handling for types in StringRepresentableType 2012-11-12 13:19:38 -06:00
Steve Ebersole 5ef8a667ff HHH-7777 - Deprecate XmlRepresentableType 2012-11-12 12:13:52 -06:00
Steve Ebersole cca8cb14dc HHH-7776 - Consolidate to/from string handling for types in StringRepresentableType 2012-11-12 11:53:46 -06:00
Steve Ebersole ec942edb48 HHH-7782 - Deprecate PersistentElementHolder, PersistentIndexedElementHolder, PersistentListElementHolder and PersistentMapElementHolder 2012-11-12 09:30:47 -06:00
Steve Ebersole bcd15dc0eb HHH-7777 - Deprecate XmlRepresentableType 2012-11-12 08:55:55 -06:00
Strong Liu 3489b71dca HHH-7773 - Backout HHH-7544 (Pull Request 379) 2012-11-11 23:26:35 +08:00
brmeyer 1a3f997276 HHH-7759 named queries not read by hbm source 2012-11-08 16:10:42 -05:00
Steve Ebersole 25036b088a HHH-7769 - Define short-names for built-in MultiTableBulkIdStrategy impls 2012-11-08 15:03:16 -06:00
brmeyer 8ef1721d7c HHH-7759 named queries not read by hbm source 2012-11-08 14:36:09 -05:00
Steve Ebersole dffb86c52d HHH-7768 - Names of invalid named queries incorrectly concatenated 2012-11-08 13:09:48 -06:00
Steve Ebersole 209763faa8 HHH-7767 - JoinWalker creates ".." substring in association path 2012-11-08 11:56:11 -06:00
Alex Kalashnikov 9f462834da HHH-7767 JoinWalker creates ".." substring in association path 2012-11-08 21:27:42 +04:00
Steve Ebersole 785e2d869e HHH-7377 - NullPointerException in conjunction with natural IDs after Session.clear() 2012-11-08 09:59:51 -06:00
Steve Ebersole 08e63ac4a8 HHH-7757 - NOT IN row-value syntax ignores NOT 2012-11-08 09:59:50 -06:00
Gail Badner fc66ca54c3 HHH-7702 : Add support for collections of (aggregated) composite elements 2012-11-08 00:03:00 -08:00
Gail Badner 84f65d4b41 HHH-7702 : Add support for collections of (aggregated) composite elements 2012-11-07 21:40:49 -08:00
brmeyer f1f4414266 HHH-7015 Remove PostgreSQLDialect 2012-11-07 20:42:04 -05:00
brmeyer 210fbd3fc8 HHH-3280 Remove OracleDialect and Oracle9Dialect 2012-11-07 20:13:33 -05:00
brmeyer f0514cbcd8 HHH-7666 Replace unit tests' use of configuration() 2012-11-07 19:33:00 -05:00
brmeyer 30ac6cf21a HHH-7678 Allow @Embeddable classes to be left out of mapping. 2012-11-07 19:20:50 -05:00
brmeyer 4a92016f0c HHH-6356 Add PluralAttributeBinding.isInsertable() and isUpdatable() 2012-11-06 16:38:00 -05:00
brmeyer af66aec4a1 HHH-7761 @IdClass not working on mapped superclasses 2012-11-06 14:26:46 -05:00
Steve Ebersole 4294e0faee HHH-7645 - Enum property defined within orm.xml using enum-type string does not work 2012-11-06 11:21:38 -06:00
brmeyer 49468d964d HHH-7760 Support multiple @Column annotations on an @Id 2012-11-06 11:30:33 -05:00
Steve Ebersole 432dab3465 HHH-7748 - EnumType crashes because of unsupported JDBC API in Oracle 2012-11-06 08:26:11 -06:00
brmeyer 8f93b41da7 HHH-7756 Disconnect between annotation and hbm entity names 2012-11-05 17:31:11 -05:00
brmeyer 3db62f5e76 HHH-7755 Support Map/Set/List/Bag in component attribute source 2012-11-05 15:31:28 -05:00
Steve Ebersole 06b0faaf57 HHH-7746 - Investigate alternative batch loading algorithms 2012-11-02 13:32:15 -05:00
brmeyer 174e9b8ab2 HHH-7725 unclosed Statement 2012-10-31 17:15:58 -04:00
brmeyer 3847ebb478 HHH-5267 NPE when updating a detached entity with a one-to-one
association changed to null that is mapped with delete-orphan
2012-10-31 13:54:10 -04:00
Steve Ebersole 1b5088a911 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable 2012-10-31 12:41:48 -05:00
Steve Ebersole 0ab36bed8c HHH-7725 - Make handling multi-table bulk HQL operations more pluggable 2012-10-31 11:22:33 -05:00
John Verhaeg 4c22d9347f HHH-7742: Modified o.h.metamodel.internal.source.hbm.Helper.interpretCascadeStyles() to split the string on both commas and spaces. Might be more to the original intention to split on a pattern of a comma followed by any amount of spaces. 2012-10-30 17:30:43 -05:00
brmeyer 4dfbe673c1 HHH-7744 Corrected previous fix and updated numerous, affected tests 2012-10-30 17:33:25 -04:00
brmeyer d271ad7e6a HHH-7744 @DiscriminatorColumn's default discriminatorType ignored 2012-10-30 16:51:49 -04:00
brmeyer 367d331fd7 HHH-7743 @TableGenerator attributes handled using incorrect types 2012-10-30 16:50:10 -04:00
Steve Ebersole 9f0bbe10a6 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable 2012-10-30 15:39:47 -05:00
brmeyer 805ff1c2b5 HHH-7741 MetadataSources failing if package-info.java doesn't exist 2012-10-30 16:32:36 -04:00
brmeyer b6e7d2fc41 HHH-7740 Support CompositeCustomType in metamodel 2012-10-30 15:46:12 -04:00
brmeyer 0a639fd712 HHH-7738 Allow @Inheritance on subclasses 2012-10-30 15:28:42 -04:00
brmeyer 70221d8ac2 HHH-7739 Correct "appliesTo" value handeling on @Table/@Index processing 2012-10-30 15:24:31 -04:00
Steve Ebersole c94752d243 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable 2012-10-30 14:02:53 -05:00
Steve Ebersole 3e3b439e02 HHH-1570 - criteria-api: filtering by key-many-to-one causes invalid sql 2012-10-30 12:26:32 -05:00
brmeyer 4516dd45d6 HHH-7728 added null checks 2012-10-30 12:22:04 -04:00
Thorsten Schäfer c297d93261 HHH-7728 Adapt hashcode to equals method 2012-10-30 12:22:03 -04:00
Thorsten Schäfer 776470b85a HHH-7728 Include schema and catalog in equals 2012-10-30 12:22:02 -04:00
Thorsten Schäfer e1ad7c51df HHH-7728 Add equals method in the table class 2012-10-30 12:22:01 -04:00
Strong Liu 1a5bdd9adb HHH-7736 - join subclass support 2012-10-30 18:22:54 +08:00
Steve Ebersole df809231c5 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable 2012-10-29 17:48:25 -05:00
Erik-Berndt Scheper c22e7fd214 HHH-6361 - Fixed ManyToManyAssociationClassCompositeIdTest broken by
CollectionType changes
2012-10-29 18:11:23 -04:00
brmeyer f9049a1fd2 HHH-6361 formatting 2012-10-29 18:11:21 -04:00
Erik-Berndt Scheper 7bb43baf0b HHH-6361: Patch ensuring that collection events have the correct stored
snapshot after merging a detached entity into the persistencecontext
2012-10-29 18:11:20 -04:00
brmeyer 5c562411e6 HHH-6361 Cleaned up test case 2012-10-29 18:11:19 -04:00
Erik-Berndt Scheper d0aa9f5d9d HHH-6361: Testcase demonstrating that collection events may contain wrong stored snapshot after merging a detached entity into the persistencecontext 2012-10-29 18:11:18 -04:00
Steve Ebersole 3e69b7bd53 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable 2012-10-29 16:34:03 -05:00
Steve Ebersole 3305af5fe8 HHH-1775 - collection batch fetching 2012-10-29 16:34:03 -05:00
brmeyer 0c5ad566b6 HHH-7733 NativeSQLQueriesTest failing on Postgres 2012-10-29 14:24:43 -04:00
brmeyer 718dd237f5 HHH-7734: SerializableTypeTest#testNewSerializableType failing for
Oracle 11G R1
2012-10-29 14:15:02 -04:00
brmeyer cdc8d4331c HHH-7732 QueryTest#testMemberOfSyntax failing on Oracle 2012-10-29 13:46:47 -04:00
brmeyer 5293c78d52 HHH-7730 SchemaExportManagedConnectionTest#testGenerateDdlToFile
failing on Oracle & Sybase
2012-10-29 12:38:36 -04:00
brmeyer eae079d283 HHH-5836 Mapping collection of entities with same name and notnull
constraints from two different entities results in duplicate property
mapping of Backref
2012-10-29 11:37:33 -04:00
brmeyer 4e434f6197 HHH-7721 SQLFunctionRegistry findSQLFunction does not honor case
sensitivity
2012-10-26 14:47:19 -04:00
Steve Ebersole c46c04631d Merge branch 'master' of github.com:hibernate/hibernate-orm 2012-10-26 12:58:18 -05:00
Steve Ebersole fb253b0297 HHH-1775 - collection batch fetching 2012-10-26 12:56:08 -05:00
Guenther Demetz 7cecc68fb1 HHH-1775 2012-10-26 10:40:26 -05:00
brmeyer 226d2459ec HHH-7724 JpaLargeBlobTest failing on multiple DBs 2012-10-26 11:26:44 -04:00
Esen Sagynov 3d82bb1d64 HHH-7717 Quoted "value" column name as "`value`" since it's a reserved
word in
CUBRID.
2012-10-26 11:17:17 -04:00
Esen Sagynov d611f59832 HHH-7717 Added a quoted "`data`" column name as this is a reserved word
in
CUBRID.
2012-10-26 11:17:04 -04:00
Esen Sagynov 339b4363b1 HHH-7717 Quoted table names in tests otherwise fail in CUBRID dialect as
these
names are reserved.
2012-10-26 11:16:46 -04:00
Esen Sagynov f63352b0f7 HHH-7717 Wrapped "SYS_USER" column names into "`SYS_USER`" as they can
be
reserved in some dialects which would cause a test failure.
2012-10-26 11:16:15 -04:00
Esen Sagynov eb4b4ba0d2 HHH-7717 Wrapped "date" column names into "`date`" as they can be
reserved in
some dialects which would cause a test failure.
2012-10-26 11:15:57 -04:00
Esen Sagynov d41b800bb0 HHH-7717 Wrapped additional "type" column names into "`type`" as they
can
be
reserved in some dialects which would cause a test failure.
2012-10-26 11:15:44 -04:00
Esen Sagynov 76bb63c74c HHH-7717 Wrapped "time" column names into "`time`" as they can be
reserved in
some dialects which would cause a test failure.
2012-10-26 11:15:28 -04:00
Esen Sagynov 36f519d02e HHH-7717 Wrapped "value" column names into "`value`" as they can be
reserved in
some dialects which would cause a test failure.
2012-10-26 11:15:13 -04:00
Esen Sagynov 61cb6f59f6 HHH-7717 Added import to Tooth test for previously committed @Column. 2012-10-26 11:09:36 -04:00
Esen Sagynov 014bc42a86 HHH-7717 Wrapped column names which may be reserved in some dialects.
Also added
column declarations for properties which lacked column attribute.
2012-10-26 11:08:41 -04:00
brmeyer 89fdf465aa HHH-7666 Replace unit tests' use of configuration() 2012-10-25 15:21:20 -04:00
brmeyer 38b5367f54 HHH-7718 Support "import" in HBM mappings 2012-10-25 15:11:47 -04:00
Esen Sagynov e4fbe2fc99 HHH-7716 Added a fallback data type for cases when VARCHAR length is
over
4000
chars.

In such cases the column type will be STRING which is equivalent to
VARCHAR(1,073,741,823).
2012-10-25 11:18:11 -04:00
Esen Sagynov a0d02a0660 HHH-7716 FIxed a bug which didn't allow BOOLEAN type to be saved to
CUBRID DB.
BIT(8) data type solves this issue.
2012-10-25 11:17:44 -04:00
Esen Sagynov 220365600c HHH-7716 Fixed a bug in CUBRIDLimitHandler. Now correctly processes
LIMIT
clause
in SQL.
2012-10-25 11:17:30 -04:00
Esen Sagynov e7af2f4b76 HHH-7716 Skip these tests for CUBRID dialect as temp tables aren't
supported yet.

Raises: "HibernateException: cannot doAfterTransactionCompletion
multi-table deletes using dialect not supporting temp tables"
2012-10-25 11:17:13 -04:00
Esen Sagynov 9be3666141 HHH-7716 Skip this JoinedSubClassTest for CUBRID dialect as temp tables
are not
supported yet.

Raises "HibernateException: cannot doAfterTransactionCompletion
multi-table deletes using dialect not supporting temp tables".
2012-10-25 11:16:54 -04:00
Esen Sagynov b9145ab132 HHH-7716 Skip testParameterMixing test for CUBRID dialect. 2012-10-25 11:16:37 -04:00
Esen Sagynov d4ab63ccc0 HHH-7716 Renamed smallint data type to short. Sinonyms in CUBRID but
internally
saved as short.
2012-10-25 11:16:20 -04:00
Esen Sagynov 9534ffc94c HHH-7716 Registered reserved words for CUBRID dialect. 2012-10-25 11:16:01 -04:00
Esen Sagynov f647ecf7ae HHH-7716 Added import for RowSelection used in buildLimitHandler. 2012-10-25 11:15:47 -04:00
Esen Sagynov f52d0a9d63 HHH-7716 Added imports for CUBRID limit handler. 2012-10-25 11:15:31 -04:00
Esen Sagynov f0ebd2f378 HHH-7716 Updated CUBRIDDialect.
Added supported SQL functions and data types. Removed limit related
methods in favor of CUBRIDLimitHandler. Improved the dialect by
correctly setting values (true/false) for certain dialect features.
2012-10-25 11:15:10 -04:00
brmeyer 61eaf4ce4e HHH-7359 accidentally committed TRACE log levels 2012-10-24 23:10:38 -04:00
brmeyer 30ea167c41 HHH-7359 Added a new method to MessageHelper to intelligently handle
property-ref issues in logging.  Rolled it out to as many MessageHelper
users as possible.
2012-10-24 22:51:05 -04:00
brmeyer 9968ce3adb HHH-7359 Corrected trace logging of HibernateProxy objects 2012-10-24 16:05:33 -04:00
brmeyer deaff9705e HHH-7513 Corrected trace logging for one-to-one cascading 2012-10-24 13:39:36 -04:00
brmeyer d627089242 HHH-7513 Corrected trace logging for collections using property-refs 2012-10-24 13:39:04 -04:00
Strong Liu 9fbfcdcabf HHH-7712 remove deprecated code 2012-10-24 15:22:56 +08:00
brmeyer b115f56f57 HHH-7479 formatting 2012-10-24 00:27:37 -04:00
mutazkabashi 1172fd94dc HHH-7479 getForUpdateString() of HSQLDialect returns empty string. 2012-10-24 00:26:52 -04:00
Dmitry Geraskov 6d718a24b0 HHH-7711 Added test for SchemaExport 2012-10-23 18:38:21 -04:00
Dmitry Geraskov e7e28dd978 HHH-7711 Generate ddl to file even if scriptToConsole and
exportToDatabase are
set to false
2012-10-23 18:37:33 -04:00
brmeyer 5501336c28 HHH-7695: @NotNull ignored on @Embeddable static classes
https://hibernate.onjira.com/browse/HHH-7695
2012-10-23 11:25:22 -04:00
Strong Liu cc1ce680a4 HHH-7709 - change org.hibernate.type.ForeignKeyDirection to enum 2012-10-23 16:45:30 +08:00
brmeyer 5e158e8861 HHH-7693 Formatting and duplicate code 2012-10-22 13:20:46 -04:00
Bryan Turner 1333725bcf HHH-7692 Use Postgres82Dialect for 9 and 9.1. 2012-10-22 13:14:21 -04:00
Bryan Turner 189a8d3386 HHH-7693 Use SQLServer2008Dialect for 2012.
- Previously, SQL Server version 11 (SQL Server 2012) was an unknown
  version, resulting in the SQLServerDialect
- Added version 11 to the switch statement so that SQLServer2008Dialect
  is now returned by default, as SQL Server 2012 is much more similar
  to SQL Server 2008 than SQL Server 2000
- Added test cases to verify dialects for several SQL Server versions
2012-10-22 13:07:19 -04:00
Strong Liu 46a0cbe7fa HHH-6109 format code 2012-10-22 17:53:00 +08:00
Strong Liu 1b62f92c07 HHH-6109 bind sql result mapping and named query 2012-10-22 17:52:19 +08:00
Strong Liu 58e68ee58e HHH-7706 reorg the imports to see how many @FailureExpectedWithMetamodel left 2012-10-22 17:11:11 +08:00
Strong Liu 064c355cd0 HHH-7706 some minor issues in the metamodel branch 2012-10-22 17:06:14 +08:00
Strong Liu d2a76dbe1a HHH-7459 test fixed 2012-10-21 01:19:53 +08:00
Strong Liu 210a7f2707 HHH-7459 inverse attribute resolution w/ mappedBy enabled ( the Annotation case ), since from Annotation perspective, we don't have the inversed key, so, have to do the mappedBy attribute look up 2012-10-21 01:07:16 +08:00
Strong Liu 98603cce86 HHH-7459 inverse attribute resolution w/ mappedBy enabled ( the Annotation case ), since from Annotation perspective, we don't have the inversed key, so, have to do the mappedBy attribute look up 2012-10-21 01:04:37 +08:00
Strong Liu 845c757e07 HHH-7459 lazyness is not processed correctly 2012-10-21 01:01:10 +08:00
Strong Liu 5cd3f85ac5 HHH-7459 remove unused class 2012-10-21 00:56:18 +08:00
Strong Liu 2fdf563999 HHH-7459 remove FailureExpectedWithNewMetamodel from fixed tests 2012-10-21 00:55:27 +08:00
brmeyer ec3f649ad5 HHH-7698: In efficient LOB creations backed by streams
https://hibernate.onjira.com/browse/HHH-7698
2012-10-19 17:10:16 -04:00
brmeyer 22b0203ea7 HHH-7703: @TypeDefs processed, but not used
https://hibernate.onjira.com/browse/HHH-7703
2012-10-19 13:40:37 -04:00
brmeyer 567df233cc HHH-7703: @TypeDefs processed, but not used
https://hibernate.onjira.com/browse/HHH-7703
2012-10-19 12:17:35 -04:00
brmeyer eaa3f7ef6d HHH-7703 @TypeDefs processed, but not used 2012-10-18 19:17:22 -04:00
Sanne Grinovero 4fe494d13d HHH-7699 DriverManagerConnectionProviderImpl is not exact in counting checked-out connections 2012-10-18 19:42:57 +01:00
Sanne Grinovero e4300d279c HHH-7699 More aggressive in checking log levels before creating log messages 2012-10-18 19:42:57 +01:00
Sanne Grinovero e27afb8ded HHH-7699 Proper code formatting of log statements 2012-10-18 19:42:57 +01:00
Galder Zamarreño a074d3244d HHH-7640 Improve single node Infinispan 2LC performance
* Use an Infinispan cache to maintain pending puts, which avoids
the need to control it's memory consumption in the critical path
of putFromLoad.
* This cache is shared by all regions, and it's configured with
aggressive expiration settings to avoid piling up pending put
operations.
* Added a 2LC stress test that tests behaivour and performance
of 2LC under multiple situations, such as entity inserts, updates,
find via PK, find via query and deletes.
* Some other minor performance enhancements, such as avoiding
classloader aware cache wrapper if using 2LC locally.
* Remove cache adapter to reduce construction of useless objects.
* Cache flagged caches in order to avoid recomputing decorated
caches all the time, which reduces memory consumption.
* Skip locking for timestamp updates and separate timestamp region
implementations for local vs clustered scenarios.
2012-10-18 15:57:15 +02:00
brmeyer d17f5d1662 HHH-7664 5.0.0 unit test clean-up 2012-10-18 09:57:13 -04:00
brmeyer b55e173ec4 HHH-7702 PluralAttributeElementBinding.Nature.AGGREGATION -> COMPONENT 2012-10-17 22:08:39 -04:00
Steve Ebersole 2b4097aa49 HHH-7698 - In efficient LOB creations backed by streams 2012-10-17 12:26:35 -05:00
brmeyer 9ed8ac16aa HHH-7696 Support multiple @AttributeOverride annotations 2012-10-17 13:10:37 -04:00
brmeyer 7f1dbc2ef0 HHH-7678 Attribute's type is an @Embeddable static class -- incorrectly
bound to Basic
2012-10-16 13:49:11 -04:00
brmeyer 08a756a23f HHH-7664 5.0.0 unit test clean-up 2012-10-15 17:28:31 -04:00
Strong Liu f6787672ec HHH-7619 formula attribute is not working on annotation side yet 2012-10-15 11:42:45 +08:00
Strong Liu 4446594568 HHH-7459 simple improvement 2012-10-14 00:16:42 +08:00
brmeyer 5fb7f4b343 HHH-7679 Source implementations should not determine default
discriminator match value
2012-10-12 16:22:51 -04:00
brmeyer 0b4dfcb435 HHH-7666 Replace unit tests' use of configuration() 2012-10-12 14:51:49 -04:00
brmeyer 9462c522cc HHH-7666 Replace unit tests' use of configuration() 2012-10-12 14:51:48 -04:00
brmeyer 8ecb9fdfdb HHH-7666 Replace unit tests' use of configuration() 2012-10-12 14:51:47 -04:00
Gail Badner b7cc064058 HHH-7523 : Misc changes for composite IDs; mostly class/enum name changes 2012-10-11 19:58:49 -07:00
Gail Badner ceec7423dc HHH-7523 : Support for composite IDs 2012-10-11 19:58:49 -07:00
brmeyer 25a98fada3 HHH-7674 DB locks not cleared on
LazyLoadingTest#testLazyCollectionLoadingWithClearedSession
2012-10-10 22:01:32 -04:00
Strong Liu e543f060aa HHH-7459 continue on the @ManyToOne support, now the fk column name is working 2012-10-11 03:52:00 +08:00
Steve Ebersole c9fd71fe57 HHH-7683 - Optimize performance of AbstractLazyInitializer.prepareForPossibleSpecialSpecjInitialization() 2012-10-10 13:21:53 -05:00
Gail Badner 2877cfdc68 HHH-7680 : Annotated tests with @FailureExpectedWithNewMetamodel that fail because AbstractTableSpecification does column name lookups that are case-sensitive 2012-10-09 19:37:34 -07:00
Gail Badner bbde363d89 HHH-7679 : Source implementations should not determine default discriminator match value 2012-10-09 19:34:40 -07:00
Gail Badner d54fecefee HHH-7663 - Annotated failing tests with @FailureExpectedWithNewMetamodel 2012-10-09 18:04:19 -07:00
brmeyer 1350cba2b7 HHH-7655 @Temporal should not be required on Date/Calendar fields 2012-10-09 14:50:39 -04:00
Strong Liu 1017d94196 HHH-7459 rollback a change that causes lots of tests fail 2012-10-10 00:51:09 +08:00
brmeyer 11dcd9ab46 HHH-6655 trim function on DB2 is broken 2012-10-09 11:29:05 -04:00
brmeyer 58fa4c2eac HHH-4459 Query with Composite Primary Key parameter crashes when query
cache is on
2012-10-08 21:51:56 -04:00
brmeyer f3a8760d22 HHH-7666 Replace unit tests' use of configuration() 2012-10-03 17:07:44 -04:00
Steve Ebersole 199ee7860e HHH-5209 - org.hibernate.hql.ast.QuerySyntaxException when running a JPQL query with a MEMBER OF on an @ElementCollection 2012-10-03 08:19:41 -05:00
brmeyer b88b32382f HHH-7664 5.0.0 unit test clean-up 2012-10-02 11:04:21 -04:00
brmeyer c73162270a HHH-7664 5.0.0 unit test clean-up 2012-10-02 10:44:20 -04:00
brmeyer 8e4f487003 HHH-7661 Support natural sorting 2012-10-02 09:31:09 -04:00
Steve Ebersole c3f8acf6e7 HHH-7616 - Integrate hibernate-tools JDBCBinder into hibernate-orm 2012-10-01 09:56:39 -05:00
brmeyer 691463578b HHH-7651 Default discriminator not created on insert 2012-09-28 14:54:36 -04:00
brmeyer e12ce42b2c HHH-7656 Binder causing unmodifiable collection exception 2012-09-28 12:58:29 -04:00
brmeyer 9a4055b0cd HHH-7655 @Temporal should not be required on Date/Calendar fields 2012-09-28 12:17:44 -04:00
brmeyer 2a3526af24 HHH-7655 @Temporal should not be required on Date/Calendar fields 2012-09-28 12:04:37 -04:00
brmeyer e1a669add0 HHH-7655 @Temporal should not be required on Date/Calendar fields 2012-09-28 12:04:36 -04:00
Steve Ebersole 5dd5e251ba HHH-7616 - Integrate hibernate-tools JDBCBinder into hibernate-orm 2012-09-28 10:54:55 -05:00
brmeyer 9914b17010 HHH-7650 JandexHelper cannot handle Class default values 2012-09-28 00:25:27 -04:00
brmeyer 1e8e1718cb HHH-7652 @Columns not supported correctly in MappedAttribute 2012-09-28 00:24:08 -04:00
brmeyer 04b4383e39 HHH-7650 JandexHelper cannot handle Class default values 2012-09-27 17:43:08 -04:00
Brett Meyer 4152ff660a Revert "HHH-4098 VARBINARY should be BLOB in DB2400Dialect"
This reverts commit 590020535c.
2012-09-27 11:32:00 -04:00
brmeyer 590020535c HHH-4098 VARBINARY should be BLOB in DB2400Dialect 2012-09-26 21:33:52 -04:00
brmeyer 8dbaefced4 HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-26 17:33:54 -04:00
Oleh Faizulin 068c973cde HHH-7644 Correct memory leak 2012-09-26 15:48:52 -04:00
brmeyer 3e5184e6d7 HHH-6043 PostLoad method invoked before collection initialised 2012-09-26 00:19:05 -04:00
brmeyer 121f495ff8 HHH-4635 Oracle ORA-24816 inserting and updating data for entities
containg LOB attributes
2012-09-24 12:19:22 -04:00
Sanne Grinovero 29ad8e9cb9 HHH-7633 Cache System#identity for IdentityMap reuse 2012-09-21 14:46:25 +02:00
Steve Ebersole f85e9247e9 HHH-7631 - Improve performance of UpdateTimestampsCache 2012-09-21 07:02:16 -05:00
Steve Ebersole a8a3f9b112 HHH-7626 - Add javadoc to annotations 2012-09-20 10:04:27 -05:00
John Verhaeg 78060d8eac HHH-7628: Modified ConfiguredClass to also process @AccessType annotations 2012-09-20 08:21:56 -05:00
John Verhaeg 07405e0f00 Merge branch 'metamodel' of github.com:hibernate/hibernate-orm into metamodel 2012-09-20 08:21:15 -05:00
Strong Liu 221649d732 HHH-7627 mirror bugs in annotation binding side 2012-09-20 13:48:42 +02:00
Steve Ebersole d0f88347af HHH-7620 - allow ValidatorFactory to be passed into EntityManagerFactoryBuilder : reordered EMF builder processing to better allow late ValidatorFactory and DataSource (HHH-7621) passing 2012-09-20 05:40:15 -05:00
Strong Liu 415e68647f HHH-7549 ManyToOne fk naming 2012-09-20 11:28:46 +02:00
Strong Liu e2f68ef4a1 HHH-7624 only root level fetch-profile element get processed 2012-09-20 10:55:42 +02:00
Shawn Clowater 35b9a9d785 HHH-7603 Changed AbstractPersistentCollection so that it would behave in a similar manner as 4.1.6 when using the default lazy load behavior for collections. With the changes for HHH-7603 the AbstractPersistentCollection was throwing a NPE instead of a LIE in a very particular case.
Added test that simulates a use case from Hibernate Search 4.1.1 as far as I can tell.
2012-09-20 01:51:58 -04:00
Ivan Sopov 8462677f53 fix for HHH-7487 org.hibernate.type.EnumType incorrectly logs binded values, trace logging was done as it is done in BasicBinder with the String.format 2012-09-20 01:40:22 -04:00
brmeyer 500e0222b5 HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-20 01:24:02 -04:00
Sergiu Dumitriu 54fdb87d30 HHH-7541: When using HSQLDB, inserting any CLOB value larger than 16Mb always fails with an exception
Fixed.
2012-09-19 10:04:23 -04:00
John Verhaeg 386a7c2f0d HHH-7622: Added check for invalid extensions of an entity class when building the entity hierarchies 2012-09-19 08:13:18 -05:00
John Verhaeg 4d0f01614a HHH-7542: Modified previous fix to look only for type-level @Immutable annotation 2012-09-19 08:05:05 -05:00
John Verhaeg c9b1418988 HHH-7619: Modified ConfiguredClass to only look for type-level annotation for access type 2012-09-19 07:52:36 -05:00
brmeyer 7d5ece822c HHH-7309 Natural-id not cached in shared cache after insert 2012-09-19 08:34:55 -04:00
Guenther Demetz a176931349 HHH-7309 bug-fix 2012-09-19 08:25:38 -04:00
Guenther Demetz 7c218bbe11 HHH-7309 testcase 2012-09-19 08:25:37 -04:00
brmeyer 6660d2412a HHH-7569 Correct test-only failures in hibernate-core-master-matrix CI
job
2012-09-19 05:24:51 -04:00
brmeyer 8c58af3b19 HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-19 04:19:09 -04:00
John Verhaeg f48503891b HHH-7615: Changed ToOneAttributeSourceImpl.getJoinColumns to call JoinColumnResolutionContext.resolveRelationalValuesForAttribute when attributeName is null (indicating to use the primary key of the referenced table), and likewise modified resolveRelationalValuesForAttribute methods in each JoineColumnResolutionContext impl within Binder extract the PK columns when the attribute name is null 2012-09-18 04:38:30 -05:00
brmeyer cb60b0259c HHH-6682 add support for oracle "bitand" function to Oracle Dialect 2012-09-18 01:33:41 -04:00
brmeyer 9f720b2d73 HHH-4635 Oracle ORA-24816 inserting and updating data for entities
containg LOB attributes
2012-09-18 01:20:42 -04:00
Strong Liu dcc4ab49e7 HHH-7607 simplify Binder code 2012-09-17 12:43:42 +02:00
brmeyer 6a5bd555de HHH-6682 add support for oracle "bitand" function to Oracle Dialect 2012-09-17 06:00:19 -04:00
brmeyer 9f7f572490 HHH-6452 PostgreSQL Dialect does not fully implement NOWAIT locking 2012-09-17 03:54:36 -04:00
John Verhaeg 57e4f3a9ea HHH-7602: Modified CustomRunner, BeforeClassCallbackHandler, and FailureExpectedHandler to handle exceptions in class methods. Marked tests appropriately with @FailureExpectedInNewMetamodel where necessary. 2012-09-14 17:58:26 -05:00
John Verhaeg 3ae06719fd HHH-7601: Added minOccurs/maxOccurs to column elements that were missing them, as defined by the DTD. 2012-09-14 17:46:34 -05:00
John Verhaeg 58a238e5b7 HHH-7542: Modified EntityClass to allow for multiple class-level @Immutable annotations in the same hierarchy 2012-09-14 15:50:39 -05:00
John Verhaeg 4882bebdba HHH-7600: Modified FilterDefinition constructor to allow for numm parameter types 2012-09-14 13:20:34 -05:00
Emmanuel Bernard b040866c2c HHH-7597 Small error in AvailableSettings JavaDoc 2012-09-14 11:05:22 +02:00
Gail Badner 3a72b45325 HHH-1283 : Join fetched collections using Query.scroll() is correct only for first entity 2012-09-13 12:30:15 -07:00
Gail Badner 8eb7d8cf64 HHH-1283 : Join fetched collections using Query.scroll() is correct only for first entity 2012-09-12 23:46:50 -07:00
Strong Liu 279326fe6d HHH-7549 @OneToMany 2012-09-13 14:24:16 +08:00
Strong Liu 11270a0f12 HHH-7549 fixing failing test 2012-09-13 14:24:16 +08:00
Steve Ebersole 7042790a53 HHH-7580 - Complete 2-phase SessionFactory building design 2012-09-12 15:48:20 -05:00
Strong Liu ea2b9a899f HHH-7549 binding Indexed collection 2012-09-12 17:49:01 +08:00
brmeyer 04ed36bf0a HHH-7586 Re-architect Type or TypeFactory dynamic descriptors 2012-09-11 18:30:13 -04:00
brmeyer 7ce07642cb HHH-7586 Re-architect SimpleValue's reflection for dynamic descriptors 2012-09-11 18:30:12 -04:00
brmeyer 69bcccaa1a HHH-7584 Sybase dialects attempting to use BLOB types 2012-09-11 18:30:11 -04:00
brmeyer 5306dda1c9 HHH-7569 Correct multiple failures/issues in
hibernate-core-master-matrix CI job
2012-09-11 18:30:10 -04:00
brmeyer ae59da9322 HHH-7569 Turned down AST logging due to stackoverflow 2012-09-11 18:30:09 -04:00
brmeyer f63b0c5f69 HHH-7569 Correct multiple failures/issues in
hibernate-core-master-matrix CI job
2012-09-11 18:30:07 -04:00
brmeyer 86deac49f7 HHH-7579 Oracle does not support "unique not null" 2012-09-11 18:30:06 -04:00
brmeyer 1a3199bfa8 HHH-5376 Tests contain invalid SQL 2012-09-11 18:30:05 -04:00
brmeyer c3861c6b33 HHH-7578 Sybase does not support "unique not null" 2012-09-11 18:30:04 -04:00
brmeyer 588d4be45b HHH-7577 Dialect's supportsNotNullUnique not working when false 2012-09-11 18:30:03 -04:00
Gail Badner cb1069a3d3 HHH-1283 : Added tests that reproduce the issue 2012-09-11 14:35:07 -07:00
Strong Liu b939be3157 HHH-7549 HHH-7318 support on new metamodel 2012-09-11 19:50:22 +08:00
Steve Ebersole ec16599411 HHH-7556 - Clean up packages 2012-09-10 15:46:11 -05:00
Steve Ebersole 563a0e4b7a missed files on last merge 2012-09-10 14:23:01 -05:00
Steve Ebersole af115fe5a8 Merge branch 'master' into metamodel
Conflicts:
	hibernate-core/src/main/java/org/hibernate/boot/registry/classloading/internal/ClassLoaderServiceImpl.java
	hibernate-core/src/main/java/org/hibernate/cache/internal/NoCachingRegionFactory.java
	hibernate-core/src/main/java/org/hibernate/cache/internal/RegionFactoryInitiator.java
	hibernate-core/src/main/java/org/hibernate/cfg/SettingsFactory.java
	hibernate-core/src/main/java/org/hibernate/cfg/beanvalidation/BeanValidationIntegrator.java
	hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/UserSuppliedConnectionProviderImpl.java
	hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcServicesImpl.java
	hibernate-core/src/main/java/org/hibernate/engine/jdbc/spi/JdbcServices.java
	hibernate-core/src/main/java/org/hibernate/internal/AbstractSessionImpl.java
	hibernate-core/src/main/java/org/hibernate/internal/CoreMessageLogger.java
	hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
	hibernate-core/src/main/java/org/hibernate/internal/StoredProcedureCallImpl.java
	hibernate-core/src/main/java/org/hibernate/jaxb/internal/JaxbConfigurationProcessor.java
	hibernate-core/src/main/java/org/hibernate/jaxb/internal/JaxbMappingProcessor.java
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataBuilderImpl.java
	hibernate-core/src/main/java/org/hibernate/metamodel/source/annotations/AnnotationMetadataSourceProcessorImpl.java
	hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/Helper.java
	hibernate-core/src/main/java/org/hibernate/metamodel/source/hbm/HibernateMappingProcessor.java
	hibernate-core/src/main/java/org/hibernate/metamodel/source/internal/IdentifierGeneratorResolver.java
	hibernate-core/src/main/java/org/hibernate/service/ConfigLoader.java
	hibernate-core/src/main/java/org/hibernate/service/ServiceRegistryBuilder.java
	hibernate-core/src/main/java/org/hibernate/service/StandardServiceInitiators.java
	hibernate-core/src/main/java/org/hibernate/stat/internal/StatisticsInitiator.java
	hibernate-core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaExport.java
	hibernate-core/src/main/java/org/hibernate/type/EnumType.java
	hibernate-core/src/test/java/org/hibernate/metamodel/binding/AbstractBasicBindingTests.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/MetadataImplTest.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/entity/IdentifierGeneratorTest.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/entity/MapsIdTest.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/global/FetchProfileBinderTest.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/global/QueryBinderTest.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/util/BaseAnnotationIndexTestCase.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/util/JandexHelperTest.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/xml/OrmXmlParserTests.java
	hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/xml/mocker/XmlHelper.java
	hibernate-core/src/test/java/org/hibernate/metamodel/spi/binding/SimpleValueBindingTests.java
	hibernate-core/src/test/java/org/hibernate/metamodel/spi/binding/UnidirectionalManyToManyBindingTests.java
	hibernate-core/src/test/java/org/hibernate/test/annotations/id/sequences/HibernateSequenceTest.java
	hibernate-core/src/test/java/org/hibernate/test/annotations/manytomany/ManyToManyTest.java
	hibernate-core/src/test/java/org/hibernate/test/common/BasicTestingJdbcServiceImpl.java
	hibernate-core/src/test/java/org/hibernate/test/common/JdbcConnectionAccessImpl.java
	hibernate-core/src/test/java/org/hibernate/test/connections/AggressiveReleaseTest.java
	hibernate-core/src/test/java/org/hibernate/test/connections/ConnectionManagementTestCase.java
	hibernate-core/src/test/java/org/hibernate/test/connections/ThreadLocalCurrentSessionTest.java
	hibernate-core/src/test/java/org/hibernate/test/events/CallbackTest.java
	hibernate-core/src/test/java/org/hibernate/test/flush/TestAutoFlushBeforeQueryExecution.java
	hibernate-core/src/test/java/org/hibernate/test/flush/TestCollectionInitializingDuringFlush.java
	hibernate-core/src/test/java/org/hibernate/test/interceptor/InterceptorTest.java
	hibernate-core/src/test/java/org/hibernate/test/keymanytoone/bidir/component/EagerKeyManyToOneTest.java
	hibernate-core/src/test/java/org/hibernate/test/propertyref/DoesNotWorkTest.java
	hibernate-core/src/test/java/org/hibernate/test/propertyref/DoesNotWorkWithHbmTest.java
	hibernate-core/src/test/java/org/hibernate/test/service/ClassLoaderServiceImplTest.java
	hibernate-core/src/test/resources/org/hibernate/jmx/Entity.hbm.xml
	hibernate-ehcache/src/main/java/org/hibernate/cache/ehcache/AbstractEhcacheRegionFactory.java
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/internal/EntityManagerFactoryBuilderImpl.java
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/boot/internal/PersistenceXmlParser.java
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/event/internal/jpa/CallbackProcessorImpl.java
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/event/spi/JpaIntegrator.java
	hibernate-envers/src/main/java/org/hibernate/envers/event/EnversIntegrator.java
	hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/tm/HibernateTransactionManagerLookup.java
	hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/InfinispanRegionFactoryTestCase.java
	hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/NodeEnvironment.java
	hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/tm/JBossStandaloneJtaExampleTest.java
	hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseAnnotationBindingTestCase.java
	hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
2012-09-10 14:20:38 -05:00
Hardy Ferentschik a4b57ca7fa HHH-7571 Formatting test classes and marking OptionalOneToOnePKJCTest/OptionalOneToOneMappedByTest with FailureExpectedForNewMetamodel, because Binder#bindSingularAttribute does throw a NotYeyImplemented exception for ONE_TO_ONE nature. 2012-09-10 12:57:43 +02:00
Hardy Ferentschik e5b57d42e5 HHH-7571 Processing @JoinColumn(s) as part of @ElementCollection and @JoinTable 2012-09-10 12:55:01 +02:00
Steve Ebersole 7b486fc4a4 HHH-1658 - unexpected AST node on HQL UPDATE 2012-09-07 12:03:48 -05:00
Steve Ebersole e9bd0afe81 HHH-1658 - unexpected AST node on HQL UPDATE 2012-09-07 12:01:41 -05:00
Hardy Ferentschik 9e8dc3017b HHH-7571 Adding test for @CollectionTable 2012-09-07 11:55:33 +02:00
Hardy Ferentschik ebcc59f0a1 HHH-7571 Starting to process @JoinTable and @CollectionTable
Moving JoinColumn processing into association attribute
Making anonymous ExplicitHibernateTypeSource implementation its own class
2012-09-06 18:01:14 +02:00
John Hardin 7e0559ecdb HHH-7398 -- Added testTimeout() and modified AbstractBatchImpl.buildBatchStatement() accordingly. 2012-09-05 14:04:52 -05:00
brmeyer 8b632c214d HHH-4394 Added test case 2012-09-05 13:43:05 -05:00
brmeyer 42de7604f8 Fix for HHH-7545 was missing a session close -- caused exception in 3.3
backport.
2012-09-05 13:43:04 -05:00
brmeyer 7b04acd4f4 HHH-7569 Merging test changes to master that were made only in 4.1
branch
2012-09-05 12:53:56 -05:00
Steve Ebersole 6a48cccd5d HHH-7568 - Add JPA1.0 compound key compatability when orm descriptor file used to override annotations. 2012-09-05 12:34:03 -05:00
Jeremy Whiting 961caf770a HHH-7568 Added test case to check removal of compound key association items. Changed the detection of JoinColumns to work when orm/hbm xml is used. Added change to configure a property when JoinColumns annotation is used on entity definition. 2012-09-05 12:06:31 -05:00
Steve Ebersole 40574b9d8a HHH-1123 - Cannot put more than 1000 elements in a InExpression 2012-09-05 11:29:13 -05:00
brmeyer 970bd8679e HHH-1123 Cannot put more than 1000 elements in a InExpression 2012-09-05 11:29:13 -05:00
Hardy Ferentschik d661c3823d HHH-7571 Adding failure expected annotations where needed 2012-09-05 16:29:53 +02:00
Shawn Clowater 6ac746fffc HHH-7308
Change the beforeCompletion() method of the TransactionObserver() to call the beforeTransactionCompletion() method regardless of whether or not the session is open like the afterCompletion() method does when calling the afterTransactionCompletion() and also cleaned up the log message around session having after transaction events as this sort of logging had been previously moved to the close() method of SessionImpl.
2012-09-05 09:23:24 -05:00
Hardy Ferentschik d14d18e40b HHH-7571 Minimal implementation of @ElementCollection details to pass AnnotationBasicCollectionBindingTests 2012-09-05 14:59:35 +02:00
Strong Liu 4fe75d5a09 HHH-7371 Natural-id: ObjectNotFoundException when found entity is marked as deleted 2012-09-05 17:22:19 +08:00
Strong Liu 8fa530a247 HHH-7300 - TypeDefs won't be found depending of files read-order 2012-09-05 17:06:40 +08:00
Guenther Demetz a043701de7 HHH-7059 The DerbyDialect deprecation warning should appear no more,
when using one of the version-specific dialects
2012-09-05 14:45:41 +08:00
nrodrigues 072e64d26a HHH-7532 - Override getForUpdateString with correct syntax 2012-09-05 14:29:25 +08:00
Dustin Schultz e8b2695289 HHH-7544
Fixes java.lang.VerifyError by building StackMapTables at appropriate
places.
2012-09-05 11:40:13 +08:00
Steve Ebersole 4e22fb9044 HHH-7566 - Activating JOIN fetch profile involving self-referential associations causes StackOverflowError 2012-09-04 16:08:28 -05:00
Steve Ebersole 54f4335416 HHH-7203 - IdentityGenerator fails with JOINED Inheritance when inserting entity to PosgtreSQL 2012-09-04 15:00:48 -05:00
Steve Ebersole 4450b127b2 HHH-7567 - Better checking when @Enumerated involved 2012-09-04 12:17:34 -05:00
Steve Ebersole 076eccb7a2 HHH-5188 - Use provided enum type ordinal/string when reading 2012-09-03 22:06:23 -05:00
Strong Liu fd6cacd6f4 HHH-7459 fixing org.hibernate.test.annotations.manytoone.referencedcolumnname.ManyToOneReferencedColumnNameTest, for now add a Failure expected annotation on it 2012-09-04 02:10:47 +08:00
Strong Liu 67e05c4467 HHH-7459 fixing org.hibernate.test.annotations.manytoone.referencedcolumnname.ManyToOneReferencedColumnNameTest, for now add a Failure expected annotation on it 2012-09-04 02:10:47 +08:00
Strong Liu 2a80caed2a HHH-7459 clean tests' import 2012-09-04 02:10:46 +08:00
Strong Liu 2a3e50b400 HHH-7459 fixing fail tests 2012-09-04 02:10:46 +08:00
Strong Liu 68491e57a9 HHH-7459 AnnotationUnidirectionalOneToManyBindingTests now pass 2012-09-04 02:10:46 +08:00
Strong Liu 94abb7ca0f HHH-7459 empty JoinColumnResolutionContext to make compiler happy 2012-09-04 02:10:46 +08:00
Strong Liu 1b69d460b3 HHH-7549 @OneToMany support 2012-09-04 02:10:46 +08:00
Strong Liu 550f19f3da HHH-7549 Simple refactor 2012-09-04 02:10:45 +08:00
Strong Liu 1f80861b16 HHH-7549 change AbstractUnidirectionalOneToManyBindingTests test to have same mapping on hbm and ann 2012-09-04 02:10:45 +08:00
Hardy Ferentschik 7ce0203155 Refactoring basic colletion binding test to run against hbm and annotations 2012-09-03 17:06:19 +02:00
Gail Badner eab658429f HHH-7549 @OneToMany support 2012-08-31 18:53:22 -07:00
Steve Ebersole ab64f5c3be HHH-7552 - New StrategySelectorService : initial auto-detection 2012-08-31 16:20:05 -05:00
Hardy Ferentschik d7fdf278df HHH-7322 Refactoring of unidirectional one to many test to cater for hbm and annotations
Adding some error handling in Binder for the case that not all configuration sources are added
Upgrading JBoss logging
2012-08-31 20:36:48 +02:00
Steve Ebersole 98ad44e75d HHH-7563 - Fallback for JBossAppServerJtaPlatform.locateUserTransaction() to look at "java:jboss" if "java:comp" not available 2012-08-31 11:22:07 -05:00
Didier Villevalois 8e30a2b86d HHH-7134 - Detection of wrong circularity when two tables with same name in different schemas
Fixes FKSecondPass processing to take catalog and schema in accounts. Corresponding test class is
org.hibernate.test.cfg.WrongCircularityDetectionTest.
2012-08-31 00:40:30 +08:00
Steve Ebersole 3e2be6a009 HHH-7557 - Map entries get deleted 2012-08-30 10:46:49 -05:00
Hardy Ferentschik 22d6c78a0d Rremoving a @FailureExpected by syncing the setup between hbm and annotation based configuration for AbstractBasicBindingTests 2012-08-30 17:44:40 +02:00
Steve Ebersole 759620cecb HHH-6823 - Short-name config values 2012-08-29 11:16:17 -05:00
Steve Ebersole 37542fe1f1 HHH-6823 - Short-name config values 2012-08-29 10:49:06 -05:00
Steve Ebersole 4ad49a02c9 HHH-7556 - Clean up packages 2012-08-28 14:12:15 -05:00
Steve Ebersole d52a20a693 HHH-7552 - New StrategySelectorService : initial work 2012-08-27 15:18:21 -05:00
Strong Liu 289866968b HHH-7549 @OneToMany support 2012-08-28 01:37:52 +08:00
Hardy Ferentschik 5cdce758a8 HHH-7549 Moving test resources into src/test/resources 2012-08-27 14:38:47 +02:00
Hardy Ferentschik 5dcf91b082 HHH-7549 Removing some unnecessary System.out.println calls 2012-08-27 13:30:21 +02:00
Hardy Ferentschik 35279ceed6 HHH-7549 Adding FailureExpectedWithNewMetamodel were needed 2012-08-27 13:29:30 +02:00
Strong Liu 8ba7c31a86 HHH-7549 rollback changes to the xml namespace 2012-08-27 16:34:52 +08:00
Strong Liu 9bce5e0643 HHH-7549 @OneToMany support 2012-08-24 22:56:57 +08:00
Gail Badner 5327ac5396 HHH-7545 : Aliases for a collection key and element column can collide causing one to be excluded 2012-08-23 11:23:49 -07:00
Hardy Ferentschik 449389760f HHH-7503 Removing @FailureExpectedWithNewMetamodel since test is not passing. However, it does not really assert anything. 2012-08-23 18:51:31 +02:00
Hardy Ferentschik 10768032d6 HHH-7503 Determining the referenced type of a toMany association, ignoring static field attributes, implementing OneToManyPluralAttributeElementSource#PluralAttributeElementNature, updating tests 2012-08-23 18:51:31 +02:00
Hardy Ferentschik d541b9abff HHH-7503 Adding check for single table inheritance in which case the @NotNull constraint is not applied 2012-08-23 18:51:31 +02:00
Hardy Ferentschik 88d75b541d HHH-7503 removing applyDDL(EntityBinding entityBinding, Class<?> clazz, ValidatorFactory factory, Set<Class<?>> groups, Dialect dialect) and inlining the code 2012-08-23 18:51:31 +02:00
Hardy Ferentschik 914eaeb742 HHH-7503 formatting 2012-08-23 18:51:30 +02:00
Hardy Ferentschik 3ad46e5062 HHH-7503 Fixing wrong comparison - string w/ enum, instead of string w/ string 2012-08-23 18:51:30 +02:00
Hardy Ferentschik ba4eb0601c HHH-7503 Fixing typo 2012-08-23 18:51:30 +02:00
Hardy Ferentschik 088990cc78 HHH-7503 Formatting, no functional changes. Adding missing license header and removing '//$Id$' 2012-08-23 18:51:29 +02:00
Strong Liu 8e8d681c7e Merge branch 'master' into metamodel 2012-08-23 22:54:33 +08:00
Steve Ebersole 581f037dee HHH-7514 - Upgrade to Jandex 1.1 2012-08-22 17:35:35 -05:00
Steve Ebersole fd8a45b2b2 HHH-7514 - Upgrade to Jandex 1.1 2012-08-22 13:41:16 -05:00
Steve Ebersole 8c1923ee05 HHH-7540 - Allow integration hooks into all steps of building a SessionFactory 2012-08-22 12:46:15 -05:00
Hardy Ferentschik 54e7832a35 Removing @FailureExpectedWithNewMetamodel from class level of NativeSqlAndQuotedIdentifiersTest and placing them on #testBasicEntityMapping and #testExpandedEntityMapping directly 2012-08-21 18:29:02 +02:00
Steve Ebersole 4282e23caa HHH-7387 - Integrate Draft 6 of the JPA 2.1 spec : CDI (small test change) 2012-08-18 12:30:21 -05:00
Strong Liu a4d7df1e97 HHH-7530 Bind @Loader on collection 2012-08-17 19:35:59 +08:00
Strong Liu cee1fc8b20 HHH-7529 Bind @LazyCollection 2012-08-17 19:23:41 +08:00
Strong Liu 1c26ef34cc HHH-6109 bind sql result mapping and named query 2012-08-17 17:49:20 +08:00
Thomas Einwaller d252a141d0 https://hibernate.onjira.com/browse/HHH-3452
Statistics for Criteria Queries
2012-08-17 17:46:59 +08:00
Strong Liu cb394756c8 HHH-6109 bind sql result mapping and named query 2012-08-17 17:45:26 +08:00
Steve Ebersole 6b5a428b3f HHH-7527 - OSGI manifests for hibernate-orm : clean up org.hibernate.engine.spi package duplication between hem and core 2012-08-16 14:21:21 -05:00
Steve Ebersole 52336f4150 HHH-7524 - Enabling AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS results in leaking DB-connections 2012-08-16 11:28:41 -05:00
Steve Ebersole 5739392572 HHH-6823 - Short-name config values : transactions 2012-08-16 11:28:41 -05:00
Steve Ebersole d8651c3ba7 HHH-7524 - Enabling AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS results in leaking DB-connections 2012-08-15 10:51:47 -05:00
Steve Ebersole 9c148815d8 HHH-7472 - Introduce a "schema management" service : externalized exporters 2012-08-14 17:24:20 -05:00
Steve Ebersole d24f3e76f1 HHH-7472 - Introduce a "schema management" service : ordering of statements including ordering of auxiliary objects 2012-08-14 13:48:20 -05:00
Steve Ebersole cd480fbd2b HHH-7472 - Introduce a "schema management" service 2012-08-14 09:55:17 -05:00
Steve Ebersole 07973f29a2 HHH-7472 - Introduce a "schema management" service 2012-08-14 09:53:00 -05:00
Steve Ebersole 392f08fbd6 HHH-7472 - Introduce a "schema management" service 2012-08-13 17:49:10 -05:00
Steve Ebersole b38e160cba HHH-7521 - JBoss 7 / JPA 2.1 integration work 2012-08-13 11:47:21 -05:00
Steve Ebersole c782548172 HHH-7517 - Make sure new metamodel bindings create FK for joined inheritance 2012-08-09 13:34:58 -05:00
Strong Liu fae0d3f498 HHH-7509 NPE regression in second level cache 2012-08-09 14:55:02 +08:00
Scott Marlow 8e73bb056e HHH-7509 fix NPE in second level cache 2012-08-08 22:24:32 -04:00
Strong Liu 0068625ee7 HHH-7508 Debug logging throws MissingFormatArgumentException when using non standard Optimizer 2012-08-08 21:12:59 +08:00
Strong Liu 7a82349f75 HHH-7385 change to use gradle 1.1 2012-08-08 17:09:11 +08:00
Steve Ebersole 467258cffa HHH-7457 - Enable loading of collections thats been detached from session 2012-08-07 14:52:00 -05:00
Ståle W. Pedersen a1c9ed7756 HHH-7457
enabled hibernate to reattach a collection that hasnt been loaded to the session.
note: this can cause data to be loaded outside a transaction. use with caution.
2012-08-07 14:52:00 -05:00
Steve Ebersole a385792178 HHH-7305 - NPE in LogicalConnectionImpl when multi tenancy is used without providing a release mode manually 2012-08-07 14:03:56 -05:00
Steve Ebersole 5c986ab59f HHH-7472 - Introduce a "schema management" service 2012-08-07 10:40:20 -05:00
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
Strong Liu ef168c1f5d HHH-7448 hbm mapping xsd improve 2012-07-13 17:01:47 +08:00
Strong Liu ab708a7ed9 HHH-2394 remove last comma in the array, seems some jdks do not support it 2012-07-12 23:55:17 +08:00
Strong Liu cef5f9a7cd HHH-2394 Add support for SqlFragmentAlias.entity element 2012-07-12 23:30:01 +08:00
Rob Worsnop 5cb8d3a8b3 HHH-2394 Add support for SqlFragmentAlias.entity element 2012-07-12 22:59:22 +08:00
Rob Worsnop 82c99ccf6f HHH-2394 Removed unused imports 2012-07-12 22:59:22 +08:00
Rob Worsnop 542bc5c83c HHH-2394 Allowed usage of {alias} marker. 2012-07-12 22:59:22 +08:00
Rob Worsnop 1cd8db2ac3 HHH-2394 Got filters working with secondary tables 2012-07-12 22:59:21 +08:00
Rob Worsnop 05dcc209ae HHH-2394 Implemented @SqlFragmentAlias 2012-07-12 22:58:11 +08:00
Rob Worsnop cfe7db063a consolidate src/test and src/matrix 2012-07-12 22:58:11 +08:00
Rob Worsnop dc4e87340d HHH-2394 refactored unit tests 2012-07-12 22:58:11 +08:00
Rob Worsnop 2aa89290f7 HHH-2394 Added test cases 2012-07-12 22:58:11 +08:00
Rob Worsnop 09547a9051 HHH-2394 Remove conditions that blocked filters on sub-classes (for annotations) 2012-07-12 22:58:10 +08:00
Rob Worsnop 63f2639101 HHH-2394 Derive table name from correct filter (fixed typo) 2012-07-12 22:58:10 +08:00
Rob Worsnop ee01d80677 HHH-2394 Prefixes won't work; need table set explicitly 2012-07-12 22:58:10 +08:00
Rob Worsnop dbff4c1839 HHH-2394 Got filters working on sub-classes. 2012-07-12 22:58:09 +08:00
Strong Liu 1d2877838b HHH-7447 ValueHolder used in NaturalIdCacheKey is not Serializable 2012-07-12 22:53:07 +08:00
Strong Liu 9324c7ab1e HHH-7447 ValueHolder used in NaturalIdCacheKey is not Serializable 2012-07-12 22:38:39 +08:00
Strong Liu 97ac8311d4 HHH-7426 Setting cacheable='true' in orm.xml does not enable caching of entity in 2lc 2012-07-12 15:00:44 +08:00
Lukasz Antoniak c46daa4cf0 HHH-7440, HHH-7368, HHH-7369, HHH-7370 - Redesign dialect-specific LIMIT clause appliance 2012-07-10 21:19:32 +02:00
Strong Liu 65d1724433 HHH-7310 Resolution of types registered in type registry does not work properly for Properties of @Embeddable types 2012-07-11 01:21:46 +08:00
Philippe Marschall 3e4786220c HHH-5929 PooledLoOptimizer is not thread-safe
All Optimizers in OptimizerFactory are thread safe by having the
 #generate(AccessCallback) method synchronized. The only exception is
PooledLoOptimizer who's #generate(AccessCallback) method is not
synchronized.

 - make PooledLoOptimizer#generate(AccessCallback) synchronized

 https://hibernate.onjira.com/browse/HHH-5929
 https://hibernate.onjira.com/browse/HHH-6829
2012-07-11 00:29:32 +08:00
Strong Liu a86997c7ba HHH-7442 rename org.hibernate.internal.util.Value 2012-07-10 23:28:20 +08:00
Strong Liu 507e609176 HHH-7431 Reduce NaturalIdCacheKey Memory Footprint 2012-07-10 23:10:34 +08:00
John Verhaeg 6b4b91ccc7 HHH-7439: Added list and map to unidirectional one-to-many test 2012-07-09 11:56:26 -05:00
Gail Badner cc7cfb5c40 HHH-7436 : Add FailureExpected test for unidirectional many-to-many 2012-07-06 13:13:11 -07:00
Eric Dalquist a92d402cc5 HHH-7431 Don't pre-calc toString
Remove toString pre-calculation to avoid excess memory usage.
2012-07-06 11:15:17 -05:00
Strong Liu 4a6ea053cc HHH-6491 Binding @SqlResultSetMapping 2012-07-05 01:59:18 +08:00
Gail Badner bc3964ba98 HHH-7427 : Ensure version column is non-nullable 2012-07-03 16:19:03 -07:00
Gail Badner 6f23941c29 HHH-7322 : Support for bidirectional one-to-many/many-to-one 2012-07-03 12:38:35 -07:00
Strong Liu 1a3c584991 HHH-6491 Binding @SqlResultSetMapping 2012-07-03 14:03:14 +08:00
Strong Liu 10a6425770 HHH-6491 Binding @SqlResultSetMapping 2012-06-29 00:21:26 +08:00
Strong Liu c1e40df164 HHH-6491 Binding @SqlResultSetMapping 2012-06-28 23:45:27 +08:00
Strong Liu 1679b1d3fc HHH-6354 ManyToOne natural id binding 2012-06-27 22:46:02 +08:00
Strong Liu 1ab72cfdb6 HHH-6354 component attribute natural id binding 2012-06-27 22:46:01 +08:00
Strong Liu 473790c1e4 HHH-6354 binding natural id on basic attribute 2012-06-27 22:46:01 +08:00
Strong Liu 1b1af382de HHH-7384 binding natural id cache
HHH-6354 Implement natural ID mapping
2012-06-27 22:46:01 +08:00
Strong Liu b2e0b5032d HHH-7384 add natural id to the hbm mapping xsd 2012-06-27 22:46:01 +08:00
Strong Liu 080446c89c HHH-7384 add natural id to the hbm mapping xsd 2012-06-27 22:46:01 +08:00
Gail Badner 7e6ea21908 HHH-7092 : Create default name for foreign and unique key constraints 2012-06-26 14:32:59 -07:00
Gail Badner c01104fbae HHH-6436 : Add org.hibernate.metamodel.relational.Column.isIdentity() 2012-06-19 14:41:00 -07:00
Steve Ebersole d51a0d0c78 HHH-4394 - @OrderBy usage on a joined classes (when using join table) produces incorred SQL syntax. 2012-06-15 17:13:42 -05:00
Gail Badner f26e13173d HHH-7392 : Provide support for nullable many-to-one attributes 2012-06-14 14:27:31 -07:00
Gail Badner 22365060d5 HHH-7383 : Change Constraint interface and implementations to return unmodifiable collections instead of Iterable 2012-06-12 16:44:17 -07:00
Lukasz Antoniak 41bac11115 HHH-7311 - Fix and test 2012-06-12 07:22:49 +02:00
Strong Liu 1f78c9685e HHH-7382 refact: unify the configuration implementation loading strategy 2012-06-12 01:12:37 +08:00
Strong Liu 74b9ebc09a HHH-7381 license header 2012-06-11 21:54:39 +08:00
Strong Liu 451dcd5f19 HHH-7381 Refact: split CacheImpl from SessionFactoryImpl into a session factory scope service 2012-06-11 21:53:42 +08:00
Strong Liu aac6510098 HHH-7380 bug when initialize MULTI_TENANT_IDENTIFIER_RESOLVER and CUSTOM_ENTITY_DIRTINESS_STRATEGY 2012-06-11 17:46:54 +08:00
Steve Ebersole 55abc2e357 Fixed files truncated by merge from master 2012-06-08 14:32:09 -05:00
Gail Badner 758c2491b5 Added test code truncated by merge 2012-06-08 12:09:17 -07:00
Steve Ebersole 986b66eb18 Initial merge from master to metamodel 2012-06-07 16:12:32 -05:00
Steve Ebersole 0196ad20f8 consolidate src/test and src/matrix 2012-06-07 14:07:08 -05:00
Steve Ebersole 67c5000885 HHH-7374 - Support KEY, ENTRY and VALUE qualifiers in WHERE clause 2012-06-06 17:22:58 -05:00
Gail Badner 503949b563 HHH-7322 : Integrate one-to-many cascade and fetch mode to persisters 2012-06-06 12:42:55 -07:00
Gail Badner 92c7b2d04f HHH-7373 : Remove commented out code from unit test 2012-06-05 13:37:00 -07:00
Gail Badner 48cd1e2f81 HHH-7373 : Basic collection element nullability is incorrect 2012-06-05 12:44:11 -07:00
John Verhaeg 188049a5a0 HHH-7372: Added tests to test laziness for other collection types. Also renamed test to better reflect its purpose. 2012-06-05 14:14:49 -05:00
Strong Liu ab8930d925 HHH-7298 sybase ase 15.7 doesn't support lock timeout in statement level 2012-06-04 11:00:11 +08:00
Gail Badner a23ec12e9c HHH-6409 : Add tests and make corrections to Value.getAlias() implementations 2012-06-01 18:20:51 -07:00
Steve Ebersole e26b8be6a5 HHH-6707 - One-to-One mapping with foreign key in target table and foreign key being the primary key fails with Oracle 2012-06-01 11:59:42 -05:00
Strong Liu c02de61f24 HHH-7298 seems DB2 do not support set lock timeout from statement level 2012-06-01 17:31:43 +08:00
Strong Liu 0996a970ab HHH-7298 org.hibernate.test.dialect.functional.SQLServerDialectTest#testLockNowaitSqlServer catches wrong exception 2012-06-01 15:52:00 +08:00
Strong Liu c0b4b7a577 HHH-7298 regression, org.hibernate.ejb.test.lock.LockTest 2012-05-31 18:58:00 +08:00
Strong Liu ba5a139bd1 HHH-5396 JPQL KEY(), ENTRY() and VALUE() does not recognize alias refs 2012-05-31 11:17:16 +08:00
Steve Ebersole 44fcd0a156 HHH-5396 - JPQL KEY(), ENTRY() and VALUE() does not recognize alias refs 2012-05-30 16:22:29 -05:00
Strong Liu 2b213dabc3 HHH-7298 regression, org.hibernate.ejb.test.lock.LockTest 2012-05-31 01:11:29 +08:00
Shawn Clowater 29103357a9 HHH-7292 - Changed the EntityEntry to check the CustomDirtynessStrategy first to determine if the entity needs to continue with the dirty check. Previously if the entity had mutable properties then it would bypass the custom dirty check.
To maintain legacy functionality still checking the mutable properties before checking the instrumented dirtyFlg (if applicable)

Added a Date property to the "Thing" test entity to verify that with mutable properties that the CustomDirtynessStrategy is still called.
2012-05-30 11:56:45 -05:00
Steve Ebersole c8431ce5d9 HHH-5881 - Add getter for "namedParameters" to QueryKey 2012-05-30 11:04:00 -05:00
Strong Liu 860efbdff4 HHH-6846 lock timeout is in milliseconds 2012-05-30 23:27:37 +08:00
Strong Liu 0c1569c4f4 HHH-6846 lock timeout is in milliseconds 2012-05-30 23:25:33 +08:00
John Verhaeg d7910f6e2e Reverting test HBM file back to use DTD to allow for testing with both old and new metamodels 2012-05-30 09:43:47 -05:00
Strong Liu ed266c593a HHH-6256 persistence.xml-specified javax.persistence.lock.timeout is ignored
HHH-6846 Support for Query.setHint(javax.persistence.lock.timeout)
2012-05-29 18:15:59 +08:00
Strong Liu 4266cd3585 HHH-7356 javax.persistence.lock.timeout hint is ignored by @NamedQuery 2012-05-29 17:44:09 +08:00
Strong Liu 5e3eb49ba3 HHH-7356 javax.persistence.lock.timeout hint is ignored by @NamedQuery 2012-05-29 17:32:59 +08:00
Guenther Demetz 2036d1479f hhh-7112 2012-05-29 17:04:44 +08:00
Strong Liu 32d36f6ea9 HHH-7356 add failure expected test 2012-05-29 16:58:28 +08:00
Lukasz Antoniak 51aa114224 HHH-7093 - Oracle does not support row value constructor syntax 2012-05-25 20:57:47 +02:00
Hardy Ferentschik 74300e6120 HHH-7351 Fixed wrong usage of index.getAnnotations and updates tests 2012-05-25 17:01:45 +02:00
Gail Badner f4cb1846e4 HHH-7349 : Collections mapped with lazy=true are non-lazy 2012-05-24 12:02:42 -07:00
Gail Badner a76187ec29 HHH-7349 HHH-7344 : Element collection mapped with lazy=true is non-lazy; correct headers for metamodel tests 2012-05-24 11:14:03 -07:00
Lukasz Antoniak af554fe59b HHH-7093 - ValidityAuditStrategy behaviour depending on row value constractor feature 2012-05-23 21:32:47 +02:00
Steve Ebersole 09d2c0d3a2 HHH-7306 - Allow use of CurrentTenantIdentifierResolver in normal session opening 2012-05-23 11:22:46 -05:00
John Verhaeg 46ddcd8414 HHH-7328: Modified Binder to ensure referenced entity names are package-qualified 2012-05-23 10:50:32 -05:00
Steve Ebersole e1062cfa22 HHH-7348 - AbstractMultiTenantConnectionProvider not closing connections 2012-05-23 09:39:36 -05:00
Strong Liu 7ed323a51f HHH-7345 rollback hibernate.properties 2012-05-23 22:08:43 +08:00
Strong Liu 9b501805c6 HHH-7345 add derby to the matrix testing suite 2012-05-23 21:31:35 +08:00