Commit Graph

2735 Commits

Author SHA1 Message Date
Svein bb2833bafc HHH-8854 Resolve any TypeVariables to Class or ParameterizedType when
creating AttributeConverterDefinition
2015-05-21 11:49:56 -05:00
Svein b5845138e6 HHH-8854 Create AttributeConverterDefinition even if AttributeConverter
is only implemented via superclass or interface
2015-05-21 11:49:56 -05:00
Steve Ebersole acea523607 HHH-9806 - Bytecode-enhancement-based dirty tracking does not work because PersistentAttributeInterceptor is never injected 2015-05-20 11:44:31 -05:00
Steve Ebersole 14fc8859fe HHH-9745 - ClassCastException in hbm2ddl update and validate 2015-05-19 22:04:20 -05:00
Andrea Boriero 6d0549b448 HHH-9772 - Add @Retention( RUNTIME) so ListIndexBase annotation is available to AnnotationBinder 2015-05-19 19:18:20 +01:00
Andrea Boriero 8368f93e0c HHH-9803 - Fix compilation erorr: ackage instead of package 2015-05-19 12:24:24 +01:00
Steve Ebersole bd256e4783 HHH-9803 - Checkstyle fix ups - headers 2015-05-18 23:25:14 -05:00
Steve Ebersole d5951c6e02 HHH-9803 - Checkstyle fix ups 2015-05-18 21:49:44 -05:00
Steve Ebersole 5f36892a10 HHH-9803 - Checkstyle fix ups 2015-05-18 14:34:48 -05:00
Steve Ebersole 611f8a0e1c HHH-9803 - Checkstyle fix ups 2015-05-18 13:35:27 -05:00
Steve Ebersole bbfacee64d HHH-9803 - Checkstyle fix ups 2015-05-18 01:48:39 -05:00
Steve Ebersole 7308e14fed HHH-9803 - Checkstyle fix ups 2015-05-15 18:07:07 -05:00
Andrea Boriero e4e76ba23b HHH-9765 - Re-introduce ExceptionMapper, ManagedFlushChecker and AfterCompletionAction 2015-05-15 14:50:44 -05:00
Steve Ebersole 2827a59f2d HHH-9788 - Schema generation re-triggered where it should not be 2015-05-15 13:46:58 -05:00
Steve Ebersole 329e85b0b0 HHH-9797 - Inaccurate warnings logged about duplicate joins (HHH000072) 2015-05-14 11:52:56 -05:00
Steve Ebersole b605c3534e HHH-9790 - Remove deprecated methods from Session and SessionFactory 2015-05-13 11:55:02 -05:00
Steve Ebersole b8f43a8c12 HHH-9795 - Create delegating base class for SessionFactory(Implementor) implementations 2015-05-13 11:01:24 -05:00
Steve Ebersole 13736ab5da HHH-9790 - Remove deprecated methods from Session and SessionFactory 2015-05-13 09:03:44 -05:00
Steve Ebersole 48cafb2664 HHH-8804 - Ability to use parametrized type as AttributeConverter type parameter 2015-05-12 23:34:27 -05:00
Svein 99e1250e4e HHH-8804 AttributeConverterDefinition now extracts the raw class from
parameterized type arguments to AttributeConverter
2015-05-12 23:34:27 -05:00
Steve Ebersole 23794bf294 HHH-9792 - Clean up missed Configuration methods 2015-05-12 23:09:58 -05:00
Steve Ebersole 288f490418 HHH-9761 - Make native APIs typed;
HHH-9790 - Remove deprecated methods from Session and SessionFactory
2015-05-12 22:56:37 -05:00
Andrea Boriero dc0f77a236 Fix JdbcCoordinatorImpl impl of TransactionCoordinatorOwner#isActive() 2015-05-12 16:09:02 -05:00
Sanne Grinovero f3247cf3dd HHH-8898 Apply the auto-closeable also to StatelessSession and HibernateIterator 2015-05-12 14:17:26 +01:00
Sanne Grinovero d7bf58e318 HHH-8898 Change the ScrollableResults API to enable auto-closeable when running on Java7 2015-05-12 13:51:27 +01:00
Sanne Grinovero 4d70a29e58 HHH-8898 Change the SessionFactory API to enable auto-closeable when running on Java7 2015-05-12 13:51:27 +01:00
Sanne Grinovero 7c006f7fcd HHH-8898 Change the Session API to enable auto-closeable when running on Java7 2015-05-12 13:51:27 +01:00
Steve Ebersole 1b468d06a3 HHH-9699 - Re-work the hibernate-osgi integration tests using managed Karaf 2015-05-08 15:31:51 -05:00
Steve Ebersole 88a6e4ba27 HHH-9760 - TransactionImpl itself should not be throwing new TransactionExceptions 2015-05-08 13:08:01 -05:00
Steve Ebersole 21abf08452 HHH-9756 - NPE in JtaTransactionCoordinatorImpl#explicitJoin() after previously executed transaction 2015-05-07 14:59:25 -05:00
barreiro 165f037bad HHH-8489 - bytecode enhancement: bi-directional associtation management
Closes #933
2015-05-07 13:10:58 -05:00
Gunnar Morling 7346533259 HHH-9697 Making AbstractDelegatingSessionFactoryBuilder a self-referential generic type so implementations can use co-variant return types in builder methods 2015-05-05 18:02:35 -05:00
Steve Ebersole da1fcbbfb7 HHH-9762 - Complete deprecation of Settings contract 2015-05-05 18:00:37 -05:00
Steve Ebersole 9bfd65e370 HHH-9768 - Maintain explicit list of ANSI SQL keywords 2015-05-01 14:29:17 -05:00
Steve Ebersole dd314f492d HHH-9768 - Maintain explicit list of ANSI SQL keywords 2015-05-01 14:08:33 -05:00
Steve Ebersole 5c88ccec5c HHH-9768 - Maintain explicit list of ANSI SQL keywords 2015-05-01 10:50:29 -05:00
Gail Badner 7569355ad8 HHH-9737 : Back out of change that quoted ANSI keyword in hibernate-core 2015-04-30 17:18:02 -07:00
Gail Badner bc58df9a78 HHH-9758 : Broken SQL generated for dynamic batch fetching entities with a composite ID 2015-04-29 21:48:12 -07:00
Gail Badner 4431f094c8 HHH-9736 : BigIntegerType should use BigIntTypeDescriptor 2015-04-28 16:11:35 -07:00
Gail Badner 720202058c HHH-9736 : BigIntegerType should use BigIntTypeDescriptor 2015-04-28 16:01:36 -07:00
Gail Badner 829709f60e HHH-9753 : Remove ClassicAvgFunction, ClassicCountFunction, ClassicSumFunction 2015-04-28 14:18:41 -07:00
Steve Ebersole 7715fccd04 HHH-9697 - Complete documentation of new approach and APIs for SessionFactory building 2015-04-27 13:26:28 -05:00
Steve Ebersole 148159fadc HHH-9747 - Import initial reworking of transaction handling (based on JdbcSession work) 2015-04-24 13:34:42 -05:00
Andrea Boriero b476094d43 HHH-9747 - Import initial reworking of transaction handling (based on JdbcSession work) 2015-04-24 10:58:08 -05:00
Karel Maesen 0c0a5e2af0 HHH-6510 Added SQL Server 2008 support.
Converts SQL Server convertor integration tests to proper unit tests.
2015-04-24 05:55:52 -05:00
Karel Maesen 812da6e7cd HHH-6510 : Initial commit.
Source code copied from Hibernate Spatial 1.1.1-SNAPSHOT.
Root package is now org.hibernate.spatial (instead of org.hibernatespatial)
GeometryType replaces GeometryUserType.
SpatialDialects remap SpatialSqlTypeDescriptors.
Hibernate Spatial registers GeometryType in Integrator (temporary fix: see HHH-6507).
2015-04-24 05:55:52 -05:00
Steve Ebersole ae43670290 HHH-9724 - More complete "temp table" coverage and allow Dialects to influence which strategy is used 2015-04-23 15:21:27 -05:00
Steve Ebersole 52589379e1 HHH-9732 - Audit code for spots that would benefit from a case-insensitive keyed Map 2015-04-22 13:17:21 -05:00
Steve Ebersole 3c85127f82 HHH-9716 - Previously working schema creation fails on 5.0 2015-04-22 11:09:51 -05:00
John O'Hara 3e5a8b6603 HHH-9701 - Develop "immutable EntityEntry" impl 2015-04-22 13:24:02 +01:00
Gail Badner 5269bcbeeb HHH-9737 : Miscellaneous bugs in unit tests when using non-default dialects
(cherry picked from commit a6969ceb0a)
2015-04-21 12:28:16 -07:00
Steve Ebersole d2c50f16f2 HHH-9727 - Slight redesign to bootstrapping APIs to allow for OGM bootstrapping 2015-04-21 13:49:06 -05:00
Steve Ebersole e8af41637f HHH-9727 - Slight redesign to bootstrapping APIs to allow for OGM bootstrapping 2015-04-21 11:56:06 -05:00
Gail Badner df8cc6d4be HHH-9250 : BigIntegerSequenceGeneratorTest.testBasics fails on MS SQL Server 2012
(cherry picked from commit 49fed0938e)
2015-04-20 17:47:17 -07:00
Steve Ebersole 4541f7b501 HHH-9727 - Slight redesign to bootstrapping APIs to allow for OGM bootstrapping 2015-04-20 15:21:37 -05:00
Steve Ebersole bf3669a7de HHH-9727 - Slight redesign to bootstrapping APIs to allow for OGM bootstrapping 2015-04-20 12:18:34 -05:00
Steve Ebersole 0993d78e97 HHH-9724 - More complete "temp table" coverage and allow Dialects to influence which strategy is used 2015-04-17 16:36:39 -05:00
Steve Ebersole 06b6135a11 HHH-9724 - More complete "temp table" coverage and allow Dialects to influence which strategy is used - initial work 2015-04-17 16:25:40 -05:00
Brett Meyer 7ca12c7d80 HHH-9722 cleanup, removed StringHelper methods 2015-04-17 15:53:24 -04:00
10urshin 1361925bc7 HHH-9722
Changed all toLowerCase() and toUpperCase() to toLowerCase(Locale.ROOT),
toUpperCase(Locale.ROOT).
2015-04-17 15:53:24 -04:00
Steve Ebersole f77b861137 HHH-9716 - Previously working schema creation fails on 5.0 2015-04-17 11:05:39 -05:00
Steve Ebersole b6ae9edb4e HHH-9716 - Previously working schema creation fails on 5.0 2015-04-17 11:02:13 -05:00
Steve Ebersole 76d732d53a HHH-9727 - Slight redesign to bootstrapping APIs to allow for OGM bootstrapping 2015-04-16 14:19:11 -05:00
Steve Ebersole b1bbae2783 HHH-9727 - Slight redesign to bootstrapping APIs to allow for OGM bootstrapping 2015-04-16 09:02:28 -05:00
Steve Ebersole 2c968538a5 HHH-9728 - Audit Settings to decide what should become a SessionFactoryServiceRegistry service 2015-04-16 00:59:10 -05:00
Steve Ebersole 83f83c57dc HHH-9726 - Rename MetadataBuilderContributor to MetadataBuilderInitializer and pass it the StandardServiceRegistry 2015-04-15 11:44:49 -05:00
Steve Ebersole 650267077d HHH-9717 - Build script improvements - applied new standalone XJC and AnimalSniffer plugins 2015-04-10 11:58:22 -05:00
Steve Ebersole 6e7357beeb HHH-9717 - Build script improvements - applied new standalone XJC and AnimalSniffer plugins 2015-04-09 11:36:04 -05:00
Steve Ebersole 9786409096 HHH-9550 - Allow a dialect to specify the level of catalog/schema support 2015-04-07 14:31:41 -05:00
Steve Ebersole a96385a6e0 HHH-9713 - Creating an index in the database incorrectly tries to qualify the index with table name for some databases 2015-04-06 13:47:48 -05:00
Steve Ebersole b7273d93a2 HHH-9704 - Complete HHH-8805 work on 5.0;
HHH-9709 - @ForeignKey
2015-04-02 17:14:40 -05:00
Steve Ebersole 22ca7125f7 HHH-9704 - Complete HHH-8805 work on 5.0;
HHH-9709 - JPA @ForeignKey not consistently applied from annotation binding
2015-04-02 17:02:59 -05:00
Sanne Grinovero 4c690a8839 HHH-9706 Review concurrency of ClassLoaderService and warn against reuse 2015-04-02 18:32:52 +01:00
Gail Badner 02e2644676 HHH-9370 : Unidirectional one-to-many with key that is property-ref (test case) 2015-04-01 16:13:55 -07:00
Steve Ebersole 256b2608ce HHH-9265 - Extract EntityEntry behind a factory + interface;
HHH-9700 - Make EntityEntryFactory pluggable via EntityPersister
2015-03-31 14:42:40 -05:00
John O'Hara 5c4dacb83e HHH-9265 - Extract EntityEntry behind a factory + interface 2015-03-31 13:07:06 -05:00
Brett Meyer 410a785dfe HHH-9680 updated OSGi quickstarts, added necessary contracts to Envers blueprint, corrected a few uses of ReflectionManager 2015-03-30 15:36:57 -04:00
barreiro 4def797408 [HHH-9690] reorganization of bytecode enhancer code
Enhancer class was split into 3 logical units: EntityEnhancer for regular entities; CompositeEnhancer for emmbeded entities; PersistentAttributesEnhancer to enhance the persistent fields of both types of entities
Added a few helper classes and re-worked the tests a bit as well
2015-03-27 18:24:07 -05:00
Steve Ebersole e9230758b4 HHH-9446 - ClassCastException on loaded entities under GlassFish 4.0 2015-03-27 15:13:53 -05:00
Gunnar Morling d5d066cb3d HHH-8901 Creating forwarding base classes for SessionBuilder(Implementor) and SharedSessionBuilder 2015-03-27 13:47:08 -05:00
Steve Ebersole 08f37c4502 HHH-9492 - Migrate to new bootstrap API (MetadataSources, etc) 2015-03-27 13:42:48 -05:00
Steve Ebersole d796acdbc2 HHH-9492 - Migrate to new bootstrap API (MetadataSources, etc) 2015-03-27 12:04:24 -05:00
Gunnar Morling 30240beded HHH-9689 Avoid NPE when trying to load non-existent properties resource 2015-03-27 10:12:30 -05:00
Steve Ebersole 1f50efa34c HHH-9524 - Make strategy for interpreting id-generator annotations pluggable 2015-03-26 22:54:01 -05:00
Gail Badner 64c3e4c783 HHH-8879 HHH-8994 : Embeddable with associations used as a Map key 2015-03-26 17:44:37 -07:00
Steve Ebersole 5d365cfa00 HHH-9524 - Make it pluggable how GenerationType.AUTO is mapped 2015-03-26 16:18:40 -05:00
Steve Ebersole 3b9b2eaa91 HHH-9668 - Document new SessionFactory approach and APIs 2015-03-26 12:28:29 -05:00
Steve Ebersole 599c10cd5a HHH-9492 - Migrate to new bootstrap API (MetadataSources, etc) 2015-03-26 09:57:49 -05:00
Steve Ebersole a92ddea9ca HHH-9492 - Migrate to new bootstrap API (MetadataSources, etc) - Gunnar's feedback 2015-03-26 00:25:52 -05:00
Steve Ebersole 9901f85f77 HHH-465 - order by nulls first / last 2015-03-25 15:37:07 -05:00
Gunnar Morling 52fabe70bc HHH-8191 Remvoing redundant semicolon 2015-03-25 16:24:54 +01:00
Steve Ebersole 117cb9cd2c Merge pull request #862 from magdalenamoeller/HHH-9556
HHH-9556 - enable query hints for SQL Server 2012
2015-03-24 23:54:57 -05:00
Steve Ebersole 4e0f2b3a7b HHH-9300 - DB2Dialect generates invalid order by clause 2015-03-24 23:49:09 -05:00
Steve Ebersole a4b5cf4597 HHH-9668 - Document new SessionFactory approach and APIs 2015-03-24 22:16:22 -05:00
Steve Ebersole 5f6d1d24f7 HHH-8844 - Add support for Java 8 date and time types (JSR-310) 2015-03-24 16:01:15 -05:00
Steve Ebersole 3e73948dae HHH-7375 - TimeZone of Calendar objects should be used in binding to JDBC statements 2015-03-23 21:02:45 -05:00
Steve Ebersole 04a4f54579 HHH-8191 - Update Teradata Dialect for Teradata 14.0 2015-03-23 14:54:24 -05:00
Steve Ebersole f6322b5cdd HHH-9678 - Change built-in SqlTypeDescriptor impls to not auto-register themselves with SqlTypeDescriptorRegistry 2015-03-23 11:20:01 -05:00
Brett Meyer 715544febe HHH-8191 cleanup 2015-03-21 23:15:10 -04:00
Dave Repshas 027840018b HHH-8191 Support Teradata 14.0 2015-03-21 23:06:06 -04:00
Steve Ebersole 27e8aae279 HHH-8697 - AttributeConverter not called when value is null;
HHH-9320 - AttributeConverter result ignored on extraction when ResultSet.wasNull
2015-03-21 15:54:56 -05:00
Steve Ebersole 7a1c155099 HHH-9577 - Make UUID generation the default (AUTO) for UUID type;
HHH-9562 - Dialect specific UUID handling
2015-03-21 14:45:44 -05:00
Andrej Golovnin a381e368eb HHH-9336 Avoid creation of TypedValue objects in
AbstractPersistentCollection#getOrphans(Collection, Collection,
String, SessionImplementor) for some ID types.
2015-03-20 17:17:43 -05:00
Andrej Golovnin 4615ae1018 - HHH-9324: Avoids creation of LimitHandler instances for every query. 2015-03-20 17:11:36 -05:00
Steve Ebersole 38c004431d HHH-9599 - AnnotationException occurs when applying @Nationalized and @Convert annotations to the same field 2015-03-20 16:55:29 -05:00
Steve Ebersole 8a7bc2e7c1 HHH-9605 - Query on an enum collection fails - minor changes 2015-03-20 15:39:02 -05:00
obr 001b841934 HHH-9605: fix querying a collection of enums 2015-03-20 15:39:02 -05:00
obr 2c8ded5ff3 HHH-9605: Test for querying a collection of enums 2015-03-20 15:39:02 -05:00
Steve Ebersole f45b37da8e HHH-9495 - @Convert support for collections 2015-03-20 15:08:49 -05:00
Gail Badner 8284b9ae2c HHH-9392 : SQLGrammarException while executing a entity graph with subgraphs 2015-03-20 12:40:20 -07:00
Steve Ebersole 22730624fc HHH-9042 - Envers fails with @Converter and AttributeConverter 2015-03-20 11:17:48 -05:00
Gail Badner 180e714b7c HHH-9448 : Association is not fetched when EntityGraph has explicit fetch and query has implicit join 2015-03-19 21:58:30 -07:00
Steve Ebersole 93cf72bfa1 HHH-9490 - Migrate from dom4j to jaxb for XML processing 2015-03-19 19:22:35 -05:00
Steve Ebersole bd8acaebca HHH-8866 - HQL Query with enum and @Convert 2015-03-19 19:19:03 -05:00
Steve Ebersole ffce4ffc2c HHH-9490 - Migrate from dom4j to jaxb for XML processing - hibernate-osgi 2015-03-19 14:20:00 -05:00
Steve Ebersole 80bf715f0b HHH-9490 - Migrate from dom4j to jaxb for XML processing - hibernate-osgi 2015-03-19 12:40:29 -05:00
Steve Ebersole 63a0f03c5a HHH-9654 - Adjust envers for 5.0 APIs + JAXB 2015-03-18 20:22:26 -05:00
Gunnar Morling 8468d834ef HHH-9451 Propagating entity entry extra state when using identity id generation strategy
(cherry picked from commit 4bbf4cd1db)
2015-03-13 12:56:33 -07:00
Sanne Grinovero 04e7cfce70 HHH-9659 AnnotationMetadataSourceProcessorImpl uses a Logger.debugf method without matching parameters 2015-03-13 19:09:12 +00:00
Sanne Grinovero 6eb6f38721 HHH-9658 Refactor some of the existing logging tests 2015-03-13 19:09:12 +00:00
Sanne Grinovero c067fc2b42 HHH-9658 Simplify the way tests assert on logging statements 2015-03-13 19:09:12 +00:00
Gail Badner 965e044850 HHH-9333 : TypeMismatchException when using composite-id and natural-id mappings 2015-03-12 23:40:47 -07:00
Gail Badner 6c404c30f7 HHH-9642 : Join fetch not performing join fetch for @Embeddable with @OneToMany 2015-03-11 15:58:29 -07:00
Steve Ebersole 24bafba2b0 Merge pull request #848 from golovnin/HHH-9328_newmaster
HHH-9328 Avoid creation of Cascade objects at all
2015-03-10 22:21:53 -05:00
Bradley Plies 51c7bd1523 HHH-5654 PostgreSQL Dialect will now correctly apply "for update of" for any necessary table aliases. Added test.
Signed-off-by: Bradley Plies <pliesb@yahoo.com>
2015-03-10 21:44:39 -05:00
Brett Meyer e70832d9dd HHH-9044 - Create Oracle12cDialect 2015-03-10 21:40:03 -05:00
Steve Ebersole 11095e709d HHH-9044 - Create Oracle12cDialect 2015-03-10 21:38:51 -05:00
zhouyanming 73a88ff65c HHH-9044 - Create Oracle12cDialect 2015-03-10 21:38:41 -05:00
Steve Ebersole c2f62a528b HHH-9167 - Support Postgres9.2 JSON data type 2015-03-10 21:33:05 -05:00
Brett Meyer efaa916a8e HHH-9167 - Support Postgres9.2 JSON data type 2015-03-10 21:32:05 -05:00
Mark Robinson 588d02b6c2 HHH-9167 Add support for PostgreSQL's new JSON data type
(cherry picked from commit 4a8bc1f250)
2015-03-10 21:25:54 -05:00
Steve Ebersole a0a9a4d1e8 HHH-8911 - ClassCastException between CompositeCustomType and ComponentType 2015-03-10 20:56:06 -05:00
Steve Ebersole b318d21cc8 HHH-9655 - Add logging to help better track down tests that leave SessionFactories open 2015-03-10 20:44:10 -05:00
Steve Ebersole 83756008d2 HHH-9655 - Add logging to help better track down tests that leave SessionFactories open 2015-03-10 19:36:54 -05:00
Steve Ebersole 9caca0ce37 HHH-9490 - Migrate from dom4j to jaxb for XML processing;
HHH-9492 - Migrate to new bootstrap API (MetadataSources, etc);
HHH-7078 - Split NamingStrategy into ImplicitNamingStrategy/PhysicalNamingStrategy;
HHH-6005 - Better handling of implicit column naming with @ElementCollection of @Embeddables;
HHH-9633 - Add tests that explicitly test the "main" NamingStrategy impls
2015-03-10 16:53:51 -05:00
Etienne Miret 94ad371bf3 HHH-9247 Attribute "name" of named-attribute-node maps to "value" of annotation. 2015-03-09 12:07:48 +00:00
Etienne Miret 58e4c675d3 HHH-9247 Add test for parsing named-attribute-nodes in orm.xml. 2015-03-09 12:07:36 +00:00
Sanne Grinovero f552f6499f HHH-8788 removed unnecessary warning related to follow-on locking with Criteria and LockMode.NONE 2015-03-06 16:03:18 +00:00
Gail Badner 9337f73185 HHH-9457 : EntityGraph with order by using Oracle10gDialect 2015-02-20 17:32:41 -08:00
Gail Badner 0215008851 HHH-9621 : Add HQL query to warning about positional parameter usage 2015-02-18 11:30:50 -08:00
Gail Badner 36cc2c836c HHH-9597 : Criteria creates invalid column aliases 2015-02-12 13:38:09 -08:00
Gail Badner c9df7589f2 HHH-9597 : Criteria creates invalid column aliases (test case) 2015-02-12 13:23:27 -08:00
Gail Badner 264b0be40e HHH-9523 : EnumeratedTypeTest - select from dual causes test failures on mssql, postgresql, db2 and sybase 2015-01-21 16:53:11 -08:00
Gail Badner f1a9a9f006 HHH-9091 : Collection deleted due to orphan removal fails with constraint violation 2015-01-21 00:37:55 -08:00
Brett Meyer 2d64e539aa HHH-8494 cleanup 2015-01-20 10:46:29 -05:00
hernan be08e94aa5 HHH-8494: Misleading log info during batch execution.
* Added a boolean variable to indicate if during addToBatch method the
batchSize is reached and there is more than one batch execution.
* The logging about performing a batch execution is moved to
performExecution method.
* The logging indicating that there is no statement to execute in batch
is performed only if there was no previous batching execution.
2015-01-20 10:45:23 -05:00
Gail Badner d933c78185 HHH-9568 : EntityManager.flush() does not behave properly with transient one-to-one association and no cascade (reverts HHH-9330) 2015-01-14 15:06:53 -08:00
Arcadiy Ivanov 5047f6fcc6 HHH-9419 : Remove after get with optimistic lock fails
(cherry picked from commit c80a8c442a)
2015-01-06 00:09:44 -08:00
Gail Badner cf728ede66 HHH-9401 : SQL warnings are never logged due to incorrect condition check
(cherry picked from commit a98ebc4ed4)
2015-01-05 23:07:55 -08:00
Gail Badner 4bf3b162ad HHH-9467 : Cannot enable NamingStrategyDelegator implementations using standalone schema tools 2015-01-05 12:05:19 -08:00
magdalena bbaeaa6c58 enable query hints for SQL Server 2012 2015-01-03 13:38:29 +01:00
George Gastaldi 1b9cd19ca7 HHH-9545: H2Dialect should use 'if exists' when dropping constraints 2014-12-19 11:47:38 +00:00
George Gastaldi 7854bc6769 HHH-9500: H2Dialect shoud not drop constraints
The constraints are automatically dropped when the table is also dropped.
Trying to drop a constraint on a table that doesn't exist present unnecessary error messages.
2014-12-18 11:46:04 +00:00
Gail Badner 493808ddc1 HHH-8401 : Unit test fixes
(cherry picked from commit 45511f10ae)
2014-12-17 23:32:43 -08:00
George Gastaldi 60d4fe5001 HHH-6670: H2Dialect should use "if exists" when dropping sequences 2014-12-17 16:08:40 +00:00
Gail Badner fa8383a22e HHH-8401 : Support fractional seconds on MySQL 5.7
(cherry picked from commit fe94cda1d1)
2014-12-16 21:18:14 -08:00
Gail Badner c068b6f70c HHH-9091 : Cascaded collection delete fails due to wrong execution sequence (test case)
(cherry picked from commit 3b57f1612d)
2014-12-02 22:08:29 -08:00
Andrej Golovnin fb15ee548c HHH-9328 Avoids creation of Cascade objects at all
by converting all methods of the Cascade class into
static methods.
2014-11-27 20:43:44 +01:00
Gail Badner 2105f2a49d HHH-9330 : Test cases for orphanRemoval=true does not work in bidirectional relationships (without cascading)
(cherry picked from commit 1ff9edfb81)
2014-11-26 16:13:49 -08:00
Gail Badner 68838823bd HHH-9330 : orphanRemoval=true does not work in bidirectional relationships (without cascading)
(cherry picked from commit ef3550eed5)
2014-11-26 16:13:49 -08:00
Sanne Grinovero fa90757f04 HHH-9508 Improve trace logging in ActionQueue 2014-11-18 11:53:33 +00:00
Sanne Grinovero 498214b569 HHH-9508 Avoid source syntax which doesn't work in Eclipse 2014-11-18 11:53:29 +00:00
Gunnar Morling 9a881907f5 HHH-9479 Avoiding array list growth in ActionQueue constructor 2014-11-11 14:51:30 +01:00
Steve Ebersole c7f58ab57e HHH-9488 - Move scanning from HEM to core 2014-11-07 15:36:44 -06:00
Steve Ebersole d9fc06b7db HHH-9487 - Improve AvailableSettings javadoc for session_factory_name / session_factory_name_is_jndi 2014-11-07 11:01:18 -06:00
Steve Ebersole aac8afa090 HHH-9476 - bytecode-enhanced lazy to-one does not force selection of foreign-key column(s) when association is fetched 2014-11-07 09:14:21 -06:00
Steve Ebersole 66ce8b7fb5 HHH-9466 - Drop metamodel package from source 2014-10-30 07:43:55 -05:00
Gail Badner b943525c80 HHH-9388 : fix Entity Manager bug explicitly enabling ImprovedNamingStrategyDelegator/LegacyNamingStrategyDelegator 2014-10-22 13:46:15 -07:00
Gail Badner 460e966214 HHH-9455 : Unnecessary select count query in some cases
(cherry picked from commit 552c1c06d5)
2014-10-21 13:45:37 -07:00
Gail Badner 52f2c3a002 HHH-9388 HHH-7079 : Default collection table and foreign key names are incorrect in some cases; deprecate NamingStrategy
(cherry picked from commit e5a31caa09)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/HbmBinder.java
	hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/MyNamingStrategyDelegator.java
