From: <leg...@at...> - 2003-07-21 17:42:43
|
The following issue has been updated: Updater: Matt Hall (mailto:ma...@us...) Date: Mon, 21 Jul 2003 12:40 PM Comment: The utility that will load any hibernate object from an HttpServlet request as long as those constants are present. I've put it in the net.sf.hibernate.tools package for now. Changes: Attachment changed to HttpFormUtil.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-206&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-206 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-206 Summary: Fieldname constants generator, and Http form loader utility. Type: Improvement Status: Unassigned Priority: Major Project: Hibernate2 Components: toolset Versions: 2.0.2 Assignee: Reporter: Matt Hall Created: Mon, 21 Jul 2003 12:38 PM Updated: Mon, 21 Jul 2003 12:40 PM Description: This is a modification to BasicRenderer to generate a series of constants at the top of generated hibernate data objects that represent each property contained in the object. Looks something like: public static String FIELD_ID = "com.whatever.Category.id"; public static String FIELD_TYPE = "com.whatever.Category.type"; public static String FIELD_TITLE = "com.whateverCategory.title"; If you then use these constants to name your fields in a web form, you can use the other part of this submissions, HttpFormUtil, to load your hibernate data objects from an HttpServletRequest automatically via reflection. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |