From: <leg...@at...> - 2003-12-06 15:09:43
|
The following issue has been updated: Updater: Emmanuel Bernard (mailto:epb...@us...) Date: Sat, 6 Dec 2003 9:09 AM Comment: Here is a patch on top of the 2.1 branch on 12/6/2003. A not-null="true" component will raise a PropertyValueException if null. A not-null="false" component having not-null="true" sub component will also raise a PropertyValueException to be consistent whith the property behavior. component, dynamic-component, composite-element and nested-composite elements allow this functionality. Tests in the patch are hugly but do their job (dynamic-component not tested however). Changes: Attachment changed to notnullcomponent.hib2.1.patch --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-31&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-31 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-31 Summary: Component not null Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Assignee: Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:18 AM Updated: Sat, 6 Dec 2003 9:09 AM Description: Component not null When all properties of component have null value Hibernate not instantiate that class. It will be nice to be able define will or will not component be instantiated in case all properties are null. For example if there are no values of columns "address_city" and "address_street" but address must not be null the instance of Address class must be assigned to property Enterprise.address. <class name="Enterprise"> <property name="name"/> <component name="address" class="Address" <b>not-null="true"</b>> <property name="city" column="address_city"/> <property name="street" column="address_street"/> </component> </class> With best regards. Dmitry M.ivlev http://sourceforge.net/tracker/index.php?func=detail&aid=706054&group_id=40712&atid=428711 --------------------------------------------------------------------- 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 |
From: <leg...@at...> - 2004-01-18 00:55:59
|
The following issue has been updated: Updater: Max Rydahl Andersen (mailto:ma...@hi...) Date: Sat, 17 Jan 2004 6:54 PM Changes: Component changed to core --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-31&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-31 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-31 Summary: Component not null Type: Improvement Status: Unassigned Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate2 Components: core Assignee: Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:18 AM Updated: Sat, 17 Jan 2004 6:54 PM Description: Component not null When all properties of component have null value Hibernate not instantiate that class. It will be nice to be able define will or will not component be instantiated in case all properties are null. For example if there are no values of columns "address_city" and "address_street" but address must not be null the instance of Address class must be assigned to property Enterprise.address. <class name="Enterprise"> <property name="name"/> <component name="address" class="Address" <b>not-null="true"</b>> <property name="city" column="address_city"/> <property name="street" column="address_street"/> </component> </class> With best regards. Dmitry M.ivlev http://sourceforge.net/tracker/index.php?func=detail&aid=706054&group_id=40712&atid=428711 --------------------------------------------------------------------- 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 |