PDA

View Full Version : Problem with updates that don't go to database


jenser
03-01-2007, 09:03 AM
Hello

I'm buildig a test application but i can't get the updates to work.
I looked into the northwind web example but i can't find any differences anymore.

Hope anyone can give me the sollution for my problem

You can download the visual studio sollution here (http://www.golbach.nl/TechTest.zip).

Greetings,

Marc Gerritsen

Bruno Baia
03-04-2007, 12:40 AM
Hi Mark,

Actief property in not configured in the hbm.config file, I've just added it and everything works expected.
(Try to regenerate the file)

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="TechnologyTest.Model.User.Medewerker, TechnologyTest" table="Medewerkers">
<id name="id" access="field">
<generator class="native" />
</id>
<property name="gebruikersnaam" access="field" />
<property name="actief" access="field" />
</class>
</hibernate-mapping>



I noticed that you don't need DAOFactory anymore, and you also can get rid of ModuleFactory if you inject your module into the Web page with Spring.Web.


Bruno

jenser
03-04-2007, 06:08 AM
Thank you, that was realy stupid.
Has taken me more than 10 hours.
But glad it works now.
Thank you again