2014-10-20 22:55:40 -07:00
Gail Badner 1cba98022e HHH-9388 HHH-7079 : Default collection table and foreign key names are incorrect in some cases; deprecate NamingStrategy
(cherry picked from commit 36576046b8)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/Ejb3JoinColumn.java
	hibernate-core/src/main/java/org/hibernate/cfg/HbmBinder.java
	hibernate-core/src/main/java/org/hibernate/cfg/Mappings.java
	hibernate-core/src/main/java/org/hibernate/cfg/annotations/EntityBinder.java
	hibernate-core/src/main/java/org/hibernate/cfg/annotations/TableBinder.java
	hibernate-core/src/main/java/org/hibernate/metamodel/source/internal/IdentifierGeneratorResolver.java
	hibernate-entitymanager/src/main/java/org/hibernate/ejb/AvailableSettings.java
	hibernate-entitymanager/src/main/java/org/hibernate/ejb/Ejb3Configuration.java
2014-10-20 22:18:05 -07:00
jmoore c60c97b468 HHH-3868 Fix null pointer exception on merge of entity with transient component 2014-10-17 15:01:35 +01:00
Maxim Frolov 83f29d1e1a HHH-8895: fixed 2014-09-30 15:40:40 +01:00
Andrea Boriero d85f2c8d03 HHH-8895 Add test 2014-09-30 15:40:40 +01:00
andreas fff49977ab HHH-9369 Fix @Formula of enum type results in ClassCastException 2014-09-18 11:15:16 +01:00
Sanne Grinovero 193c8cef20 HHH-9344 Convert QueryLoader to use nanoTime instead of currentTimeMillis 2014-09-17 14:27:56 +01:00
Sanne Grinovero 16b067cd7d HHH-9344 Convert Loader to use nanoTime instead of currentTimeMillis 2014-09-17 14:27:56 +01:00
Sanne Grinovero 0d1460cc1e HHH-9344 Convert QueryTranslatorImpl to use nanoTime instead of currentTimeMillis 2014-09-17 14:27:55 +01:00
Sanne Grinovero 23936fd510 HHH-9344 Convert DefaultResolveNaturalIdEventListener to use nanoTime instead of currentTimeMillis 2014-09-17 14:27:55 +01:00
Sanne Grinovero 067e38a78b HHH-9344 Remove dead code from BatchTest 2014-09-17 14:27:55 +01:00
Sanne Grinovero 42cd3ff2cf HHH-9344 Guard against unneeded invocation to System.currentTimeMillis() in HQLQueryPlan 2014-09-17 14:27:55 +01:00
Gail Badner d4d5fcc9e2 HHH-9390 : Default join column name (FK) for @ManyToMany uses owning entity primary table name (test cases) 2014-09-11 12:52:52 -07:00
Gail Badner f2ae61abf6 HHH-9387 HHH-9389 : Default collection table and join column names generated for @ElementCollection (test cases)
HHH-9387 HHH-9389 : Default collection join column names generated for @ElementCollection (test cases)
2014-09-11 12:51:18 -07:00
Gail Badner c63bc19d8a HHH-9327 : NamingStrategy regression (reverts HHH-9280)
(cherry picked from commit 30c6e060db)
2014-09-10 13:22:29 -07:00
Christian Beikov 4505843f02 Added regression test for HHH-9327
(cherry picked from commit 3da903f064)
(cherry picked from commit 1df6c45f8a)
2014-09-10 13:22:07 -07:00
Gail Badner 35edd56907 HHH-8839 : Eager Map with entity key causes IllegalStateException: Collection element (many-to-many) table alias cannot be empty 2014-08-18 14:00:02 -07:00
Gail Badner 153c4e32ef HHH-9090 : HQL parser is trying to reuse parent implied join for subquery 2014-08-12 16:11:54 -07:00
Steve Ebersole 72e9645d4b HHH-9312 - Database connection leak with JTA transaction tracking and background thread not releasing database connection
(cherry picked from commit 9e1afbaf49)
2014-08-04 13:35:08 -05:00
Gail Badner a0663f0d6c HHH-9305 : HQL FromElement is not reused in some cases resulting in an additional join 2014-07-29 17:10:21 -07:00
Brent Plump d511980072 HHH-9290 : Do not truncate HT_ temporary table name prefix on Oracle 2014-07-28 09:12:11 -04:00
Sanne Grinovero 32403f3ac3 HHH-9288 Restore removed method ServiceRegistryBuilder#buildServiceRegistry used by Tools 2014-07-14 15:57:03 +01:00
Gail Badner 25575d2e7d HHH-9282 : Revert HHH-9222 on 4.3 branch 2014-07-09 22:28:54 -07:00
Gail Badner 365bfe99d8 HHH-8310 : Lob proxy class loading problem 2014-07-09 19:31:50 -07:00
Gail Badner 4007655045 HHH-5811 : Flush causes update query on field of type Byte[] 2014-07-09 17:11:09 -07:00
Gail Badner ccffe0dea9 HHH-9280 : Table name generated for @ElementCollection uses owning entity class name instead of mapped entity name 2014-07-09 15:08:31 -07:00
Steve Ebersole ee0cf672d7 HHH-6005 - DefaultComponentSafeNamingStrategy breaks @ElementCollection of @Embeddables - testcase 2014-07-09 14:06:14 -05:00
Gunnar Morling 953260e0ae HHH-8683 Adapting unit test to changed deserialize() method in 4.3 2014-07-09 16:48:53 +02:00
Gunnar Morling b95b8514d8 HHH-8683 Making EnumState a parameterized class, thus allowing to access its value more safely 2014-07-09 15:29:19 +01:00
Gunnar Morling 4a38b25ec1 HHH-8683 Caching enum constants to avoid memory allocation by repeated calls to getEnumConstants() 2014-07-09 15:29:19 +01:00
Gunnar Morling 5ad2663d12 HHH-8683 Adding test for setting/getting attributes in compressed state int 2014-07-09 15:29:19 +01:00
Emmanuel Bernard dedd24afc2 HHH-8683 Class org.hibernate.engine.spi.EntityEntry consumes lots of memory 2014-07-09 15:29:15 +01:00
Gunnar Morling d84c6b35aa HHH-8237 Applying type configured via @ColumnMapping#type() for constructor results 2014-07-09 10:44:51 +02:00
Gunnar Morling 14c00abd6a HHH-8237 Applying type configured via @ColumnMapping#type() for scalar results 2014-07-09 10:44:51 +02:00
Gail Badner 4851ab01df HHH-9231 : Avoid updating collection 2LC if contains entity added in tx 2014-07-07 19:03:58 -07:00
Galder Zamarreño 36e35207f6 HHH-9231 Avoid updating collection 2LC if contains entity added in tx
(cherry picked from commit 3b098a94d3463086a230d6dbc1254e9ecbf76cda)

