anyone using xmlbeans with enumerations with ibatis?

2007-05-16 Thread Rusty Wright
antiate an Enum, which makes sense since it's final. My workaround was to write a ProductWrapper which takes a Product arg for its constructor and it has getters for the various Product fields, and to use the ProductWrapper with ibatis. I was wondering if there's a better way. Tha

Re: iBATIS Survey (10 Minutes)

2007-07-09 Thread Rusty Wright
Clinton Begin wrote: ... Worry not ... Spoilsport! -- Rusty Wright UC Berkeley IS&T Web Applications 510-643-9097 office 925-212-3774 cell

Re: Re : Re : Re : Re : Log4j again... sorry

2007-09-04 Thread Rusty Wright
I don't know if this is what is affecting you but I find the log4j properties file format confusing and error prone so I use the xml format. Here is my log4j.xml file: http://logging.apache.org/log4j/docs/api/org/apache/log4j/xml/log4j.dtd";> http://jakarta.apache.org/log4j/";>

Re: Re : Re : Re : Re : Log4j again... sorry

2007-09-04 Thread Rusty Wright
I don't know if this is what is affecting you but I find the log4j properties file format confusing and error prone so I use the xml format. Here is my log4j.xml file: http://logging.apache.org/log4j/docs/api/org/apache/log4j/xml/log4j.dtd";> http://jakarta.apache.org/log4j/";>

best way to use a Map?

2007-10-05 Thread Rusty Wright
I'm trying to figure out how to set up storing a Map of pairs of numbers. I have a Photo object, and it has a Map of the different sizes in which the Photo is stored on disk. The map keys are SIZE1, SIZE2, and SIZE3 (an enum; the map is an EnumMap). The values in the Map are a simple object,

Re: best way to use a Map?

2007-10-06 Thread Rusty Wright
idth and height because this is for a web app and I need those 2 values for the IMG tag. Ole Trenner wrote: (sorry if this message is a duplicate) Rusty Wright wrote: I'm trying to figure out how to set up storing a Map of pairs of numbers. I have a Photo object, and it has a Map of th

Re: best way to use a Map?

2007-10-07 Thread Rusty Wright
orMap and make the sizeKey (which could be size1, size2, size3, size4...) the key of the Map. Additionally it would be helpful if you posted some of your code. Your explanation is a bit abstract... an EnumMap? Thanks, Brandon Goodin On 10/6/07, Rusty Wright <[EMAIL PROTECTED