-->
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: Persistence class Question
PostPosted: Fri Jun 09, 2006 9:15 am 
Newbie

Joined: Thu May 25, 2006 3:23 pm
Posts: 12
test


Last edited by jadeite1000 on Thu Nov 09, 2006 3:08 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 10, 2006 2:10 pm 
Newbie

Joined: Wed Jun 07, 2006 3:57 pm
Posts: 3
Location: Mexico
Hi Jadeite,

As far as I know, the org.apache.struts.validator.DynaValidatorForm class is a subclass of org.apache.struts.action.DynaActionForm. The DynaActionForm provides a set of dynamic (non-existent as get/set methods per se) JavaBean properties using a HashMap. If you see the Javadoc API for this class (http://struts.apache.org/struts-action/ ... index.html) you can figure out that the dynaValues is used for accessing these properties.

I don't think that Hibernate can do any sort of 'introspection' on classes with this 'fake' JavaBean properties. If you use plain ActionForm subclasses you can probably overcome this issue.

On the other hand, I don't think tying the Form objects (inherent to any Struts-based web layer) to a Hierarchy in a different layer, such as the business model domain, is a good idea. Of course, this is only my humble opinion.


Regards and good luck!

Carlos


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.