From: <leg...@at...> - 2003-09-04 17:44:33
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Thu, 4 Sep 2003 12:43 PM Body: easy one to do ;) Guess, i'll just do it as simple as possible and require you to format the value your self - so string's need to be quoted, ok ? That would allow you to specify whatever you want - even a method call. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-309 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-309 Summary: hbm2java: render default values specified in mapping in default constructor Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: toolset Assignee: Reporter: Klaus Zimmermann Created: Thu, 4 Sep 2003 10:12 AM Updated: Thu, 4 Sep 2003 10:12 AM Description: It would be nice to be able to specify default values in the mapping (via a meta-attribute?) which then would be rendered into the default constructor of automatically generated classes. Suggested syntax: <class name="foo"> <property name="name" type="string"> <meta attribute="default-value">bar</meta> </property> </class> --------------------------------------------------------------------- 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 |