Conflicts:
	hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/BasicTransactionalTestCase.java
2014-07-07 19:03:58 -07:00
Gail Badner 31bcb0ea0a HHH-9106 : Merging multiple representations of the same entity (logging) 2014-07-03 11:46:56 -07:00
Gail Badner 368cdc1966 HHH-9106 : Merging multiple representations of the same entity (tests using StrategySelector) 2014-07-03 11:21:26 -07:00
Gail Badner 6203b5da30 HHH-9106 : Merging multiple representations of the same entity (using StrategySelector) 2014-07-02 14:50:26 -07:00
Emmanuel Bernard ceaf2e320f HHH-9269 Store persister to ReferenceCacheEntryImpl to avoid costly lookup at read time 2014-07-02 11:40:58 +02:00
Sanne Grinovero 3b284d797a HHH-9268 The NoopOptimizer used for default id generation doesn't need synchronization 2014-07-02 00:51:52 +02:00
Steve Ebersole 4780f117c5 HHH-9090 - HQL: parser is trying to reuse parent implied join for subquery
(cherry picked from commit 133f0825a3)
2014-06-23 11:06:22 -05:00
Gail Badner 3a8041953d HHH-9106 : (corrected test case to work on MySQL) 2014-06-19 00:32:00 -07:00
Gail Badner ea5068ea76 HHH-9234 : Test failure (testNaturalIdChangedWhileAttached) on SAP/SYBASE ASE
(cherry picked from commit 257efd1025)
2014-06-18 17:15:11 -07:00
Gail Badner 10e4ff5afb HHH-9106 : Merging multiple representations of the same entity (improved logging)
(cherry picked from commit fed3191eb7)
2014-06-17 12:37:19 -07:00
Gail Badner 2daaf9a196 HHH-9106 : Merging multiple representations of the same entity 2014-06-12 20:04:44 -07:00
Gail Badner c7c5b015c1 HHH-9239 HHH-9240 : FailureExpected test cases when merging entity copies with dirty collections 2014-06-12 14:50:45 -07:00
Gail Badner 70532259fa HHH-9106 : Merging multiple representations of the same entity merged 2014-06-12 01:46:23 -07:00
Brett Meyer e520c1c2c0 HHH-9215 HHH-9214 HHH-9213 correcting Sybase test failures 2014-05-30 14:49:22 -04:00
Brett Meyer a39eeed257 HHH-9202 NPE in OneToOneLinkTest on oracle12c 2014-05-27 21:52:32 -04:00
Steve Ebersole d36b3a3e97 HHH-9222 - Bulk delete and element collections 2014-05-27 15:43:24 -05:00
Gail Badner 420296fd26 HHH-9204 HHH-9205 : Restore AbstractCollectionPersister.doProcessQueuedOps() removed by HHH-9078; deprecate method added by HHH-9078 2014-05-27 13:00:19 -07:00
Gail Badner f549b88831 HHH-9171 : Orphan removal does not happen for new entity element 2014-05-27 12:19:04 -07:00
Brett Meyer 4ea068f2e9 HHH-8818 TcclSafeAggregatedClassLoader 2014-05-27 10:24:32 -04:00
Brett Meyer ab8dd7966a HHH-9145 simplified JDBC check 2014-05-23 17:53:34 -04:00
begmandev 3c776321db HHH-9145 Use JDBC Wrapper API for type checks 2014-05-23 17:53:31 -04:00
Lukasz Antoniak 64a27ccada HHH-9203 - ConcurrentNaturalIdCacheStatisticsImpl#getEntries() fails
with ClassCastException

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/naturalid/mutable/cached/CachedMutableNaturalIdStrictReadWriteTest.java
2014-05-23 17:53:29 -04:00
Lukasz Antoniak 478e2e26eb HHH-9201 - Evict cache instead of remove after transaction completion 2014-05-23 17:53:27 -04:00
Brett Meyer f4fe4108a9 HHH-8941 simplified the dialect function 2014-05-23 17:53:19 -04:00
dodgex d7347c3f48 [HHH-8941] add SQLFunctionTemplate for replace() to FirebirdDialect
Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/FirebirdDialect.java
2014-05-23 17:52:35 -04:00
Steve Ebersole d3f75ea0d9 HHH-9138 - CastFunctionTest failing on most databases
(cherry picked from commit c012c4d8de)
2014-05-22 11:03:51 -05:00
Steve Ebersole 14053b5928 HHH-9190 : consolidate contracts
(cherry picked from commit fbe72e7b64)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/query/spi/ParameterMetadataRecognizerInitiator.java
2014-05-22 09:49:34 -05:00
Gunnar Morling ac06799a55 HHH-9190 Introducing QueryPlanFactory service contract in order to make creation of native query plans customizable 2014-05-21 09:24:02 -05:00
Gunnar Morling ccdf6df3d6 HHH-9190 Introducing ParameterMetadataRecognizer contract in order to make retrieval fo parameter meta-data for native queries customizable 2014-05-21 09:24:02 -05:00
Lukasz Antoniak 07bc5ce877 HHH-9200 - Natural id cache statistics are not cleared 2014-05-19 13:57:18 -04:00
Steve Ebersole fdf2ae3df5 HHH-9154 - keywords as parameter names
gah... missed in initial commit for cherry-pick
2014-05-15 09:24:37 -05:00
Steve Ebersole 1ed895a373 HHH-9154 - keywords as parameter names
(cherry picked from commit 5aff092e2bd06bcfc18eb6eec9983b2f97237d64)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
2014-05-15 09:23:26 -05:00
Gail Badner eeeb4a884f HHH-9169 : SQLServer2012Dialect creates sequences starting from Long.MIN_VALUE 2014-05-14 15:05:59 -07:00
Gail Badner 32054d8603 HHH-9169 : SQLServer2012Dialect creates sequences starting from Long.MIN_VALUE 2014-05-13 23:59:53 -07:00
Gail Badner fcaa6e8780 HHH-9169 : SQLServer2012Dialect creates sequences starting from Long.MIN_VALUE 2014-05-13 22:42:28 -07:00
Gail Badner 56bcf3ae7f HHH-9154 : HQL Parsing: unexpected token ':' (test case) 2014-05-13 15:49:20 -07:00
Brett Meyer 656997a82c HHH-9174 cache SqlExceptionHelper reference 2014-05-09 12:35:06 -04:00
Brett Meyer 8a2a78ff33 HHH-9170 StatelessSession is accidentally 2LC enabled in some cases 2014-05-09 12:28:47 -04:00
Brett Meyer 5979046d05 HHH-9174 Increase performance
of SqlExceptionHelper#handleAndClearWarnings
Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/jdbc/spi/SqlExceptionHelper.java
2014-05-09 12:28:42 -04:00
Gail Badner 61d2c0c049 HHH-9171 : Orphan removal broken for new element added by merge that is removed by later merge (test case) 2014-05-07 16:16:10 -07:00
Brett Meyer 24b041986d Revert "HHH-3730 Compare both ids in isModified instead of an object and an id"
This reverts commit c7903392cd.
2014-04-21 09:45:01 -04:00
Guillaume Smet c7903392cd HHH-3730 Compare both ids in isModified instead of an object and an id 2014-04-21 08:49:37 -04:00
msulima ee8f26a4be HHH-9136 - DatabaseMetadata: NPE hides exception in finally block
- Protection against NPE in finally block
- Little formatting fixes
2014-04-21 08:43:32 -04:00
Steve Ebersole 025d2e2f44 HHH-8980 - Instance of super-class not found because of joined subclass reference is an inner join
(cherry picked from commit 651b23b173)
2014-04-08 16:41:09 -05:00
Brett Meyer f6399cd159 HHH-9107 throw WrongClassException if attempting to load incorrect
subclass from 2lc
2014-04-08 11:19:24 -04:00
Gail Badner d997265b26 HHH-9106 : Multiple detached representations of the same entity cannot be merged 2014-04-07 16:02:33 -07:00
Steve Ebersole cbc79c2d61 HHH-9100 - Improve CAST function support
(cherry picked from commit 137c2daf81)
2014-04-07 14:09:47 -05:00
Brett Meyer b861b4d29f HHH-9104 corrected BasicHibernateAnnotationsTest.testFilterOnCollection
test data cleanup
2014-04-07 14:18:22 -04:00
Brett Meyer 03586f3b7b HHH-9103 Dialect resolver should use a newer Oracle dialect for
Oracle12c
2014-04-07 11:09:40 -04:00
Steve Ebersole 92ae4ac417 HHH-9100 - Improve CAST function support
(cherry picked from commit 6ffbf8f3f3)
2014-04-03 13:07:30 -05:00
Steve Ebersole bbd2f1ae5b HHH-4700 - ClassCastException with parameter in CaseNode.getFirstThenNode()
(cherry picked from commit efa5dc2f6c)
2014-04-03 13:07:15 -05:00
Gail Badner decb673bdd HHH-9089 : Test case that shows annotations on fields in nested embeddable collection elements are ignored 2014-03-27 20:01:39 -07:00
Steve Ebersole 33aeb4f7c2 HHH-8923 - Reconsider closing of ServiceRegistry instances
Conflicts:
	hibernate-core/src/main/java/org/hibernate/boot/registry/StandardServiceRegistryBuilder.java
