From eaaa4d6e6b6c918c48ee8eaf91429f123236aa52 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 27 Oct 2008 07:36:39 +0000 Subject: [PATCH] * Fixed non Serializable exception. --- base/src/org/compiere/db/CConnection.java | 9 +------ .../org/compiere/db/SecurityPrincipal.java | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 base/src/org/compiere/db/SecurityPrincipal.java diff --git a/base/src/org/compiere/db/CConnection.java b/base/src/org/compiere/db/CConnection.java index f795e5bd18..7854fc60a3 100644 --- a/base/src/org/compiere/db/CConnection.java +++ b/base/src/org/compiere/db/CConnection.java @@ -1666,12 +1666,5 @@ public class CConnection implements Serializable, Cloneable Connection con = cc.getConnection (false, Connection.TRANSACTION_READ_COMMITTED); new CConnectionDialog(cc); - } // main - - - private class SecurityPrincipal { - String principal; - String credential; - } - + } // main } // CConnection diff --git a/base/src/org/compiere/db/SecurityPrincipal.java b/base/src/org/compiere/db/SecurityPrincipal.java new file mode 100644 index 0000000000..396caa44e5 --- /dev/null +++ b/base/src/org/compiere/db/SecurityPrincipal.java @@ -0,0 +1,27 @@ +/****************************************************************************** + * Copyright (C) 2008 Low Heng Sin * + * This program is free software; you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program; if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + *****************************************************************************/ +package org.compiere.db; + +import java.io.Serializable; + +/** + * Use by CConnection to store authentication info for application server. + * @author Low Heng Sin + * + */ +class SecurityPrincipal implements Serializable { + private static final long serialVersionUID = 1L; + + String principal; + String credential; +}