You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nhu...@googlegroups.com
I'm trying to find a way to localize entity properties in NHibernate that fits an existing schema. I've been through the forums / stackoverflow etc so not trying to start a debate on localization
I've got very close to something I'm happy with. I end up with a fluent mapping that looks like
where LocalisedValues is a collection of object that has a property for each property of the entity I want to localize.
I can set the filter immediately after creation of the session and it all works very nicely until I look at the caching. Looking through the debug logs I get "Refusing to add to cache due to enabled filters" and looking at the source I can see why that is.
My questions are 1. Are filters the only way I can reduce the LocalisedValues collection to just the values for the current locale?
2. I see that the message about caching comes directly from hibernate. If I wanted to have a go at implementing caching for filters what process should I follow? Is nHibernate just a straight port of hibernate or do its features diverge?
smalldave
unread,
Mar 23, 2012, 7:44:10 AM3/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message