You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by de...@apache.org on 2024/01/18 07:36:02 UTC

(empire-db) 01/01: EMPIREDB-415

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

derjan pushed a commit to branch EMPIREDB-415
in repository https://gitbox.apache.org/repos/asf/empire-db.git

commit 12cdaa75533f4e9a0a659b42d6a9f63dd25fe311
Author: Jan Glaubitz <ja...@glaubitz.org>
AuthorDate: Thu Jan 18 08:35:28 2024 +0100

    EMPIREDB-415
---
 .../src/main/java/org/apache/empire/samples/db/SampleApp.java       | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/empire-db-examples/empire-db-example-basic/src/main/java/org/apache/empire/samples/db/SampleApp.java b/empire-db-examples/empire-db-example-basic/src/main/java/org/apache/empire/samples/db/SampleApp.java
index 97cdee2c..5d0a98b3 100644
--- a/empire-db-examples/empire-db-example-basic/src/main/java/org/apache/empire/samples/db/SampleApp.java
+++ b/empire-db-examples/empire-db-example-basic/src/main/java/org/apache/empire/samples/db/SampleApp.java
@@ -637,6 +637,12 @@ public class SampleApp
         */    
         for (DataListEntry dle : list)
         {
+
+        	if (dle.hasField(DEP.ID)) {
+        		int depId = dle.getInt(DEP.ID);
+        		// what?
+        	}
+        	
             long empId = dle.getRecordId(EMP);
             // int depId = dle.getId(DEP);
             String empName = StringUtils.concat(", ", dle.getString(EMP.LAST_NAME), dle.getString(EMP.FIRST_NAME));