You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2019/09/02 10:37:59 UTC

[cayenne] 03/04: Merge PR #403

This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git

commit b61e0e670108607cd45e8ed0df89b77cafd1881b
Author: Nikita Timofeev <st...@gmail.com>
AuthorDate: Mon Sep 2 13:32:26 2019 +0300

    Merge PR #403
---
 .../cayenne/access/translator/select/PathTranslationResult.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/PathTranslationResult.java b/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/PathTranslationResult.java
index fe4968b..39ee889 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/PathTranslationResult.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/access/translator/select/PathTranslationResult.java
@@ -37,12 +37,14 @@ interface PathTranslationResult {
 
     Optional<DbRelationship> getDbRelationship();
 
-    Optional<Embeddable> getEmbeddable();
-
     List<DbAttribute> getDbAttributes();
 
     List<String> getAttributePaths();
 
+    default Optional<Embeddable> getEmbeddable() {
+        return Optional.empty();
+    }
+
     default DbAttribute getLastAttribute() {
         return getDbAttributes().get(getDbAttributes().size() - 1);
     }