Hi, Using mapper I have this:
object FuelTypes extends Enumeration { val Diesel = new Val(1, "Diesel") val Petrol = new Val(2, "Benzin") } object fuelType extends MappedEnum(this, FuelTypes) This works, but the database value then becomes a meaningless number What is the best way to have some kind of enumeration-like values in the Scala code (ie Diesel & Petrol) and store something sensible in the DB (ie 'D' and 'P')? /Jeppe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---