From 7585e0251b3ed8da77c5d40dc03712680e027ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Julliand?= Date: Tue, 20 Jan 2026 22:17:55 +0100 Subject: [PATCH 1/2] Add 'table' field to ColumnMetadata To be merged after https://github.com/Mapepire-IBMi/mapepire-server/pull/131 Adds the `table` field added in https://github.com/Mapepire-IBMi/mapepire-server/pull/131 to the column metadata. --- .../mapepire_ibmi/types/ColumnMetadata.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java b/src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java index 54458e3..cd1dc3b 100644 --- a/src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java +++ b/src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java @@ -66,6 +66,12 @@ public class ColumnMetadata { @JsonProperty("writeable") private boolean writeable; + /** + * The column's table name. + */ + @JsonProperty("table") + private String table; + /** * Construct a new ColumnMetadata instance. */ @@ -281,4 +287,23 @@ public boolean getWriteable() { public void setWriteable(boolean writeable) { this.writeable = writeable; } + + /** + * Get the column's table name. + * + * @return The column's table name. + */ + public String getTable() { + return table; + } + + /** + * Set the column's table name. + * + * @param table The column's table name. + */ + public void setTable(String table) { + this.table = table; + } } + From b060c1fcd4f83c537af3891471d4c01aa4abe431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Julliand?= Date: Mon, 26 Jan 2026 17:03:44 +0100 Subject: [PATCH 2/2] Add 'table' parameter to ColumnMetadata constructor Updated the constructor to include the 'table' parameter. --- .../java/io/github/mapepire_ibmi/types/ColumnMetadata.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java b/src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java index cd1dc3b..0b763f7 100644 --- a/src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java +++ b/src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java @@ -93,9 +93,10 @@ public ColumnMetadata() { * @param readOnly Indicates whether the column is definitely not writable. * @param writeable Indicates whether it is possible for a write on the * column to succeed. + * @param table The column's table name. */ public ColumnMetadata(int displaySize, String label, String name, String type, int precision, int scale, - boolean autoIncrement, int nullable, boolean readOnly, boolean writeable) { + boolean autoIncrement, int nullable, boolean readOnly, boolean writeable, String table) { this.displaySize = displaySize; this.label = label; this.name = name; @@ -106,6 +107,7 @@ public ColumnMetadata(int displaySize, String label, String name, String type, i this.nullable = nullable; this.readOnly = readOnly; this.writeable = writeable; + this.table = table; } /** @@ -307,3 +309,4 @@ public void setTable(String table) { } } +