Commit Graph

2290 Commits

Author SHA1 Message Date
Brett Meyer 15247a6a59 Revert "HHH-8945 introduced "hibernate.session.initial_capacity" to reduce"
This reverts commit 284e219fd3.
2014-02-26 17:22:43 -05:00
Brett Meyer 03c086ee6f Revert "HHH-8945 increased default map size"
This reverts commit 31a4b22e44.
2014-02-26 17:22:30 -05:00
Sanne Grinovero a373505a1c CheckStyle: Improve formatting of org.hibernate.event.spi.LoadEvent 2014-02-24 17:06:04 +00:00
Sanne Grinovero 86ab291257 HHH-8984 EntityEntry slimming: remove EntityMode and tenantId fields 2014-02-24 17:00:59 +00:00
Sanne Grinovero f0bf53e40e HHH-8991 Cache lookup of identifier Type and associated EntityPersister for each EntityType 2014-02-24 16:08:51 +00:00
Furkan Kamaci 586f9c2a55 HHH-8989
Logic mismatch between AbstractQueryImpl and LimitHelper for setMaxResults(0) is fixed.
2014-02-20 14:49:52 -05:00
Brett Meyer 2961f7df68 HHH-8983 log/clear Statement warnings on JdbcCoordinator#release 2014-02-18 22:08:32 -05:00
Sanne Grinovero 53f7528d71 HHH-8977 Guess reasonable size for ArrayList and IdentitySet for Query perform 2014-02-18 15:03:17 -05:00
Brett Meyer 31a4b22e44 HHH-8945 increased default map size 2014-02-18 14:54:51 -05:00
Sanne Grinovero 7dc8d9cc48 HHH-8954 Avoid LockOptions allocation in LoadEvent unless strictly required 2014-02-18 14:50:13 -05:00
Sanne Grinovero 539866b773 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:46 -05:00
Sanne Grinovero 0f0a95e2b8 HHH-8939 Reduce contention on initialization of ColumnNameCache instances by loaders 2014-02-18 14:29:14 -05:00
Steve Ebersole 758d635ca2 HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD 2014-02-18 12:03:51 -06:00
Steve Ebersole ebcd0d9cff HHH-8956 - TLC for annotation pre-processor 2014-02-17 20:55:34 -06:00
Steve Ebersole 3bb937b83f HHH-8962 - Create a set of light reflection classes - initial work on classmate intg 2014-02-17 18:34:53 -06:00
Brett Meyer e84ed199e3 HHH-8737 throw MappingException for constraint with non-existent
column
2014-02-17 15:03:37 -05:00
Steve Ebersole ea4812b046 HHH-8962 - Create a set of light reflection classes - initial annotation support 2014-02-17 12:42:50 -06:00
Steve Ebersole 351039553f HHH-8962 - Create a set of light reflection classes - hook in + suggestions from hardy and gunnar 2014-02-15 10:52:30 -06:00
Brett Meyer 993de9060d HHH-8969 corrected test failures 2014-02-14 13:52:37 -05:00
Brett Meyer 2f636e4a52 HHH-8827 corrected @SortNatural and @SortComparator, test case 2014-02-14 13:30:58 -05:00
Brett Meyer ff12d5cdf1 HHH-8969 removed deprecated annotations 2014-02-14 13:30:53 -05:00
Brett Meyer b5553a2485 HHH-8862 bind @CollectionTable @ForeignKey explicit name 2014-02-14 11:02:44 -05:00
Brett Meyer 357fd11f2f HHH-8737 log warnings if duplicate constraints/indexes would have been
created
2014-02-14 09:34:46 -05:00
Brett Meyer fcb3e40bd8 HHH-8737 handle permutations of conflicting indexes and unique keys, set
explicit FK names, corrected default annotation values, initial unit
test
2014-02-14 09:34:41 -05:00
Brett Meyer f652d87277 HHH-8737 pulled applyConstraints/dropConstraints into a new
ConstraintDelegate, created UK exporters for DB2 and Informix
2014-02-14 09:33:46 -05:00
Brett Meyer 8ca6ff21fa HHH-8737 deprecated UniqueDelegate, created StandardUniqueKeyExporter,
stripped SQL generation from metamodel.spi.relational constraints,
created applyConstraints/dropConstraints on Dialect
2014-02-14 09:33:41 -05:00
Steve Ebersole 4b945fae4c HHH-8966 - Redo the MetadataBuilder process 2014-02-14 07:10:40 -06:00
Steve Ebersole 50ff90b3b4 HHH-8962 - Create a set of light reflection classes - modifier support 2014-02-13 07:17:03 -06:00
Steve Ebersole b2ab350866 HHH-8962 - Create a set of light reflection classes 2014-02-12 21:29:57 -06:00
Steve Ebersole c5cbf662b4 HHH-8962 - Create a set of light reflection classes 2014-02-12 15:34:39 -06:00
Hardy Ferentschik 83e9ceb429 HHH-8960 Re-enabling Bean Validation tests 2014-02-12 21:22:07 +01:00
Hardy Ferentschik 77b497be98 HHH-8960 Re-introducing a Properties instance variable and apply it when the session factory is built. This allows for Configuration#getProperties to return writable properties
Re-enabling tests which were based on the change in Configuration
2014-02-12 21:22:06 +01:00
Hardy Ferentschik d9a4e094a4 HHH-8960 Removal of old svn tags in test code 2014-02-12 21:22:06 +01:00
Hardy Ferentschik bf611d4e18 HHH-8960 First cut of re-enabled BV integration 2014-02-12 21:22:06 +01:00
Hardy Ferentschik c46dbebc5b HHH-8960 Formatting and fixing order of expected and actual values in some assertEquals statements 2014-02-12 21:22:05 +01:00
Brett Meyer 284e219fd3 HHH-8945 introduced "hibernate.session.initial_capacity" to reduce
StatefulPersistenceContext's Map#resize calls
2014-02-12 13:26:57 -05:00
Andrej Golovnin fd27956a6d HHH-8950 Avoid useless creation of an array in #getColumnSpan(Mapping). 2014-02-12 13:21:26 -05:00
Brett Meyer b09ff8af0a HHH-8814 simplified the test a bit 2014-02-12 13:00:42 -05:00
Benoit GUERIN 7044fc4cca HHH-8814 : test case 2014-02-12 12:48:19 -05:00
Benoit GUERIN 7f49298169 HHH-8814 : Sequence generators on HSQLDB starts on 1 by default 2014-02-12 12:48:05 -05:00
Steve Ebersole 2807578a7c HHH-8956 - TLC for annotation pre-processor 2014-02-12 08:56:44 -06:00
Gail Badner bd17dab1b0 HHH-8959 : Change values of type ValueHolder<Class> to JavaClassReference 2014-02-12 02:15:06 -08:00
Gail Badner 79379d598e HHH-8959 : Change values of type ValueHolder<Class> to JavaClassReference 2014-02-12 01:58:15 -08:00
Brett Meyer f84cd309c1 HHH-8946 corrected bug in register(ResultSet, Statement), improved
javadoc
2014-02-11 15:16:39 -05:00
Sanne Grinovero c7bf1db440 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 15:16:37 -05:00
Sanne Grinovero a026346eda HHH-8947 Refactor also the Alternative registry to use the new ConcurrentServiceBinding 2014-02-11 14:32:13 -05:00
Sanne Grinovero fd5855239c HHH-8947 Optimize performance of ServiceRegistry for intense lookup, small contents and almost no writes 2014-02-11 14:32:10 -05:00
Steve Ebersole 9bbcdb6d15 HHH-8897 - Integrate org.hibernate.metamodel from metamodel branch into master 2014-02-11 08:03:06 -06:00
Steve Ebersole 31cf1a9ab6 HHH-8897 - Integrate org.hibernate.metamodel from metamodel branch into master 2014-02-10 17:30:40 -06:00
Brett Meyer 40a1534163 HHH-3482 formatting 2014-02-10 17:10:26 -05:00
mukhanov 5b61a3b46e HHH-3482 Fixed StatelessSession inserting bug + test 2014-02-10 17:10:13 -05:00
Brett Meyer 30cfb41174 HHH-8845 formatting 2014-02-10 16:40:21 -05:00
Paul Lysak ef15ef1e9d HHH-8845 - More informative error message 2014-02-10 16:38:44 -05:00
akotlyarov c12963ae54 HHH-7205: Added catching exception for executing session.get when session cache contains proxy for non-existing object 2014-02-10 16:34:01 -05:00
Brett Meyer 4bb52196f1 HHH-7205 test assertion 2014-02-10 16:34:01 -05:00
akotlyarov 58e6e47ea4 HHH-7205: Added test to show bug exists when execute session.get after session.load for not-existing entity 2014-02-10 16:34:01 -05:00
Steve Ebersole c26a3fd732 log possible SF leaks in test suite 2014-02-10 12:33:08 -06:00
Thomas Jones-Low 757c067165 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:10:34 -05:00
Steve Ebersole b00ed51536 core tests no longer failing 2014-02-10 03:50:15 -06:00
Steve Ebersole 5416b15ef7 HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD 2014-02-10 01:20:31 -06:00
Steve Ebersole 056024a8b6 HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD;
HHH-8894 - Use an "upgrade" approach to validate and bind (JAXB) mapping XML - hbm-to-orm XSLT
2014-02-10 01:00:20 -06:00
Steve Ebersole e8fdeb258f HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD;
HHH-8894 - Use an "upgrade" approach to validate and bind (JAXB) mapping XML - hbm-to-orm XSLT
2014-02-08 15:57:27 -06:00
Steve Ebersole 24b377a774 HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD;
HHH-8894 - Use an "upgrade" approach to validate and bind (JAXB) mapping XML - hbm-to-orm XSLT
2014-02-07 16:59:05 -06:00
Brett Meyer 8fe16b3519 HHH-8921 in-memory value generation (INSERT) only works if
hibernate.id.new_generator_mappings is enabled
2014-02-07 11:50:27 -05:00
Brett Meyer 66392f19d0 HHH-8942 log level checks should not be static 2014-02-07 11:15:48 -05:00
Sanne Grinovero 9b92856502 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:06:08 -05:00
Brett Meyer c8116f5184 HHH-8922 ClassLoaderServiceImpl#getResources should use LinkedHashSet to
preserve ordering
2014-02-07 10:03:24 -05:00
Brett Meyer 2d964f1b5f HHH-8942 reorganized TransactionCoordinatorImpl#attemptToRegisterJtaSync
to further reduce log level checks
2014-02-07 09:57:06 -05:00
Brett Meyer dc0c207256 HHH-8942 reduced logging hits in TransactionCoordinatorImpl 2014-02-06 14:04:47 -05:00
Gail Badner 1a4b43720c HHH-8897 : Add support for key-many-to-one on-delete="cascade" 2014-02-05 16:18:15 -08:00
Steve Ebersole 76a2fc4b0f HHH-8934 - protect dumping manually built jandex index using isTraceEnabled 2014-02-05 17:09:42 -06:00
Steve Ebersole 6bdbde9734 HHH-8934 - ignore missing package-info.class files during jandex indexing 2014-02-05 17:03:35 -06:00
Steve Ebersole ee51f1a758 HHH-8934 - MetadataSources needs to index (Jandex) classes referenced in xml files (exclude hbm.xml files) 2014-02-05 16:28:37 -06:00
Steve Ebersole f8020670d0 HHH-8934 - MetadataSources needs to index (Jandex) classes referenced in xml files 2014-02-05 15:40:01 -06:00
Steve Ebersole 7fdf40c693 HHH-8894 - Use an "upgrade" approach to validate and bind (JAXB) mapping XML 2014-02-05 09:09:03 -06:00
Steve Ebersole 79368d2c39 HHH-7164 - Finish out SessionFactoryBuilder api;
HHH-8934 - MetadataSources needs to index (Jandex) classes referenced in xml files
2014-02-05 00:29:00 -06:00
Brett Meyer a2971e4f75 HHH-8935 MappedSuperclass can extend an Entity 2014-02-05 00:36:23 -05:00
Brett Meyer f8b18a31bf HHH-8747 evictQueryRegions should evict the default region 2014-02-04 12:03:59 -05:00
Brett Meyer 5a570ad072 HHH-8897 removed @FailureExpectedWithNewMetamodel on passing tests, removed isDefaultUseNewMetamodel() 2014-02-03 17:47:54 -05:00
Gail Badner 83becf4e09 HHH-8897 : Fix failures due to calling EntityType.determineAssociatedEntityClass() before persisters are bound 2014-02-03 12:18:27 -08:00
Steve Ebersole 70e965d750 HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD;
HHH-7556 - Clean up packages;
HHH-7164 - Finish out SessionFactoryBuilder api
2014-02-01 11:37:21 -06:00
Brett Meyer 535659d61f HHH-8822 ValueHolder fields need to be transient if owned by a
Serializable class
2014-01-30 11:21:12 -05:00
Gail Badner 51b9e31f23 HHH-8897 : Add @FailureExpectedWithNewMetamodel for integration failures 2014-01-29 16:17:33 -08:00
Gail Badner f19c8e995a HHH-8897 : Integrate org.hibernate.metamodel from metamodel branch into master 2014-01-29 11:59:19 -08:00
Gail Badner 513f8ca869 HHH-8897 : Integrate org.hibernate.metamodel from metamodel branch into master 2014-01-29 11:59:18 -08:00
Steve Ebersole 1a87adca08 HHH-8853 - Tomcat jdbc-pool interceptor exception 2014-01-29 13:14:20 -06:00
Brett Meyer f815f70f51 HHH-8903 bi-directional fetches in entity graphs 2014-01-28 16:43:52 -05:00
Lukasz Antoniak f0bd12f823 HHH-8243 HHH-8329 - Avoid flushing in validity audit strategy 2014-01-28 12:47:59 -06:00
Steve Ebersole db677c7d68 HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD 2014-01-28 01:12:09 -06:00
Steve Ebersole 90b8f9ef38 HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD 2014-01-27 18:49:11 -06:00
Steve Ebersole b57a6e3cff HHH-8893 - Develop Hibernate mapping XSD extending the JPA mapping (orm) XSD 2014-01-27 17:45:16 -06:00
Brett Meyer 7e203b86f9 HHH-8864 count distinct tuples for postgres and h2 2014-01-22 15:18:11 -05:00
Jesse Sightler 84b032da1d 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".
2014-01-21 19:01:24 -06:00
Brett Meyer 691c8e239a HHH-2988 test case 2014-01-20 20:02:49 -05:00
davidmuzik 08c23d435c HHH-2988 Update UnionSubclassEntityPersister column quoting 2014-01-20 20:02:34 -05:00
Henrik Hoffmann 14be51b23f 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:23:29 -05:00
Brett Meyer 1f81329fd8 HHH-8855 HHH-8640 corrected EntityGraph loadplan strategy, support inheritance in SubGraphs 2014-01-16 01:04:29 -05:00
Brett Meyer 76e0e42796 HHH-8855 corrected EntityGraph loadplan strategy, testcase cleanup 2014-01-14 19:39:37 -05:00
Steve Ebersole 56e6db38fc HHH-8812 - JPAOverriddenAnnotationReader and @Convert annotations 2014-01-14 18:29:48 -06:00
Brett Meyer 69025e5c01 HHH-8863 correct StatisticalLoggingSessionEventListener partial flush
timing
2014-01-14 14:30:05 -05:00
Brett Meyer d928299e98 HHH-8862 test case 2014-01-14 11:42:47 -05:00
Brett Meyer f58968c0a2 HHH-5289 remove unnecessary security checks in property accessors 2014-01-10 16:06:44 -05:00
Brett Meyer 756b42ec6e HHH-2188 Query metadata gives NPE for polymorphic queries 2014-01-10 15:06:37 -05:00
Brett Meyer eb7af53a51 HHH-8638 global quoting breaks UC on FK
Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/annotations/quote/User.java
2014-01-10 15:06:12 -05:00
Brett Meyer a50b7de0f8 HHH-8811 collection read causes open cursors 2014-01-10 15:04:54 -05:00
Brett Meyer 91858995f8 HHH-8831 changed exception type, formatting 2014-01-10 15:03:31 -05:00
Christian Beikov 509da750fe HHH-8831 improved exception message
When having @JoinColumn in a @CollectionTable that do not point to valid columns, the message can be really confusing. These new lines will actually enrich the exception which is thrown that the problem appeared on a specific property of a specific class.

