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: Tool for generating classes from hbm.xml files
PostPosted: Tue Sep 09, 2008 10:43 am 
Newbie

Joined: Tue Sep 09, 2008 10:31 am
Posts: 1
Hi

I have tried the hbm2net tool for generating classes. However I am unable to find out how to configure the tool and my hbm-files to give me the following:
    partial classes generated
    generic mappings
    ability to place files in a self defined folder (not generated/../..)
    finders)


I found a guy on the net that implemented the partial classes at least. Also I got a generic IList, however I was unable generate a generic ISet.

Is there a better tool for this?

OR

Is there some nice documentation that would explain the hbm2net tool?

Btw. using visual studio 2008 SP1, NHibernate 2.0.0.4000 and Firebird.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2008 10:22 am 
Beginner
Beginner

Joined: Tue Sep 09, 2008 5:42 am
Posts: 22
Location: Romania
Ciao,

these are some tools that you can use to generate the mapping and classes for using NHibernate:

- http://altinoren.com/activewriter/

- http://sourceforge.net/projects/nhibernateaddin

this is the easiest, but has less options (you cannot use all the possibilities of mapping files) I use version 1.0.0.3, because the last has some bugs.

these two integrate in visual studio, and can map tables from visual studio server connections

I use the second because after instalation you simply add a new NHibernate Plugin object in wich you drag-and-drop the tables you need and creates you the mapping files and classes when you save the diagram.


- www.mygenerationsoftware.com

this uses templates that should be easy to modify, you have to find the most suitable


- objectmapper http://www.puzzleframework.com/WikiEngine/WikiPageViewer.aspx?ID=90

this is a bit complex to use (beacuse there's not a manual :-) but it's interesting because you can start from model, classes or database and generate the others.

there's also this one
http://www.codeplex.com/Wiki/View.aspx?ProjectName=NHDomainMapper
but for this helps you only in writing mapping files, you must already have database and classes.

I suggest, if you want and have time, to try all of them and choose the one you prefer.


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.