VampBoy wrote:
-Support for use in Criteria API (looks like the CriteriaLoader et al. has been reworked to support).
Yup.
Quote:
-If being used by the Criteria API how 'complex' can the filter condition be. i.e. typically in the Criteria environment if you want to reference another table like if A.B.someColumn = 'someValue' you'd have to set up an Alias. When using the filter is this possible in either case (i.e. with or without the Alias)
The filter usually refers only to the filtered entity of collection. I am
very openminded about allowing other things, but we need to see real concrete usecases.
Quote:
-Given a class that might be referenced from multiple one-to-manys can you simply set the filter up at the class level (on the 'many' side) rather than have to set it up for each of the Collections ('one' side'). This isn't a big show stopper, just would make for easier implementation, i.e. I could implement the filter definition in one spot rather than 25.
There are reasons why it is best done at the collection side (to do with <joined-subclass> mappings) and we are still investigating this. Note if you just want to reuse the code of a filter definition, you can just include an XML external entity.
Quote:
-Along the same vein as above, if a collection is being lazy loaded will the same filter logic be applied? It seems that it might by looking at the source code.
Yes, the collection filter is applied.