I've submitted a patch to JIRA ( http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-357 ) to alleviate some of the drudgery of web work with hibernate, specifically the need to set all of your fields in an object from an HttpRequest coming back from a form. I do this all the time in our projects and it gets really boring, especially with big forms. Anyway, with this patch you can just do this in the servlet:

HttpFormUtil.loadObject(request, hibernateObject);

Any fields that are named properly in the request are automatically loaded into the hibernate object, null values are ignored so you can do this with forms that only have part of an object's fields.

The patch contains a change to BasicRenderer to make constants in the generated class files, and the HttpFormUtil mentioned above.

It's a simple improvement, but it's already saved me lots of time, I hope someone finds it useful.

Matt



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to