-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate tools for NHibernate?
PostPosted: Thu Nov 30, 2006 10:58 am 
Regular
Regular

Joined: Thu Nov 30, 2006 10:48 am
Posts: 59
We have an existing SQL Server 2000 db & I'd like to automatically generate the .hbm.xml and the associated C# file for each table and view. Is there a tool available for this?

Thx

_________________
metazone


Top
 Profile  
 
 Post subject: Hibernate tools for NHibernate?
PostPosted: Sat Dec 02, 2006 11:29 pm 
Beginner
Beginner

Joined: Thu Apr 27, 2006 12:19 pm
Posts: 33
Location: Seattle, WA
I used a free code generation tool called MyGeneration to do this before (http://www.mygenerationsoftware.com/portal/default.aspx). It even comes with a template for this that will create the class files and the hbm mapping files.

I heavily modified it before I used it to take advantage of .NET 2.0 generics and partial classes. Basically I split each class into two partial class files, one for business logic (i.e. hand edited code) and one for generated code (that contained the mapped properties).


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