Hi Aribal,
I got round this problem by adjusting the torque code, so that the
SqlEnum class is public rather than private. The patch is below. It
hasn't been accepted to the torque code base because I think the torque
people were unsure why it was necessary. They asked me to provide a use
case, test code, but I haven't had time to do so; and in fact in the
short term it is simpler for me to re-apply the patch to new versions of
the torque code.
If you can think of a good way to explain to the torque developers why
this is a useful patch, then perhaps we can get it included in a future
release.
CHEERS> SAM
An�bal Rojas wrote:
>Sam,
>
> I noticed your thread about the visibility of SqlEnum. I am facing the
>same problem, if I acces the members of SqlEnum, but not the class itself,
>my code is going to be FULL of conditionals testing the equality of the
>comparators...
>
> How did you you manage to solve this problem?I was thinking about
>"invading" the torque name space, and provide a translator class...
>
> Regards,
>
>An�bal Rojas
>[EMAIL PROTECTED]
>www.valhallaproject.com
>58+212+242.66.62
>
>
>
>
>
>
Index: src/java/org/apache/torque/util/SqlEnum.java
===================================================================
RCS file:
/home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/util/SqlEnum.java,v
retrieving revision 1.4
diff -u -r1.4 SqlEnum.java
--- src/java/org/apache/torque/util/SqlEnum.java 20 Jan 2002 21:37:56 -0000
1.4
+++ src/java/org/apache/torque/util/SqlEnum.java 3 May 2002 02:06:43 -0000
@@ -64,7 +64,7 @@
* @version $Id: SqlEnum.java,v 1.4 2002/01/20 21:37:56 jon Exp $
* @since 3.0
*/
-class SqlEnum implements java.io.Serializable
+public class SqlEnum implements java.io.Serializable
{
private final String s;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>