Commit Graph

2611 Commits

Author SHA1 Message Date
David Mansfield 90fdca9053 HHH-3646 - throw a better exception when criteria is placed directly on component
In the CriteriaQueryTranslator, we process the path given by
a SubCriteria object looking for the entity name for the property. If
the SubCriteria was mistakenly created on a component type, we will exit
the loop using the owning entity, and will eventually end up failing
(throwing an exception) trying to lookup up the restricted property
against the entity, instead of against the component. Fix this by
throwing a more informative exception, and modify the documentation to
be explicit about how to do this properly.
2011-03-30 12:23:20 -05:00
David Mansfield 69b09dfcd2 HHH-3646 - don't append spurious comma in SQL select fragment
In the JoinWalker, we assemble an SQL select list fragment
from a list of Joinables. In the existing code, we see it's
possible for the selectFragment generated by a joinable to be empty.
However if the LAST joinable generates an empty fragment, we put
a spurious comma into the fragment. Fix this by only prepending a
comma when necessary.
2011-03-30 12:23:20 -05:00
David Mansfield 9f311a4698 HHH-3646 - implement Criteria API querying of collection-of-component and collection-of-scalar
The general approach is:

* create an interface called the CriteriaInfoProvider which abstracts
  the operations that are different for the different types of Criteria
  targets.
* change the getPathEntityName method to be a factory method for
  creating the proper implementation of the interface
* change the rest of CriteriaQueryTranslator to use the interface
  instead of using the previous entity-only implementation
* implementations of the interface exist for
  Entity: this implements the same code as currently exists
  ComponentCollection: for collection-of-component
  ScalarCollection: for collection-of-value
  Component: for components
* update the logic in CriteriaJoinWalker which has to be very careful
  about how it works since the walker walks certain property paths twice.
