From c990642def30a833f19419d6729bfe29e1c54aab Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 11 Dec 2023 12:39:42 +0100 Subject: [PATCH] model factory extended this also fixes a problem with the attribute lookup --- src/de/schoenbeck/serverprint/model/SPFactory.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/de/schoenbeck/serverprint/model/SPFactory.java b/src/de/schoenbeck/serverprint/model/SPFactory.java index 0016da6..ecd8804 100644 --- a/src/de/schoenbeck/serverprint/model/SPFactory.java +++ b/src/de/schoenbeck/serverprint/model/SPFactory.java @@ -18,6 +18,7 @@ public Class getClass(String tableName) { case MPrinterAttributeValue.Table_Name: return MPrinterAttributeValue.class; case MPrinterConfig.Table_Name: return MPrinterConfig.class; case MPrinterConfigAttr.Table_Name: return MPrinterConfigAttr.class; + case MPrinterProvider.Table_Name: return MPrinterProvider.class; } return null; } @@ -35,6 +36,7 @@ public PO getPO(String tableName, int Record_ID, String trxName) { case MPrinterAttributeValue.Table_Name: return new MPrinterAttributeValue(Env.getCtx(), Record_ID, trxName); case MPrinterConfig.Table_Name: return new MPrinterConfig(Env.getCtx(), Record_ID, trxName); case MPrinterConfigAttr.Table_Name: return new MPrinterConfigAttr(Env.getCtx(), Record_ID, trxName); + case MPrinterProvider.Table_Name: return new MPrinterProvider(Env.getCtx(), Record_ID, trxName); } return null; } @@ -49,6 +51,7 @@ public PO getPO(String tableName, ResultSet rs, String trxName) { case MPrinterAttributeValue.Table_Name: return new MPrinterAttributeValue(Env.getCtx(), rs, trxName); case MPrinterConfig.Table_Name: return new MPrinterConfig(Env.getCtx(), rs, trxName); case MPrinterConfigAttr.Table_Name: return new MPrinterConfigAttr(Env.getCtx(), rs, trxName); + case MPrinterProvider.Table_Name: return new MPrinterProvider(Env.getCtx(), rs, trxName); } return null; }