2014-03-26 12:28:06 -04:00
Brett Meyer 2c88c3998b HHH-8923 corrected test case 2014-03-26 09:33:10 -04:00
Steve Ebersole daf120b063 HHH-8923 - Reconsider closing of ServiceRegistry instances 2014-03-26 09:33:07 -04:00
Brett Meyer 1ec115c0d6 HHH-9078 correct OrderColumn indexes for inverse, extra lazy collections 2014-03-24 13:24:35 -04:00
Steve Ebersole 0e6ed807fb HHH-7971 - Enabling ENABLE_LAZY_LOAD_NO_TRANS results in trying to remove elements in collections
(cherry picked from commit 6f342358db)
2014-03-21 13:32:00 -05:00
Alexander-Dukhno 50c12d98b2 HHH-7971 create regression test case for lazy loading with property ENABLE_LAZY_LOAD_NO_TRANS = true
(cherry picked from commit 30205607ef)
2014-03-21 13:31:42 -05:00
Guillaume Smet a86acaf010 HHH-9072 Fix name property of LoadEventListener.RELOAD 2014-03-21 10:46:31 -05:00
Steve Ebersole c5bdec20b9 HHH-9071 - Proxy narrowing loses the initialized state of the original proxy 2014-03-21 09:59:43 -05:00
Guillaume Smet 2cf52cc7f1 HHH-9071 When an already initialized proxy is narrowed, initialize the new proxy 2014-03-21 09:59:43 -05:00
Steve Ebersole 156bebd8a1 HHH-8816 - Unable to instantiate AttributeConverter: root cause of exception hidden 2014-03-20 09:47:54 -05:00
Steve Ebersole d023c7c95c HHH-8816 - Unable to instantiate AttributeConverter: root cause of exception hidden 2014-03-20 09:33:00 -05:00
Steve Ebersole 1178e70034 HHH-1582 : post-commit listeners and failed transactions 2014-03-17 15:00:31 -05:00
Shawn Clowater c6ca3a4ef2 HHH-1582 - Added explicit PostCommit(Insert|Delete|Update)EvenLister interfaces to allow for separation of success/fail handling in post commit events.
Maintained current behavior by having the Entity actions call the existing API unless using one of the new interfaces.  Added 2 test cases, 1 using the new interfaces and 1 using the existing interfaces.
2014-03-17 15:00:31 -05:00
Brett Meyer ccdddf4682 HHH-9051 removing unnecessary System.out.println 2014-03-17 15:43:54 -04:00
Brett Meyer a9c0fd3243 HHH-9057 Correct ObjectNameNormalizer for mssql-style quoting 2014-03-17 15:12:43 -04:00
Brett Meyer 514f096061 HHH-9056
OneToOneTest.testPkOneToOneSelectStatementDoesNotGenerateExtraJoin fails
on oracle and postresql
2014-03-17 15:12:43 -04:00
Brett Meyer 7b349a2be8 HHH-9054 QuoteTest violates unique key constraint on some DBs 2014-03-17 15:12:43 -04:00
Brett Meyer 1f3ff4ba95 HHH-9052 ASTParserLoadingTest.testBooleanPredicate fails on most
databases
2014-03-17 15:12:42 -04:00
Gail Badner 63881f137e HHH-9002 : Fetch many-to-many order by 2014-03-14 15:57:05 -07:00
Libor Ondrusek 7ca36585a9 HHH-9040 Added halt on error support for scripts importing
Conflicts:
	hibernate-core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaExport.java
