-->
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.  [ 1 post ] 
Author Message
 Post subject: CodeSmith templates for NHibernate Class/Mapping generation
PostPosted: Sun Dec 04, 2005 7:54 pm 
Newbie

Joined: Sat Jul 02, 2005 12:42 pm
Posts: 11
Location: Manchester, UK
Scott Beeler of AMD kindly sent some updates that he made to my original NHibernate/Codesmith templates which include the following changes:

* Fixed support for Many-to-Many relationships. These weren't handled correctly.
* Improved naming of properties.
* Added checking for lengths of strings to property set methods.
* Automatic built-in support of the IComparable interface. It supports by-property, bidirectional sorting. This makes using an Nhibernate generated arraylist of objects easy to use as the datasource of something like a gridview where you want to enable bidirectional sorting of any column

Many thanks Scott !

This also addresses an enquiry someone raised about the use of cascade="all" in many-to-many mappings here: http://frazzleddad.blogspot.com/2005/12 ... usion.html

The templates are available for download from http://www.intesoft.net/nhibernate/

_________________
- Simon

http://www.intesoft.net/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.