-->
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: User Defined Properties & User Defined Objects
PostPosted: Thu Jan 22, 2009 10:39 am 
Newbie

Joined: Thu Jan 22, 2009 10:09 am
Posts: 1
Location: Boston, MA
Team -

I'm considering using NHibernate in an upcoming development project; one of the principles of this application is "configurable flexibility" - specifically allowing users to to add their own defined properties/collections to existing application objects, and/or create their own application objects for reference as necessary.

I would like to break the question into to forms, as creating user defined properties will solve a great deal of the problem; and creating objects is less important.

1.) How (if at all) can NHibernate be leveraged to support the ability for users to define new properties/attributes to application objects (i.e. we create something called Address, and they wish to add "Suburb to it for display purposes and reporting") etc.

2.) In the same context, how can NHibernate be leveraged to support application controlled creation of User Defined Objects (and ultimately properties)

The primary application will have logic that consume what is pre-defined on the delivered objects/properties - but anything user defined well then become available to reference in certain parts of the app, i.e. displayable fields, administration for entities, references for reporting and other functionality.

If this has been done before and/or Source Code is available that would be great; else any insight on the topic is appreciated.

Thanks,
Gracie


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2009 2:56 pm 
Expert
Expert

Joined: Fri May 13, 2005 5:56 pm
Posts: 308
Location: Santa Barbara, California, USA
Check out NSurvey (now called Feedback Server). While living as NSurvey, the source was available (I think it is still available on SourceForge) and it did something similar to what your asking. It allowed the user to create new types of questions, answer types, etc. It would store the information in database tables and emit the code during runtime. Pretty slick if you can still find it. Sorry I can't be of more help.

-d


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.