2014-03-12 17:04:17 -04:00
Brett Meyer 68918d29a3 HHH-8374 test case 2014-03-12 16:04:41 -04:00
sndyuk a689354db6 HHH-8374: Treat an entity wrapped by hibernate proxy equals a raw entity 2014-03-12 16:01:58 -04:00
Jorgen Rydenius 5a78f26d3b HHH-9037 Simplified debugging by improving the ClassCastException message from JavassistLazyInitializer. 2014-03-12 13:19:54 -04:00
Brett Meyer 8a4d736031 HHH-9034 ASTParserLoadingTest fails with postgresplus92 2014-03-12 12:52:54 -04:00
Brett Meyer 60f4e6cf28 HHH-9028 corrected Session#get for caching w/ polymorphism, improved
tests
2014-03-07 12:15:06 -05:00
Guillaume Smet 5d3ed89462 HHH-9028 Test case: when second level cache is enabled, the session returns the objects even if the class doesn't match 2014-03-07 10:56:16 -05:00
Brett Meyer 11e918f39b HHH-9024 correct TypedValue transients during de-serialization 2014-03-06 12:15:11 -05:00
Brett Meyer 69e25f5280 HHH-7072 correcting test failure 2014-03-04 17:19:03 -05:00
Brett Meyer 171e214458 HHH-7072 force recreation of element collections of components with all
nullable properties
2014-03-04 16:29:17 -05:00
Brett Meyer fab8b3a04a HHH-9017 correct HSQL pooled sequences 2014-03-04 09:55:40 -05:00
Brett Meyer f51fead739 HHH-9010: Revert "HHH-8961 Reduce allocation cost of org.hibernate.cache.spi.CacheKey instances"
This reverts commit f69e1a6b9f.
2014-02-28 14:00:26 -05:00
Sanne Grinovero ac16473511 HHH-9003 Avoid allocating arrays in most methods of ComponentType 2014-02-26 19:01:28 -05:00
Sanne Grinovero 64f6ea7d61 HHH-8950 Avoid repeated array allocation for sqlTypes 2014-02-26 19:01:26 -05:00
Brett Meyer b840a9edc8 HHH-8878 corrected id conflict in CoreMessageLogger 2014-02-26 18:55:09 -05:00
Sanne Grinovero 0f4886d63a HHH-8878 Remove some dead code 2014-02-26 18:51:32 -05:00
Sanne Grinovero 8826c30371 HHH-8878 Avoid hot allocation in PooledLoOptimizer
Conflicts:
	hibernate-core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java
