-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Getting started with Nhibernate
PostPosted: Thu May 19, 2005 4:06 am 
Hello,

I'm trying to use Nhibernate for the O/R mapping with .Net, but i don't find any documentation and i don't know how to do to install it and neither how to use it.

Please if someone has any links to help, suggestions or recommendations don't hesitate to post your reply

Regards


Top
  
 
 Post subject:
PostPosted: Thu May 19, 2005 4:26 am 
Beginner
Beginner

Joined: Thu May 12, 2005 3:41 am
Posts: 24
Location: London, UK
Hi

There's quite a lot of documentation available at http://www.nhibernate.org. In particular, look at the Quick Start Guide.

Installation is simply a matter of downloading the latest release zip file from SourceForge and unzipping it to a folder. You will then need to add a reference to NHibernate.dll in your project.

If you can't find all the answers you need there, please come back and ask!


Top
 Profile  
 
 Post subject: ....
PostPosted: Thu May 19, 2005 8:21 am 
Thank u veru much for your reply.

I had already did what u told me. Now i want just to know which tool is recommended to use with NHibernate. I used Eclipse with Hibernate & Java And it was excelent. But now i wonder which one will make things easy with NHibernate.

I have question too!! Have i to write the mapping files, the objects classes under NHibernate or they are generated automatiquely??

Waiting for your advises.

Regards


Top
  
 
 Post subject: continuation
PostPosted: Thu May 19, 2005 8:40 am 
To clarify my questions, i m looking for a tool that permit to configurate NHibrnate graphically and generate automatically the configuration and the mapping files? Like hibernate Synchronizer with Eclipse.

thanks


Top
  
 
 Post subject:
PostPosted: Thu May 19, 2005 9:56 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
Please, take the time to read the documentation !
There are load of information (+ tutorials) that will answer your questions and a list of external tools.

HQL Analyzer and hbm.xml Editor is a nice GUI to edit NHibernate configuration and mapping files.

And please, read How To Ask For Help.

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 9:42 pm 
Regular
Regular

Joined: Thu May 12, 2005 10:12 am
Posts: 71
Location: Buenos Aires, Argentina
You can also have intellisense in VisualStudio which can help a tbi. In order to use it, just copy these file to <visualStudioPath>\Common7\Packages\schemas\xml

nhibernate-configuration-2.0.xsd
nhibernate-generic.xsd
nhibernate-mapping-2.0.xsd

Intellisnse in VS is a bit different to the one in Eclipse since you wont be able to see the Class property as you use it.

Good luck!


Top
 Profile  
 
 Post subject: Testing NHibrernate
PostPosted: Mon May 23, 2005 3:33 am 
Hello,
I Followed the instructions indicated in the documentation, the building of NHibernate was OK, so i could get all the files indicated.

But when i try to test it, i launched the following command :

My Database Name nagiosstatic; user is ocs ang there is no Password.

Code:
C:\NHibernate>C:\nant-0.85-rc3\bin\NAnt.exe -D:project.config=release
-D:nhibernate.dialect="NHibernate.Dialect.MsSql2000Dialect" -D:nhibernate.connection.driver_class="NHibernate.Driver.SqlClientDriver" -D:nhibernate.connection.connection_string="Server=localhost:3306/nagiosstatic;initial catalog=nhibernate;User ID=ocs;Password=;Min Pool Size=2" test >output-release-test.log


The problem is that i don't get the file NHibernate.Test.dll-results.xml as indicated.

MoreOver i don't know know how to use this results to star to write my mappings files.....to Start working with Hibernate


Top
  
 
 Post subject:
PostPosted: Fri May 27, 2005 3:31 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Look at the output-release-test.log for hints. Those results are not related to mapping files in any way, they are just NUnit test results.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.