Skip to content

Commit

Permalink
Merge pull request #9826 from ivangsa/b_mongodb_integration_tests_bugs
Browse files Browse the repository at this point in the history
fixes compilation problem for mondogodb/casandra (pkType)
  • Loading branch information
hdurix authored Jun 1, 2019
2 parents 3471543 + d2b7cba commit f54242c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ if (!viaService) {
resultEntity = asEntity(entityInstance); _%>
<%= asEntity(entityClass) %> <%= asEntity(entityInstance) %> = <%= dtoToEntity %>(<%= instanceName %>);
<%_ if (isUsingMapsId === true) { _%>
long <%= otherEntityName %>Id = <%= instanceName %>.get<%= mapsIdAssoc.relationshipNameCapitalized %>Id();
<%= pkType %> <%= otherEntityName %>Id = <%= instanceName %>.get<%= mapsIdAssoc.relationshipNameCapitalized %>Id();
<%= mapsIdRepoInstance %>.findById(<%= otherEntityName %>Id).ifPresent(<%= entityInstance%>::<%= otherEntityName %>);
<%_ } _%>
<%= asEntity(entityInstance) %> = <%= entityInstance %>Repository.save(<%= asEntity(entityInstance) %>);
<%= returnPrefix %> <%= entityToDto %>(<%= asEntity(entityInstance) %>);
<%_ } else { resultEntity = 'result'; _%>
<%_ if (isUsingMapsId === true) { _%>
long <%= otherEntityName %>Id = <%= instanceName %>.get<%= mapsIdAssoc.relationshipNameCapitalized %>().getId();
<%= pkType %> <%= otherEntityName %>Id = <%= instanceName %>.get<%= mapsIdAssoc.relationshipNameCapitalized %>().getId();
<%= mapsIdRepoInstance %>.findById(<%= otherEntityName %>Id).ifPresent(<%= instanceName%>::<%= otherEntityName %>);
<%_ } _%>
<%= returnPrefix %> <%= entityInstance %>Repository.save(<%= asEntity(entityInstance) %>);
Expand All @@ -59,7 +59,7 @@ if (!viaService) {
return result;
<%_ }}} else { _%>
<%_ if (isUsingMapsId === true && isController === false) { _%>
long <%= otherEntityName %>Id = <%= entityInstance %>.get<%= mapsIdAssoc.relationshipNameCapitalized %>().getId();
<%= pkType %> <%= otherEntityName %>Id = <%= entityInstance %>.get<%= mapsIdAssoc.relationshipNameCapitalized %>().getId();
<%= mapsIdRepoInstance %>.findById(<%= otherEntityName %>Id).ifPresent(<%= entityInstance%>::<%= otherEntityName %>);
<%_ } _%>
<%= returnPrefix %> <%= entityInstance %>Service.save(<%= instanceName %>);
Expand Down

0 comments on commit f54242c

Please sign in to comment.