2014-02-26 18:51:27 -05:00
Sanne Grinovero 5b2bd9aa48 HHH-8878 Fix logged message about PooledLoOptimizer being created
Conflicts:
	hibernate-core/src/main/java/org/hibernate/id/enhanced/OptimizerFactory.java
2014-02-26 18:47:52 -05:00
Sanne Grinovero 5475d9f964 HHH-9001 Unnecessary Stack object being allocated in
org.hibernate.engine.internal.Cascade

Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/internal/Cascade.java
2014-02-26 17:41:22 -05:00
Brett Meyer 84f6fde1b3 Revert "HHH-8945 introduced "hibernate.session.initial_capacity" to reduce"
This reverts commit 949adc92c2.
2014-02-26 17:22:05 -05:00
Brett Meyer 927c2031d1 Revert "HHH-8945 increased default map size"
This reverts commit d3d2c4c549.
2014-02-26 17:21:55 -05:00
Sanne Grinovero 34a45c5722 CheckStyle: Improve formatting of org.hibernate.event.spi.LoadEvent 2014-02-24 17:06:28 +00:00
Sanne Grinovero 49e28ee34e HHH-8984 Reintroduce the previous EntityEntry constructor as a deprecated delegate (for stable branches only) 2014-02-24 16:51:14 +00:00
Sanne Grinovero 70a7c7a821 HHH-8984 EntityEntry slimming: remove EntityMode and tenantId fields 2014-02-24 16:47:29 +00:00
Sanne Grinovero 5bdef580bd HHH-8991 Cache lookup of identifier Type and associated EntityPersister for each EntityType 2014-02-24 15:24:07 +00:00
Furkan Kamaci de927ce547 HHH-8989
Logic mismatch between AbstractQueryImpl and LimitHelper for setMaxResults(0) is fixed.
2014-02-20 14:50:23 -05:00
Brett Meyer a7b4d6dcb2 HHH-8983 log/clear Statement warnings on JdbcCoordinator#release 2014-02-18 22:08:47 -05:00
Sanne Grinovero 85e158d161 HHH-8977 Guess reasonable size for ArrayList and IdentitySet for Query perform 2014-02-18 15:01:28 -05:00
Brett Meyer d3d2c4c549 HHH-8945 increased default map size 2014-02-18 14:53:34 -05:00
Sanne Grinovero 11ab464d9b HHH-8954 Avoid LockOptions allocation in LoadEvent unless strictly required 2014-02-18 14:49:52 -05:00
Sanne Grinovero f69e1a6b9f HHH-8961 Reduce allocation cost of org.hibernate.cache.spi.CacheKey instances
Remove tenantId field from CacheKey: use a different type when tenants are needed.
Also remove the Type as we should be able to rely on the entityOrRoleName String.
2014-02-18 14:41:38 -05:00
Sanne Grinovero af5804a49c HHH-8939 Reduce contention on initialization of ColumnNameCache instances by loaders 2014-02-18 14:28:51 -05:00
Brett Meyer 949adc92c2 HHH-8945 introduced "hibernate.session.initial_capacity" to reduce
StatefulPersistenceContext's Map#resize calls
2014-02-12 13:27:11 -05:00
Andrej Golovnin bc8533366a HHH-8950 Avoid useless creation of an array in #getColumnSpan(Mapping). 2014-02-12 13:22:12 -05:00
Brett Meyer 61fb660907 HHH-8814 simplified the test a bit 2014-02-12 13:01:16 -05:00
Benoit GUERIN 6660bd8d37 HHH-8814 : test case 2014-02-12 13:01:14 -05:00
Benoit GUERIN 37c4e172af HHH-8814 : Sequence generators on HSQLDB starts on 1 by default 2014-02-12 13:00:57 -05:00
Brett Meyer fa707a7de7 HHH-8946 corrected bug in register(ResultSet, Statement), improved
javadoc
2014-02-11 15:16:23 -05:00
Sanne Grinovero f3da202b4c HHH-8946 Optimize JdbcCoordinatorImpl for CPU performance
- unnecessary HashMap lookups
- size HashMap allocations appropriately
- a leak of tracked statements
- complex logging logic
2014-02-11 14:54:17 -05:00
Sanne Grinovero 7f9dc27de9 HHH-8947 Refactor also the Alternative registry to use the new ConcurrentServiceBinding 2014-02-11 14:20:06 -05:00
Sanne Grinovero 324d5536e4 HHH-8947 Optimize performance of ServiceRegistry for intense lookup, small contents and almost no writes 2014-02-11 14:20:00 -05:00
Brett Meyer cb58f0bd68 HHH-3482 corrected imports 2014-02-10 17:25:09 -05:00
Brett Meyer b97a1b3749 HHH-3482 formatting 2014-02-10 17:10:37 -05:00
mukhanov b47dd338d2 HHH-3482 Fixed StatelessSession inserting bug + test 2014-02-10 17:10:35 -05:00
Brett Meyer 76aede601f HHH-8845 formatting 2014-02-10 16:40:46 -05:00
Paul Lysak 6329be56ff HHH-8845 - More informative error message 2014-02-10 16:40:44 -05:00
akotlyarov 9f215c8475 HHH-7205: Added catching exception for executing session.get when session cache contains proxy for non-existing object 2014-02-10 16:33:34 -05:00
Brett Meyer acd7c3046f HHH-7205 test assertion 2014-02-10 16:33:32 -05:00
akotlyarov 2ecd96158e HHH-7205: Added test to show bug exists when execute session.get after session.load for not-existing entity 2014-02-10 16:33:29 -05:00
Thomas Jones-Low 4656176ea9 HHH-8900 annotations OneToOne test fail with some sequence supporting
dialects

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/annotations/onetoone/OneToOneTest.java
2014-02-10 12:11:49 -05:00
Brett Meyer 0fa057c150 HHH-8921 in-memory value generation (INSERT) only works if
hibernate.id.new_generator_mappings is enabled
2014-02-07 11:50:46 -05:00
Brett Meyer 29cf10b3e2 HHH-8942 log level checks should not be static 2014-02-07 11:16:24 -05:00
Sanne Grinovero 3e40bfab12 HHH-8942 Micro polishing in hot method of TransactionCoordinatorImpl
Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/transaction/internal/TransactionCoordinatorImpl.java
2014-02-07 11:10:56 -05:00
Brett Meyer 629b653cc7 HHH-8922 ClassLoaderServiceImpl#getResources should use LinkedHashSet to
preserve ordering
2014-02-07 10:03:39 -05:00
Brett Meyer bbe4714196 HHH-8942 reorganized TransactionCoordinatorImpl#attemptToRegisterJtaSync
to further reduce log level checks
2014-02-07 09:57:16 -05:00
Brett Meyer 687682a620 HHH-8942 reduced logging hits in TransactionCoordinatorImpl 2014-02-06 14:05:13 -05:00
Brett Meyer 4fd5bc25b9 HHH-8747 evictQueryRegions should evict the default region 2014-02-04 12:32:16 -05:00
Brett Meyer 2a55763e40 HHH-8822 ValueHolder fields need to be transient if owned by a
Serializable class

