never tried this, but usually when you add an Object of whatever class, JPA 
will store it in a BLOB in a serialised form.

LieGrue,
strub


--- Håkon Sagehaug <[EMAIL PROTECTED]> schrieb am Di, 11.11.2008:

> Von: Håkon Sagehaug <[EMAIL PROTECTED]>
> Betreff: Using object as a type for a filed in a enity
> An: [email protected]
> Datum: Dienstag, 11. November 2008, 15:52
> Hi all,
> 
> I'm wondering if it's possible to have a field in a
> entity class as type
> object like this
> 
> private Object ob;
> 
> And how will the database table look for this enity, as a
> byte type or
> something??
> 
> cheers, Håkon
> 
> 
> -- 
> Håkon Sagehaug, Software Developer
> Parallab, Bergen Center for Computational Science (BCCS)
> UNIFOB AS (University of Bergen Research Company)



Reply via email to