From 35ca25e2ee1d7a0eef06009ea1a8bb9b1437ecaf Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 27 Aug 2008 09:17:34 +0000 Subject: [PATCH] MResource: added toString() method, useful for logging --- base/src/org/compiere/model/MResource.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/base/src/org/compiere/model/MResource.java b/base/src/org/compiere/model/MResource.java index e90b061e2f..2a7e94be48 100644 --- a/base/src/org/compiere/model/MResource.java +++ b/base/src/org/compiere/model/MResource.java @@ -33,6 +33,8 @@ import org.compiere.util.CCache; */ public class MResource extends X_S_Resource { + private static final long serialVersionUID = 1L; + /** Cache */ private static CCache s_cache = new CCache(Table_Name, 20); @@ -149,4 +151,14 @@ public class MResource extends X_S_Resource return success; } // afterSave + public String toString() + { + StringBuffer sb = new StringBuffer ("MResource[") + .append(get_ID()) + .append(", Value=").append(getValue()) + .append(", Name=").append(getName()) + .append("]"); + return sb.toString(); + } + } // MResource