Hi,

i'm thinking about implementing a database which keeps all former state in a
set special "Mnemento" tables. Beside the productive set of objects these
tables hold a copy of all objects with additional "from_date" and "to_date"
columns. Therefore i am able to "see" the state of the database at some
point in time.

Building my own "finders" i have the possibility to update a transient
member in the objects just loaded that should keep the date-reference of
this object. This works reasonable well as long as i only use my own
finders. Instead of using hibernate to load referenced objects, i'm required
to go to my own set of "finders" just to get my reference date based
queries.

Is the any reasonable way to add additional criteriea to the collection
mappings to implement this sort of additional criteria?

It might be a good idea to have the possibility to add such type of criteria
to ALL queries initiated to some type of classes that have been marked as
"time dependend". In this case it would be the best solution to define the
reference date within session scope.

Regards,
Ralf




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to