-->
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: Annotation for dynamic components?
PostPosted: Fri Sep 19, 2008 7:03 pm 
Newbie

Joined: Fri Sep 19, 2008 6:47 pm
Posts: 1
I am working on augmenting our object model framework to support the addition of custom properties by an end user. The approach I am using is to have these additional properties accessible via a map on the object and mapped via a dynamic component similar to the approach shown here: http://www.infoq.com/articles/hibernate-custom-fields

The difference between what is shown there and what we want to do is that we are using Spring and our out of the box hibernate config is driven via hibernate annotations. My plan is to override Springs AnnotationSessionFactoryBean.newSesionFactory(Configuration) method and augment the config here and build a new session factory with our augmented config. The problem I am running into is that there doesn't appear to be a way to annotate our customProperties Map component as a dynamic component (so that I can then add our custom properties to this component at runtime similar to the paper reference above). Is there a way to do this? If not, could I achieve similar functionality by manipulating the mapping model and adding the component for the customProperties map at runtime as well. Any other ideas?

Any thoughts are greatly appreciated. Thanks!


Top
 Profile  
 
 Post subject: Re: Annotation for dynamic components?
PostPosted: Fri Feb 25, 2011 1:46 am 
Beginner
Beginner

Joined: Mon Jun 28, 2010 1:02 pm
Posts: 21
I would be super interested in that!!! That may solve my problem:
https://forum.hibernate.org/viewtopic.php?f=1&t=1009680


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.