Hi

Sorry to fast here

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

class Foo{
  private Object bar;
}

foo.setBar(object);

this is object now is an arraylist, then I persist it

entitymanager.persist(foo);

So then when I want to get it back I can read i out as an object an then
cast it to right type, and go on?

Have not used openjpa for advanced use cases yet, so have some questions

cheers, Håkon

2008/11/11 Håkon Sagehaug <[EMAIL PROTECTED]>

> 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 <[EMAIL PROTECTED]>
>
> 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)
>>
>>
>>
>>
>
>
> --
> 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)

Reply via email to