Please include this, since it is not always clear what the actual problem is with a mapping when an exception occurs.
2014-01-10 15:03:22 -05:00
Lukasz Antoniak 553f65a360 HHH-8699 - Multiselect with boolean predicate 2014-01-10 14:56:44 -05:00
Brett Meyer de93d0e80f HHH-3051 corrected CustomLoader returnTypes (different approach) 2014-01-10 14:53:47 -05:00
Brett Meyer 8c3db4b76f HHH-3051 corrected Loader returnTypes 2014-01-10 14:53:39 -05:00
Brett Meyer 17634bc9e5 HHH-2298 WARN if using build-in conn pool 2014-01-10 14:53:04 -05:00
Brett Meyer 781536c9d7 HHH-8790 improved Filter javadoc 2014-01-10 14:52:31 -05:00
Brett Meyer e626729adf HHH-8790 add "escape" keyword to Template 2014-01-10 14:52:22 -05:00
Steve Ebersole 6fb5a899bd HHH-8842 - Hibernate can't handle JodaTime Converters result (possible bug) 2014-01-10 09:35:27 -06:00
Gail Badner 90a08ec3a2 HHH-8774 : Add Javadoc for load plans 2013-12-16 10:50:22 -08:00
Gail Badner eb5f605068 HHH-8774 : Add Javadoc for load plans 2013-12-13 15:09:17 -08:00
Gail Badner c901e5f951 HHH-8774 : Add Javadoc for load plans 2013-12-13 15:09:17 -08:00
Steve Ebersole 26820e8a77 HHH-6911 - Write DiscriminatorValue to DiscriminatorColumn when combined with InheritanceType#JOINED 2013-12-13 10:40:36 -06:00
Steve Ebersole b70148a85a HHH-6911 - Write DiscriminatorValue to DiscriminatorColumn when combined with InheritanceType#JOINED 2013-12-13 00:57:47 -06:00
Steve Ebersole 5329bba1ea HHH-6911 - Write DiscriminatorValue to DiscriminatorColumn when combined with InheritanceType#JOINED 2013-12-13 00:57:47 -06:00
Brett Meyer e64e89b2cc HHH-8794 cleanup and formatting 2013-12-12 16:21:31 -05:00
Matus Zamborsky a2fcfc602b HHH-8794 Support for @OrderBy without specifying attribute 2013-12-12 15:56:32 -05:00
Brett Meyer 4627f7f489 HHH-7630 allow joined subclass ordering to explicitly reference natural 2013-12-11 13:49:04 -05:00
Brett Meyer 8e2c9c7faf HHH-8765 corrected hbm2ddl for turkish locale 2013-12-10 20:55:13 -05:00
Brett Meyer 637c8b4b08 HHH-8783 corrected logic 2013-12-10 20:33:45 -05:00
Brett Meyer e1366904fa HHH-3604 add MySQL engine to table generators 2013-12-09 18:08:19 -05:00
Brett Meyer 1811b48f72 HHH-8783 use JPA @JoinColumn(@ForeignKey(name=...)) for constraint name 2013-12-09 15:14:56 -05:00
Brett Meyer 46aeb988c8 HHH-8784 @Generated(ALWAYS) w/ DDL default not inserting 2013-12-09 14:19:10 -05:00
Brett Meyer b3219affcd HHH-4638 add Firebird to StandardDialectResolver 2013-12-06 12:12:30 -05:00
Gail Badner cb8d6c4e06 HHH-8750 : Move load plan implementations from spi to internal 2013-12-03 15:52:51 -08:00
Gail Badner 850578c1e8 HHH-8744 : Add Javadoc for load plans 2013-12-03 15:52:51 -08:00
Gail Badner c9bc9e7512 HHH-8750 : Move load plan implementations from spi to internal 2013-12-03 15:52:51 -08:00
Gail Badner a2c543e088 HHH-8750 : Move load plan implementations from spi to internal 2013-12-03 15:52:50 -08:00
Gail Badner ebedc75e0f HHH-8750 : Move load plan implementations from spi to internal 2013-12-03 15:52:50 -08:00
Gail Badner c188767510 HHH-8750 : Move load plan implementations from spi to internal 2013-12-03 15:52:50 -08:00
Gail Badner 14a9d776b1 HHH-8744 : Add Javadoc for load plans 2013-12-03 15:52:50 -08:00
Steve Ebersole 055a750a53 HHH-8733 - General build cleanup 2013-12-02 20:57:57 -06:00
Brett Meyer e0d6cdc0f7 HHH-8760 improve EntityGraph JPQL query hint test 2013-12-02 12:43:45 -05:00
Brett Meyer d430846076 HHH-5065 improved exception message on Configuration#getRootClassMapping 2013-11-27 21:20:39 -05:00
Brett Meyer bb53193a75 HHH-8749 Error flushing with a many-to-many Map defined with
unique="true" and cascading orphan delete
2013-11-27 18:06:06 -05:00
Steve Ebersole 14d0116af2 Revert "HHH-8733 - General build cleanup - hibernate-testing"
This reverts commit bc2855b323.
2013-11-26 17:48:25 -06:00
Steve Ebersole 0252895354 Revert "HHH-8733 - General build cleanup - hibernate-testing"
This reverts commit b692fbc307.
2013-11-26 17:47:53 -06:00
Steve Ebersole 5f0927fed6 Revert "HHH-8733 - General build cleanup - hibernate-testing"
This reverts commit 2a9a17c79c.
2013-11-26 17:47:34 -06:00
Steve Ebersole 2a9a17c79c HHH-8733 - General build cleanup - hibernate-testing 2013-11-26 16:38:15 -06:00
Steve Ebersole b692fbc307 HHH-8733 - General build cleanup - hibernate-testing 2013-11-26 16:37:33 -06:00
Brett Meyer 88c811bead HHH-8748 replace Javassist's ProxyObject with Proxy 2013-11-26 14:58:46 -05:00
Steve Ebersole bc2855b323 HHH-8733 - General build cleanup - hibernate-testing 2013-11-26 13:53:18 -06:00
Steve Ebersole d1023821b1 HHH-8733 - General build cleanup 2013-11-26 13:04:55 -05:00
Brett Meyer f24e470181 HHH-8341 JtaTransaction logs excessive HHH000426 warning 2013-11-25 13:35:25 -05:00
Brett Meyer 1566586fbf HHH-8743 EntityReferenceInitializerImpl#resolveEntityKey throws
Exception in case of entityKey != null
2013-11-25 10:24:13 -05:00