openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Håkon Sagehaug" <Hakon.Sageh...@bccs.uib.no>
Subject Re: Using object as a type for a filed in a enity
Date Tue, 11 Nov 2008 15:21:50 GMT
Hi

Let say i the have a list as teh object i wan to save. And I've got this
setup

class Foo{

}

2008/11/11 Mark Struberg <struberg@yahoo.de>

> 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 <Hakon.Sagehaug@bccs.uib.no> schrieb am Di, 11.11.2008:
>
> > Von: Håkon Sagehaug <Hakon.Sagehaug@bccs.uib.no>
> > Betreff: Using object as a type for a filed in a enity
> > An: users@openjpa.apache.org
> > 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)
>
>
>
>


-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message