2011-03-30 12:23:20 -05:00
David Mansfield 4ddaaa1deb HHH-3646 - make SessionFactoryHelper::getCollectionPropertyMapping public - it will be used later 2011-03-30 12:23:20 -05:00
David Mansfield b8230bd07d HHH-3646 - implement a test case for query collection-of-component 2011-03-30 12:23:20 -05:00
David Mansfield 64b73d6301 HHH-3646 - implement a test case for query collection-of-value 2011-03-30 12:23:20 -05:00
adamw e0431adca9 HHH-6023: a citation pointing to the Envers User Guide in "take it further" 2011-03-30 19:01:19 +02:00
Steve Ebersole d104f28a59 HHH-5348 - support for TypedQuery jpaql/hql "scalar" queries 2011-03-30 11:37:12 -05:00
adamw 7501fdea53 HHH-6023: "take it further" for Envers 2011-03-30 17:59:48 +02:00
Strong Liu 801e59e606 HHH-6058 - Error in mapping file in Event.hbm.xml file for documentation in download 2011-03-30 19:03:05 +08:00
Strong Liu 8a7d14203d HHH-6057 documentation, hibernate.cfg.xml references wrong hbm path 2011-03-30 18:58:08 +08:00
David Mansfield 05f9bdcbb0 clear stats before running to ensure accurate test results 2011-03-29 15:26:26 -05:00
David Mansfield 7058cb048f remove state after running to avoid failure later 2011-03-29 15:26:26 -05:00
Steve Ebersole ba71fe0132 HHH-6036 - integration documentation generation 2011-03-29 15:14:09 -05:00
Steve Ebersole ef3830b7ee HHH-5913 - Implement set of event listeners as a service 2011-03-28 16:55:23 -05:00
Steve Ebersole a485bc6349 Minor changes to buildSrc build script 2011-03-28 13:21:57 -05:00
Steve Ebersole 339faabb14 HHH-6052 - Make statistics a service 2011-03-28 12:41:30 -05:00
Galder Zamarreño 634d9186a5 HHH-6015 - Fix classloader issue 2011-03-28 17:26:58 +02:00
Emmanuel Bernard 2e0f128cbc HHH-5947 Migrate tests to JUnit 4 infra 2011-03-28 15:47:44 +02:00
Manuel Bernhardt 93569a6c82 HHH-5947 Clarifying the documentation 2011-03-28 15:13:10 +02:00
Manuel Bernhardt cf9391f40d HHH-5947 Clarifying the documentation 2011-03-28 15:13:09 +02:00
Manuel Bernhardt 9d697660f6 HHH-5947: 'Fix' that at least improves the error message 2011-03-28 15:13:09 +02:00
Manuel Bernhardt 928354827a HHH-5947: Test case 2011-03-28 15:13:09 +02:00
Steve Ebersole 753b95729a HHH-5913 - Implement set of event listeners as a service 2011-03-28 08:03:11 -05:00
Steve Ebersole 6a180aaa1f HHH-5913 - Implement set of event listeners as a service 2011-03-28 07:55:45 -05:00
Steve Ebersole 2f04cbffe6 HHH-5913 - Implement set of event listeners as a service 2011-03-27 14:35:01 -05:00
Steve Ebersole e3a0525fb1 HHH-5913 - Implement set of event listeners as a service 2011-03-27 14:07:23 -05:00
Steve Ebersole 42c609cfdd HHH-5913 - Implement set of event listeners as a service 2011-03-27 11:45:18 -05:00
Steve Ebersole c28b553f21 HHH-5913 - Implement set of event listeners as a service 2011-03-27 11:45:18 -05:00
Steve Ebersole e8ebe8e396 HHH-5913 - Implement set of event listeners as a service 2011-03-27 11:45:18 -05:00
Steve Ebersole 5adf2960c2 HHH-5913 - Implement set of event listeners as a service 2011-03-27 11:45:18 -05:00
Steve Ebersole 478e10ae3a HHH-5562 - Improve how event listeners are handled and introduce a service pattern for integrators to leverage 2011-03-27 10:43:38 -05:00
Steve Ebersole 7cba21dcd9 HHH-5562 - Improve how event listeners are handled and introduce a service pattern for integrators to leverage 2011-03-27 10:39:38 -05:00
Steve Ebersole 47abaf12fa HHH-5697 - Support for multi-tenancy 2011-03-26 10:50:18 -05:00
Steve Ebersole fe8c7183d1 HHH-5697 - Support for multi-tenancy 2011-03-26 09:11:33 -05:00
Steve Ebersole d42d52b8f1 HHH-5697 - Support for multi-tenancy 2011-03-25 18:46:20 -05:00
Steve Ebersole 3ff0288da5 HHH-5697 - Support for multi-tenancy 2011-03-25 18:31:04 -05:00
Steve Ebersole 98877a3b28 HHH-6053 - Create an interface for centralizing the contract that is shared between Session and StatelessSession 2011-03-25 12:44:32 -05:00
Steve Ebersole d4783bdaeb HHH-6051 - Create a SessionFactory scoped ServiceRegistry 2011-03-25 10:54:18 -05:00
Steve Ebersole 7ece2ee52f HHH-5942 - Migrate to JUnit 4 2011-03-25 10:54:03 -05:00
Steve Ebersole 815baf4348 HHH-6051 - Create a sessionfactory scoped ServiceRegistry 2011-03-24 22:18:38 -05:00
Steve Ebersole 731d00fd6d HHH-6047 - allow nesting of ServiceRegistry 2011-03-24 14:38:58 -05:00
JPAV 4d3ad4b4c8 Merge branch 'master' of git://github.com/hibernate/hibernate-core 2011-03-24 13:12:56 -05:00
JPAV f5a3e38cd7 HHH-6050 Changed single compile-time dependency to slf4j in parent build file to testRuntime 2011-03-24 13:12:51 -05:00
Steve Ebersole 64c38a0726 HHH-2680 - Blobs not updated on Session.merge() for detached instances 2011-03-24 08:15:10 -05:00
Strong Liu d55e33c919 HHH-6036 - ignore publican temp output directory 2011-03-24 16:10:21 +08:00
Strong Liu aa24c3a0c5 HHH-6036 Doc integration 2011-03-24 15:48:07 +08:00
Steve Ebersole 97fb031dba HHH-2680 - Blobs not updated on Session.merge() for detached instances 2011-03-23 17:32:00 -05:00
Steve Ebersole a491f64570 HHH-2680 - Blobs not updated on Session.merge() for detached instances 2011-03-23 17:30:13 -05:00
Steve Ebersole fd08540859 Merge branch 'master' of github.com:hibernate/hibernate-core 2011-03-23 12:07:15 -05:00