P.S. An important fact I forgot to mention: my VO is persisted to a database using Hibernate. Hibernate wraps this object with its own type. Is it possible that the type conversion (String -> int) is not working properly because Hibernate's wrapper gets in the way? I did a simple test of copying a String -> int using BeanUtil.copyProperties(), and it worked fine, converting "1" to 1 and "a" to 0. If the problem is Hibernate, what can be done about it? I don't
think I have control over this wrapper, do I?

Thanks again, guys. I'm stuck and you're tremendously helping me.
Oren

Oren Livne wrote:
Dear Laurie & Christopher:

Great! Thanks. I'm using Strings now in my form. But as I wrote to Ed, suppose I validated the form and would like to copy all properties to a VO (value object) / DTO with one call (e.g. copyProperties()). How do I get it to automatically convert my form String property into a VO's corresponding property which is an int or an Integer?

Thanks again
Oren

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
======================================================================
Oren Livne, Ph.D.
Research Assistant Professor of Mathematics
RUReady Software Architect

Academic Outreach and Continuing Education
1901 East South Campus Dr., Room 2197-D
University of Utah, Salt Lake City, UT 84112-9399
Tel  : (801) 581-6831     Cell: (801) 631-3885     Fax: (801) 585-5414
Email: [EMAIL PROTECTED]              Web:  http://ruready.net/oren
======================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to