cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tore Halset <hal...@pvv.ntnu.no>
Subject Re: Hook in the cayenne internals
Date Mon, 02 Apr 2007 12:58:06 GMT

On Apr 2, 2007, at 11:02, jerome moliere wrote:

> CREATE TABLE PAITINGS_TBL(painting_id int primary key,painting_data  
> bytea);
>
> CREATE TABLE ARTISTS_BIO(artist_id int primary key, artist_text_bio  
> bytea);
>
>
> in this schema 2 tables with 2 BLOB fields, the first one is simply  
> the JPEG
> while the second is a long text with all the artist bio...
>
> The extendedtype could permit me to change the Cayenne behavior but  
> for all
> bytea fields isn't it ?

No. You can map painting_data to Image and create an ExtendedType to  
handle Image. Your artist_text_bio should perhaps be of type text  
instead of bytea?

  - Tore.



Mime
View raw message