enum or FK question ?
- From: "tomo" <tomo@xxxxxxxx>
- Date: Tue, 22 Dec 2009 08:35:42 +0100
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
.
- Follow-Ups:
- Re: enum or FK question ?
- From: Martin Gregorie
- Re: enum or FK question ?
- Prev by Date: Re: Clean way to write Double into String without the trailing ".0" ?
- Next by Date: Re: Clean way to write Double into String without the trailing ".0" ?
- Previous by thread: %%%%Suit- www.366deal.com
- Next by thread: Re: enum or FK question ?
- Index(es):
Relevant Pages
|