For NH2.0.1 you must set a property named "expiration" programmatic
configuration.SetProperty("expiration",
"5");2009/6/8 jr76 <[email protected]> > > Thanks Jozef. We are using NH 2.0.1. I suppose I'll just update the > xsd myself and do a custom build of 2.0.1. > > j > > On Jun 8, 1:40 pm, Jozef Sevcik <[email protected]> wrote: > > which version of NH do you use ? I think that should be fixed up from > > NH 2.1.0Alpha1 > > > > 2009/6/8 jr76 <[email protected]>: > > > > > > > > > > > > > Thanks Fabio. I guess there are no zipped sources but I was able to > > > download via SVN. > > > > > Now looking at the source for SysCache, I see that it uses the > > > constant Environment.CacheDefaultExpiration to look for the default > > > cache expiration setting, and this property maps to > > > "cache.default_expiration". However, the hibernate-configuration > > > schema does not seem to support this value, as it throws > > > HibernateConfigException: > > > > > "An exception occurred parsing configuration :The 'name' attribute is > > > invalid - The value 'cache.default_expiration' is invalid according to > > > its datatype 'String' - The Enumeration constraint failed." > > > > > Is this a bug in the schema definition? > > > > > j > > > > > On Jun 8, 12:27 pm, Fabio Maulo <[email protected]> wrote: > > >>http://nhforge.org/blogs/nhibernate/archive/2009/06/07/nhibernate-cac. > .. > > >> In the same place where you download the assembly you can find the > project > > >> sources.http://sourceforge.net/projects/nhcontrib/ > > > > >> 2009/6/8 jr76 <[email protected]> > > > > >> > I am having trouble finding any documentation about configuring > > >> > SysCache as of NH2, as the old 1.2 configuration no longer seems to > > >> > work. I'd also like to obtain the SysCache source code but I can't > > >> > seem to find any links to it anywhere. It seems like this kind of > > >> > thing ought to be easy to find. If someone can send me the info > I'll > > >> > make sure to post it on the wiki. > > > > >> > j > > > > >> -- > > >> Fabio Maulo > > > > -- > > Jozef > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
