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.  [ 6 posts ] 
Author Message
 Post subject: idea for a new nhibernate tool
PostPosted: Wed Jul 25, 2007 2:47 pm 
Beginner
Beginner

Joined: Tue Jul 10, 2007 5:27 am
Posts: 34
Location: Belgium
just looking for some feedback on this... i'm thinking about writing a small application that would analyze hibernate mapping files together with the .NET classes and metadata from the database to spot errors or provide warnings for things that might cause problems or could be mapped in a better way.

would there be any interest in a tool like this? and if so, what are some features that you would really like to see in such a tool?

_________________
Davy Brion
http://ralinx.wordpress.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 3:52 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
In the Java land they have hbmlint (part of Hibernate Tools) which does this - you may want to look there for inspiration. I think it could be a nice addition, but the tool has to integrate nicely into the build process.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 4:31 am 
Beginner
Beginner

Joined: Tue Jul 10, 2007 5:27 am
Posts: 34
Location: Belgium
sergey wrote:
In the Java land they have hbmlint (part of Hibernate Tools) which does this - you may want to look there for inspiration. I think it could be a nice addition, but the tool has to integrate nicely into the build process.


my first thought was to create a tool that you could use during development for troubleshooting or for finding possible improvements... but it is a good idea to make sure it can be used in the build process as well.

btw, the application would of course be open source...

_________________
Davy Brion
http://ralinx.wordpress.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 8:19 am 
Newbie

Joined: Thu Jul 26, 2007 8:17 am
Posts: 3
DavyBrion wrote:
sergey wrote:
In the Java land they have hbmlint (part of Hibernate Tools) which does this - you may want to look there for inspiration. I think it could be a nice addition, but the tool has to integrate nicely into the build process.


my first thought was to create a tool that you could use during development for troubleshooting or for finding possible improvements... but it is a good idea to make sure it can be used in the build process as well.

btw, the application would of course be open source...


I think that an applicable use that Sergey might be referring to would be in a continuous integration environment. You could run this tool as part of a build process when people commit code changes and include a report in the list of build reports.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 10:01 am 
Beginner
Beginner

Joined: Tue Jul 19, 2005 11:21 am
Posts: 23
Location: erie, pa
Ooh kinda like FxCop for NHibernate.... NhCop!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 26, 2007 10:21 am 
Beginner
Beginner

Joined: Tue Jul 10, 2007 5:27 am
Posts: 34
Location: Belgium
jimbolla wrote:
Ooh kinda like FxCop for NHibernate.... NhCop!


yup, very similar to FxCop... allthough not quite the same. The most important part would be detecting errors instead of simply reporting warnings. The warnings (and suggestions for possible improvements) are also very cool though, but to me the errors are the most important part.

But it's very similar to FxCop in that it would basically check a bunch of 'rules' against the mapping files (in combination with either the .NET classes or the database metadata, or both depending on what the user prefers). These rules would have different categories, such as performance, data consistency, etc...

I think this tool could be very helpful for new nhibernate users

_________________
Davy Brion
http://ralinx.wordpress.com


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