Questions tagged [nhibernate-configuration]
40 questions
0
votes
1 answer
Getting Nullpointer exception while creating a hibernate mapping XML file?
I'm trying to create a XML based configuration for a model class. Using Hibernate XML Mapping file option from hibernate menu which comes with the JBoss Tools.
But it throws NullPointerException as in the image shown below.
Using: Java 8 and…

vijayraj34
- 2,135
- 26
- 27
0
votes
1 answer
Fluent NHibernate "Database was not configured through Database method."
i'm starting with Fluent.NHibernate for my C# web probject that already uses NHibernate correctly and now i want to migrate to Fluent.
When i try to doing a config request i receive the error:
An invalid or incomplete configuration was used while…

Lollo
- 535
- 2
- 5
- 18
0
votes
1 answer
multiple connection using hibernate
I want to connect to two servers on hibernate. But i am using java class as configuration. How give Session factory know it will use connection one or connection two.
this is my class:
@Configuration
@ComponentScan(basePackages =…

user3505775
- 339
- 2
- 6
- 20
0
votes
1 answer
NUnit NHibernate and Moq unit test throwing NHibernate.MappingException
I'm using Ayende's code from his blog on unit testing with NHibernate and it calls for testing with SQLite, code as follows:
using System;
using System.Reflection;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Dialect;
using…

JensenB
- 235
- 1
- 2
- 6
0
votes
1 answer
meaning of update when value of hbm2ddl.auto set to update
In configuration file i am using this
update
Although there was no table in my database, but still with the update command it creates the table in database.
what i thought that hbm2ddl.auto= "update" use…
user4056965
0
votes
1 answer
0
votes
1 answer
Unable to get NHibernate to execute a query after separating the connection string out
I am using NHibernate to access a SQL Server database. I want to be able to encrypt the connection string. Reading StackOverflow and elsewhere, I found instructions to separate the connection string out to a connectionStrings section in the config…

MarkP
- 1
- 1
0
votes
1 answer
NHibernate configuration: Configure(pathToXml) vs AddXmlFile(pathToXml)?
What's the difference between
Configuration.Configure(string)//Configure NHibernate using the file specified.
and
Configuration.AddXmlFile(string)//Read mappings from a particular XML file.
?
It looks like the latter's functionality is a subset of…

Cristian Diaconescu
- 34,633
- 32
- 143
- 233
0
votes
1 answer
NHibernate configuration issue: "entry point was not found"
I'm configuring NHibernate on SharePoint 2010 web application.
Previously it works fine when mappings and domain were in one project. But during refactoring process I splitted solution on several projects. I've also implemented my custom IHttpModule…

Victor Ponamarev
- 179
- 2
- 11
0
votes
0 answers
Configuring Hibernate in Eclipse Indigo
I am working on a web based project.
When I startup my tomcat server it redirects to an Login HTML page. On click of a login link a JSP Page is called. All the validation is done in the JSP page. Here Hibernate is used to interact with the…

Suri
- 1
- 2