-->
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.  [ 3 posts ] 
Author Message
 Post subject: Dynamic validators
PostPosted: Mon Dec 10, 2007 7:06 am 
Newbie

Joined: Mon Dec 10, 2007 6:46 am
Posts: 6
I'm just wondering if it is possible to somehow attach Hibernate validators to existing objects dynamically (i.e. at runtime), or if anyone has done anything similar.

I'm designing a web app which will contain a bunch of entities which will not only be unknown until runtime, but can also change at runtime. It looks feasible to create and update ORM information at runtime using the Hibernate configuration mechanism and work with Map-based named entities. The entities are going to be used in data entry and editing, so they will require field and "class" level validation. It would be very neat to be able to add validators at runtime also, so that we can take advantage of a standard way of validating entities (we have normal mapped entities also) and use existing compatible frameworks - like the Seam JSF validator tags.

So, my question to everyone is - has anyone done something similar, and how did you solve this problem? ...and to the Validator experts - can you see a way of doing this neatly with the existing Validator version?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 10, 2007 10:34 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
There is no solution today. Maybe you can start thinking about it and look how it can be done. I must admit I did not really though about the problem: HV is heavily based on POJOs today.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 10, 2007 10:44 am 
Newbie

Joined: Mon Dec 10, 2007 6:46 am
Posts: 6
Ok, thanks - at least I know I need to come up with a solution myself! I'll report back with our solution at some point in the future...


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