Questions tagged [nhibernate-caches]

22 questions
1
vote
1 answer

NHibernate -- duplicate results when using collection cache

I am getting very strange behavior from NHibernate when using the second level cache with multiple layers of bi-directonal parent-child(-grandchild) one-to-many relationships: int id; using(var session = sessionFactory.OpenSession()) { var…
chris
  • 2,541
  • 1
  • 23
  • 40
1
vote
1 answer

NHibernate with Second Level Cache Not Rehydrating Properties Marked insert="false" update="false"?

Having trouble with implementing second level cache in Nhibernate. I have a class mapped as follows:
Rich Miller
  • 810
  • 1
  • 9
  • 20
1
vote
2 answers

Hibernate HQL createQuery

I'm trying to convert an old application executing SQL queries the old way as below: java.sql.Connection connection = .... String queryStr="select acct from Person where acct in (select acct from Document where dbcreate_date > DATEADD(hh,-12,…
Marquinio
  • 4,601
  • 13
  • 45
  • 68
0
votes
1 answer

NHiberate session.Get() gets the cached entity. How to get the latest entity from the DB?

I'm using the CQRS pattern to get the data from the DB using NHibernate. Here is the CommittingTransactionCommandHandler which calls the UpdateProductHandler class CommittingTransactionCommandHandler { private readonly ISession session; …
Karthik
  • 1,064
  • 2
  • 16
  • 33
0
votes
1 answer

NHibernate.Caches.AppFabric nuget package unable to establish connection with Azure AppFabric Caching SErvice

NHibernate.Caches.Appfabric nuget package for using Azure AppFabric Caching service as the second level cache for NHibernate was working fine with V 1.8 of the Azure SDK. However after upgrading to VS 2012 and version 2.0 of the Azure SDK the nuget…
Rohit Gupta
  • 604
  • 2
  • 6
  • 15
0
votes
0 answers

AppFabric NHibernate provider does not forward requests to DB if Cache Cluster fails

I've given an assignment to setup AppFabric for 2nd level caching using NHibernate AppFabric Cache Provider (By Simon Taylor). I've successfully setup and it's working. However in a failure scenario, if the Cache Cluster or simply the whole service…
qua
  • 33
  • 1
  • 5
0
votes
1 answer

Hibernate 4.1.x EhCache doesn't store anything on disk

I'm using Hibernate 4.1.1.Final with Spring MVC 3.1.x and using both first and second level cache. I configured my domain objects using annotations for cache operations. But cache doesn't store anything on the disk. Here's my ehcache.xml…
talha06
  • 6,206
  • 21
  • 92
  • 147
1
2