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: Custom Domain Object Fields
PostPosted: Tue Mar 09, 2010 11:40 am 
Newbie

Joined: Tue Mar 09, 2010 11:30 am
Posts: 7
Hi There,
Im a fairy new user to nHibernate so please forgive any rookie mistakes....

Basiacally Im looking to create the notion of custom fields against various entities in my application, so end users can add their own field definitions. I spent a long time searching but this isn't as common as I'd expected.

There is a fantastic article which describes this in java/hibernate here:

http://www.infoq.com/articles/hibernate-custom-fields

but my java is non existent and i spent the best part of yesterday struggling to convert it to c#.

Any assistance would be greatly appreciated!

Thanks,
kmoo01


Top
 Profile  
 
 Post subject: Re: Custom Domain Object Fields
PostPosted: Mon Mar 15, 2010 7:00 am 
Newbie

Joined: Tue Mar 09, 2010 11:30 am
Posts: 7
For those you are interested I managed to translate this article from java to c# and get a working example (see below), but unfortunately it wasn't what I was looking for after all.

http://sandbox.bright-side.co.uk/dynamicfields/TestDynamicFields.zip

If anyone has implemented the idea of "custom Fields" or "dynamic fields" in a tidy way using nhibernate, where the end user can their own data to existing entities, allowing them to be searchable and bind-able, please let me know

In the mean time I'm gonna carry on looking and try and come up with an elegant solution to a nasty problem :-)


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.