Changes for page EOF-Using EOF-EOGenerator
Last modified by Pascal Robert on 2012/01/21 22:03
From version 15.1
edited by Quinton Dolan
on 2007/07/17 02:07
on 2007/07/17 02:07
Change comment:
fixed formatting of mike's code (again) to better match original wiki. still looks aweful in safari.
To version 17.1
edited by David Holt
on 2007/08/14 11:27
on 2007/08/14 11:27
Change comment:
Corrected some slight errors in the code that were created in the transfer from the older Wiki
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. qdolan1 +XWiki.dholt - Content
-
... ... @@ -240,7 +240,7 @@ 240 240 241 241 public static <$classNameWithoutPackage$> fetchRequired<$classNameWithoutPackage$>(EOEditingContext _editingContext, EOQualifier _qualifier) { 242 242 <$classNameWithoutPackage$> eoObject = <$GEN_PREFIX$><$classNameWithoutPackage$>.fetch<$classNameWithoutPackage$>(_editingContext, _qualifier); 243 - if (eoObject h1.null) {243 + if (eoObject == null) { 244 244 throw new NoSuchElementException("There was no <$classNameWithoutPackage$> that matched the qualifier '" + _qualifier + "'."); 245 245 } 246 246 return eoObject; ... ... @@ -261,7 +261,7 @@ 261 261 {{code}} 262 262 263 263 public static <$classNameWithoutPackage$> localInstanceOf<$classNameWithoutPackage$>(EOEditingContext _editingContext, <$classNameWithoutPackage$> _eo) { 264 - return (_eo null) ? null : (<$classNameWithoutPackage$>)EOUtilities.localInstanceOfObject(_editingContext, _eo); 264 + return (_eo == null) ? null : (<$classNameWithoutPackage$>)EOUtilities.localInstanceOfObject(_editingContext, _eo); 265 265 } 266 266 267 267 {{/code}}