Conflicts:
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataImpl.java
2014-01-30 11:52:27 -05:00
Steve Ebersole 556e31fb2d HHH-8853 - Tomcat jdbc-pool interceptor exception
(cherry picked from commit 86d5ab0d818b8029cc5e0310ae5c64338d0f47ef)
2014-01-29 07:50:43 -06:00
Brett Meyer 99e6883d1c HHH-8903 bi-directional fetches in entity graphs 2014-01-28 16:44:05 -05:00
Lukasz Antoniak 522ce1d974 HHH-8243 HHH-8329 - Avoid flushing in validity audit strategy
(cherry picked from commit f0bd12f823)
2014-01-28 13:36:48 -06:00
Brett Meyer d59387cd01 HHH-8864 count distinct tuples for postgres and h2 2014-01-22 15:18:20 -05:00
Jesse Sightler dcad957f19 HHH-8884 : Made this only remove "and " and " and"
Made this only remove "and " and " and" as otherwise tables named "android" end up being queried as "roid".
(cherry picked from commit 84b032da1d)
2014-01-21 19:04:18 -06:00
Brett Meyer 0765dcee54 HHH-2988 test case 2014-01-20 20:03:00 -05:00
davidmuzik 01a2ca7ec1 HHH-2988 Update UnionSubclassEntityPersister column quoting 2014-01-20 20:02:58 -05:00
Henrik Hoffmann 61c66f1d2c HHH-8850 - fixed ex. when calling addScalar to NamedSQLQuery
changed list instanciation from java.util.Arrays.ArrayList to
java.util.ArrayList when creating SQLQueryImpl from an
NamedSQLQueryDefinition.

