You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Joerg Lensing <in...@softcon-lensing.de> on 2003/06/26 10:28:51 UTC

Re: mapping

oliver.matz@ppi.de schrieb:

>or maybe BYTE?
>  
>
yes, this would be ok took,

>we have the same situation.
>We use the "type-safe" enum pattern in our application,
>i.e., a class DayOfWeek with a private constructor
>and seven static fields of type DayOfWeek, namely MONDAY,
>TUESDAY and so on.
>
>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.

joerg