Hello, > -----Original Message----- > From: Joerg Lensing [mailto:[EMAIL PROTECTED]
> >We use the "type-safe" enum pattern in our application, > > > >Then we implement a class > >DayOfWeekToIntConversion implements > >org.apache.ojb.broker.accesslayer.conversions.FieldConversion > > > > > i thought about this too, but i have several types like this > and i would > have to > write a conversion class for each type. Same with us. We use code generation to do so. You could, alternatively, let all your type-safe-enum classes implement a common interface (with two methods getAsInt() and a getForInt()) and write one common FieldConversion for these. Olli --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]