-->
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.  [ 4 posts ] 
Author Message
 Post subject: Automatic generation of mapping files
PostPosted: Thu Apr 13, 2006 9:33 am 
Newbie

Joined: Thu Apr 13, 2006 9:26 am
Posts: 9
Hello,

we are evaluating the use of NHibernate on an ASP.NET 2.0 projet we are just starting. We are starting from scratch and want to start with the object model. I saw that we could then write the HBM files and use SchemaExport to create the database but I would like to automate things as much as possible.

My question is: is there a way to have the HBM files automatically generated from existing C# code? I saw a new contrib called net2hbm which is basically what I would like but I would like to know if there is any other solution out there that could handle such task?

Thanks in advance for any hints on this


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 7:21 pm 
Beginner
Beginner

Joined: Mon Sep 26, 2005 5:57 pm
Posts: 39
You may want to try Matssoft objectmapper tool.

I have had great success with that tool, although I am using it primarily to generate my mapping files and classes from the existing database. I know that it supports going in the other direction as well.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 2:05 am 
Newbie

Joined: Tue Oct 18, 2005 10:28 pm
Posts: 3
Location: Melbourne - Australia
Hi nbon,

Have a look at CodeSmith http://www.codesmithtools.com/
it's a code generator that uses templates to generate your code. Many existing tamplates available, not too difficult to write your own.
Another product is MyGeneration http://www.mygenerationsoftware.com/portal/default.aspx similar to the above + more, and it's free

Hope this helps


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 3:47 am 
Beginner
Beginner

Joined: Tue Mar 28, 2006 3:44 am
Posts: 22
Hi all :)

I had great success using ObjectMapper, too. It's a pretty nice tool with a lot of functionality and it's free. :)
We primarly use it to generate classes and mapping files but as jbliss1234 pointed out you can roundtrip engineer if you want. So give it a try. :)

Greetings,
Chavez


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