added testcase
2014-01-16 01:25:33 -05:00
Brett Meyer 7c69c7fb95 HHH-8855 HHH-8640 corrected EntityGraph loadplan strategy, support inheritance in SubGraphs 2014-01-16 01:05:01 -05:00
Brett Meyer cd964a9aca HHH-8855 corrected EntityGraph loadplan strategy, testcase cleanup 2014-01-14 19:40:22 -05:00
Steve Ebersole 151719b764 HHH-8812 - JPAOverriddenAnnotationReader and @Convert annotations
(cherry picked from commit 56e6db38fc)
2014-01-14 18:30:28 -06:00
Brett Meyer bb267297c1 HHH-8863 correct StatisticalLoggingSessionEventListener partial flush
timing
2014-01-14 14:36:36 -05:00
Brett Meyer 78a62acc2d HHH-5289 remove unnecessary security checks in property accessors 2014-01-10 16:06:50 -05:00
Brett Meyer 5963b6a4be HHH-2188 Query metadata gives NPE for polymorphic queries 2014-01-10 14:13:24 -05:00
Brett Meyer 9a9a95e104 HHH-8638 global quoting breaks UC on FK
Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/annotations/quote/User.java
2014-01-10 13:15:37 -05:00
Steve Ebersole 458b2dc772 HHH-8842 - Hibernate can't handle JodaTime Converters result (possible bug)
(cherry picked from commit 6fb5a899bd)
2014-01-10 09:37:26 -06:00
Brett Meyer c4c33943f2 HHH-8811 collection read causes open cursors 2014-01-09 14:20:11 -05:00