Quote:
have you tried to use the "where" attribute in the class tag?
The problem is, as I understand, that I'd have to create a new table/class/mapping for the "current date" table and place a many-to-one link from all temporal objects to that table.
Quote:
Make the collection lazy and filter it whenever you need a sub-set
Since I would like to one day make my application pluggable, I was hoping for something a little less inconvenient for the consumer of my API. This approach also doesn't seem to work with Ayende's EntitySet<T> technique which I've implemented (problem outlined here:
http://forum.hibernate.org/viewtopic.php?t=954292).
What about if I create my own EntityPersister? This would completely hide the inner workings from the consumer and clear up a lot of repetitive plumbing code. At a glance, it looks like I'd be overriding the GenerateSelectString() method and adding a couple of where clauses via SqlSimpleSelectBuilder.AddWhereFragment().
Is there anything I should know before giving it a shot?