cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [cayenne] 03/04: Merge PR #403
Date Mon, 02 Sep 2019 10:37:59 GMT
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 <stariy95@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);
     }


Mime
View raw message