T
tomo
public class Car{
long carId;
short carType;
}
This class is mapped to table Car. So my question is is it better to have
one more table names let's say CAR_TYPE which will have have columns like
(NUMBER(15) type Id, VARCHAR2(200) typeName) and than a FK from
table CAR or an ENUM names CAR_TYPE ?
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4640 (20091126) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
long carId;
short carType;
}
This class is mapped to table Car. So my question is is it better to have
one more table names let's say CAR_TYPE which will have have columns like
(NUMBER(15) type Id, VARCHAR2(200) typeName) and than a FK from
table CAR or an ENUM names CAR_TYPE ?
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4640 (20091126) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com