-->
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.  [ 3 posts ] 
Author Message
 Post subject: Beginning...
PostPosted: Tue Nov 21, 2006 12:31 pm 
Newbie

Joined: Tue Nov 21, 2006 12:23 pm
Posts: 2
Hi there,


i have some doubts in how to begin working with nhibernate.


I have read this quick guide - http://www.hibernate.org/362.html - that tells me how to do it manually.

On the other hand, i have seen that there are tools for nhibernate, that could help me in doing this more quickly and in a better way.

And maybe there are other options that i don't know.


Which do you think is the best way to generate the nhibernate layer for my database?

Thanks in advance ;)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 2:57 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
I'll first give a disclaimer: it is better to learn how to use NHibernate manually before using helper tools.

Some people like code generators like CodeSmith or MyGeneration. These will generate your classes and mapping files based on the database, but there may be some setup work involved. Others like attribute-based libraries like NHibernate.Mapping.Attributes or Castle's ActiveRecord. These allow you to use attributes in your classes to tell the helper lib how to map the class.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 7:07 am 
Newbie

Joined: Tue Nov 21, 2006 12:23 pm
Posts: 2
I see, you are probably right.

And in fact, it's not that difficult to make hibernate working manually, so i'll choose this option..



Thanks for your help ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.