enum or FK question ?



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




.



Relevant Pages

  • another prob
    ... thanks a lot those who helped with the switch statements. ... The 7th step states (in the constructor of the car class pass the car model ... I would be very grateful if you could please help me. ...
    (comp.lang.java.help)
  • Re: Private Constructor
    ... > public static string Name ... > I intended to create an enumeration class similar to Color ... Car car = car.NISSAN; ...
    (microsoft.public.dotnet.languages.csharp)
  • Generics Serialization Exception
    ... Public Class Car { ... public NullableMeter; ... Car car = new Car; ... If I remove [XmlAttribute] then no problem it works. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Another simple problem
    ... > What if you wanted a method called newunder Foobar obj? ... > But then the Car() method call doesn't make sense. ... All I was proposing was changing the syntax of the constructor ...
    (comp.lang.java.programmer)
  • RE: Selecting data that matches all conditions
    ... If one of the owners also owns another car together with a third ... carId int not null identityprimary key, ... personId int not null references dbo.persons, ...
    (microsoft.public.sqlserver.programming)