gemire / daofusion

Automatically exported from code.google.com/p/daofusion
0 stars 1 forks source link

Request for merging functionality - NestedPropertyCriteria #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I need to merge NestedPropertyCriteria with additional criterias 
(PersistentEntityCriteria), but merging must eliminate duplicity in 
associatin path elements.

Original issue reported on code.google.com by janci.pa...@gmail.com on 15 Apr 2009 at 2:32

GoogleCodeExporter commented 9 years ago
There is now a HibernateHelper class dedicated for handling Hibernate issues 
such as
the association path duplicity.

Original comment by Vojtech....@gmail.com on 16 Apr 2009 at 3:23

GoogleCodeExporter commented 9 years ago
Patch for this issue is available for review at 
http://codereview.appspot.com/40111.

Original comment by Vojtech....@gmail.com on 16 Apr 2009 at 3:44

GoogleCodeExporter commented 9 years ago
I forgot to mention that the proposed patch doesn't include anything like a 
composite
criteria implementation - the user should handle nested associations via
HibernateHelper manually on the target Criteria instance.

Composite criteria implementation which is able to remove association path / 
element
duplicities introduced by calling multiple PersistentEntityCriteria#apply() 
methods
would be too awkward and heavily reliant on Hibernate internals.

Original comment by Vojtech....@gmail.com on 16 Apr 2009 at 4:00

GoogleCodeExporter commented 9 years ago

Original comment by Vojtech....@gmail.com on 17 Apr 2009 at 11:34