Hibernate version: 2.0.0.Alpha1
Name and version of the database you are using: Oracle 10g release 2
Hi,
I'm trying to use NHibernate for a new Projet with an existing DB that I can't modify.
I've made some Entities and mappings with Unit Tests (NUnit 2.2) .
On the first test I've tried (just getting the list of all the entities from one table), Nhibernate deleted all the rows of my table and the columns I didn't use in my mapping file (some columns are not needed for my application). It's like it dropped all the existing tables and created a new version of them based on the mapping file.
Some explanations would be helpful ...
Must I map all the fields of the tables I will be using ??
Can't I keep my existing Rows ?? (A bit annoying ...)
Thanks for your help.
|