Skip to content

Commit 281cfe0

Browse files
committed
- fixes a bug where passing a non property would generate invalid methods
1 parent 6d3e786 commit 281cfe0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Templates/Java/requests_extensions/IBaseEntityCollectionReferenceRequest.java.tt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@ import <#=importNamespace#>.http.IHttpRequest;
1212
import <#=mainNamespace#>.<#=c.GetPackagePrefix()#>.<#=c.TypeName()#>;
1313

1414
<#=TypeHelperJava.CreateInterfaceDef(c.ITypeCollectionReferenceRequest())#>
15-
15+
<#
16+
var navigationProperty = c.AsOdcmProperty().GetServiceCollectionNavigationPropertyForPropertyType(((CustomT4Host)Host).CurrentModel);
17+
if (navigationProperty != null) {
18+
#>
1619
void post(final <#=c.TypeName()#> new<#=c.TypeName()#>, final ICallback<? super <#=c.TypeName()#>> callback);
1720

1821
<#=c.TypeName()#> post(final <#=c.TypeName()#> new<#=c.TypeName()#>) throws ClientException;
1922

23+
<# } #>
2024
<# if (c.GetFeatures().CanSelect) { #>
2125
<#=c.ITypeCollectionReferenceRequest()#> select(final String value);
2226

0 commit comments

Comments
 (0)