>
> you just don�t stop do you :)?
>
> i�m developing this little tool that allows to map all tables from a given
> database to entity beans
> it generates remote, bean, home and bulk data classes with all the sets
and
> gets
>
> i need help to map java.sql.Types to java types/objects if someone could
> provide me a mapping i�d be grateful
>

JDBC Type              Java Type
CHAR                   String
VARCHAR                String
LONGVARCHAR            String
NUMERIC                java.math.BigDecimal
DECIMAL                java.math.BigDecimal
BIT                    boolean
TINYINT                byte
SMALLINT               short
INTEGER                int
BIGINT                 long
REAL                   float
FLOAT                  double
DOUBLE                 double
BINARY                 byte[]
VARBINARY              byte[]
LONGVARBINARY          byte[]
DATE                   java.sql.Date
TIME                   java.sql.Time
TIMESTAMP              java.sql.Timestamp
CLOB                   Clob
BLOB                   Blob
ARRAY                  Array
DISTINCT               mapping of underlying type
STRUCT                 Struct
REF                    Ref
JAVA_OBJECT            underlying java class


> no config files are accepted yet (i�m working on it) so to change
parameters
> u have to change source code :(, if someone wants to give it a shot i�ll
> send source code by email
>
> regards
> Roberto
>



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to