-->
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.  [ 10 posts ] 
Author Message
 Post subject: NHibernate Mapping Tool
PostPosted: Thu Oct 19, 2006 4:49 pm 
Newbie

Joined: Thu Jun 08, 2006 4:08 am
Posts: 8
Can anyone recommand me any nice NHibernate Mapping Tool that can make automatically hbm.xml files with domain classes and methods for C#? I have tried to use ObjectMapper but I am not satisfied.

Anyone have exp with some nice tool?

Cheers
Ismar


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 20, 2006 12:39 am 
Regular
Regular

Joined: Tue Feb 21, 2006 9:50 am
Posts: 107
I'm using MyGeneration (http://www.mygenerationsoftware.com/). This is a template based generation tool which can be used to generate almost everything you want. They have a template library where you can find templates for generating hibernate mappings and classes.

Regards
Klaus


Top
 Profile  
 
 Post subject: For Mapping
PostPosted: Fri Oct 20, 2006 1:16 am 
Newbie

Joined: Fri Apr 29, 2005 4:58 am
Posts: 12
Location: Chennai INDIA
If possible try with Web Logic workshop. GUI based easy to handle.

Rgds
waltair


Top
 Profile  
 
 Post subject: For Mapping
PostPosted: Fri Oct 20, 2006 1:31 am 
Newbie

Joined: Fri Apr 29, 2005 4:58 am
Posts: 12
Location: Chennai INDIA
If possible try with Web Logic workshop. GUI based easy to handle.

Rgds
waltair


Top
 Profile  
 
 Post subject: Re: For Mapping
PostPosted: Fri Oct 20, 2006 9:34 am 
Newbie

Joined: Thu Jun 08, 2006 4:08 am
Posts: 8
I have visited webpage of the Web Logic but It seems that its just working for Hibernate for Java, not NHibernate and creating code files in C#?

Those of you that have used ObjectMapper: How can I avoid getting C# and mapping filenames beeing namespace.classname.cs or namespace.classname.hbm.xml after I export them with "export NHibernate" function?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 3:57 am 
Beginner
Beginner

Joined: Wed Aug 10, 2005 6:21 pm
Posts: 24
Location: Antwerp, Belgium
I've used ObjectMapper as well. I had to start from a pre-existing database and I used it to generate the first version of the .hbm.xml file.

The result was rather rough and it was one big file too. I recall having to make many manual corrections but it was ok as a starting point. OM had done the heavy lifting for me.

However I would advise against using OM for daily use in synchronizing your db with your object model (or vice versa). OM was designed for use with NPersist and its NHibernate export module was juist a quick job. At least that's the impression I got from using it. Besides its rather buggy too.

The guy behind OM and NPersist (Mats Helander) is a great developer but he had some health issues (probably caused by trying to do everything himself) and the result is that NPersist (and with it OM) have remained unchanged for more than a year. Even longer if you don't count the minimal changes in the last version (along with the move to the puzzle thingie). He suffered from some kind of nervous breakdown before that so it's completely understandable but it doesn't hange the fact that OM (and sadly NPersist also) have become a dead end.

That's not to say that the OM sources couldn't be a great starting point for a NHibernate mapping tool though... if they're available.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 4:18 am 
Newbie

Joined: Thu Jun 08, 2006 4:08 am
Posts: 8
Hello desfen!

I think it's sad that OM project is dead.. I think its great tool, some bugs though, but anyway It helped me creating automatically UML diagram, hbm and cs files. When I used the function "Export NHibernate" I got all files separately, but the only problem was that the file names was so long and I can't find any way to change this feature.

You tell me that you wouldn't recommand using OM in daily use, can you recommand me some other Tool that you know is good? I have downloaded MyGeneration and the NHibernate Template, but i havent got how its works properly yet.

/ Greetings Ismar


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 12:13 pm 
Newbie

Joined: Sat Oct 21, 2006 8:31 am
Posts: 2
I have been using AndroMDA (see http://www.andromda.org ) for the past few months. I like it as it does a lot more than just create hbm xml files for you. Specifically, based on a UML model it creates entity classes, dao classes, factories and service oriented service classes. It also provides support for an optional "value object" (i.e. message) layer. To simplify it even further, there is VS 2005 add-in that makes all of this very easy to use from within your VS 2005 environment. Oh, more thing, it will create the create table sql scripts for you for your entity layer.

Another tool out there that is a relative newcomer is ActiveWriter (see http://www.altinoren.com ). What is compelling about that tool is rather than using UMl as the modelling language for your entity layer the tool provides a DSL (domain specific language) modelling environment right within VS 2005. I haven't used it yet but the author appears to be very sharp and he seems to building something that should be very usable.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 5:05 pm 
Beginner
Beginner

Joined: Wed Aug 10, 2005 6:21 pm
Posts: 24
Location: Antwerp, Belgium
ismar wrote:
Hello desfen!
You tell me that you wouldn't recommand using OM in daily use, can you recommand me some other Tool that you know is good?


Sadly, no but I'm pleased to learn from adenysenko about ActiveWriter.
I haven't had the time to look into it but I'm wondering if I could also use it when using straight NHibernate (as opposed to ActiveRecord on top of NHibernate).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 25, 2006 6:28 am 
Newbie

Joined: Wed Oct 25, 2006 5:18 am
Posts: 2
OM is a great tool, available in sources from SVN. Some Hibernate related bugs were already fixed - see forum.


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