sessionfactory
nhibernate sessionfactory instance more than once on web service
I have a web service that use nhibernate. I have a singleton pattern on the repositorry library but on each call the service, it creates a new instance of the session factory which is very expensive.[详细]
2023-02-05 04:27 分类:问答Nhibernate Error: BuidSessionFactory() Deadlock / Dropping Connection
Good afternoon, I have been stuck on this issue for a number of days now and I don\'t feel my understanding of Nhibernate / SQL Server is of enough so that I might figure it out.[详细]
2023-02-01 05:28 分类:问答NHibernate - Distributed transactions and providing your own connection result in exception
NHibernate is throwning an exception when particpating in a distirbuted transaction and you\'ve opened a session by specifying your own connection object.[详细]
2023-01-26 03:11 分类:问答Castle Windsor: master controller not resolving the registered components in the container
Having the code below in my Global.asax.cs and two controller (one based on a the other: MasterController) I don\'t seem to find how can I resolve the repository register in my WindsorContainer from t[详细]
2023-01-16 11:45 分类:问答how can i automatically generate a non id value in hibernate?
I am using hibernate annotations, spring, a sessionFactory and defining everything in a context.xml (like so..)[详细]
2023-01-14 14:05 分类:问答SessionFactory - one factory for multiple databases
We have a situation where we have multiple databases with identical schema, but different data in each.We\'re creating a single session factory to handle this.[详细]
2023-01-13 13:35 分类:问答What is a good way to setup CRUD methods and SessionFactory in Nhibernate?
I currently have a NHibernateHelper class which creates a session factory. I keep recieving errors saying \'Session Closed!\'. Am I going about this in the wrong way? The error occurs when I call the[详细]
2023-01-12 16:20 分类:问答Instantiation failure and singleton-behaviour interaction [NInject1]
I have set up a NInject (using version 1.5) binding like this: Bind<ISessionFactory>().ToMethod<ISessionFactory>(ctx =>[详细]
2022-12-25 07:18 分类:问答SessionFactory in Hibernate
I am using hibernate-2.1 and \"net.sf.hibernate.SessionFactory\" class in my spring project. Now I am switched to Spring 2.5.6.A, where they are using hibernate3 and I am not able to find out the \"n[详细]
2022-12-24 13:36 分类:问答Hibernate SessionFactory: how to configure JNDI in Tomcat?
that\'s how the session factory should be gotten: protected SessionFactory getSessionFactory() { try { return (SessionFactory) new InitialContext()[详细]
2022-12-23 05:12 分类:问答