> Hello,
>
> I don't remember seen in any tutorial how to persist Buffers with the
> Java Persistence API.
>
> Does somebody know how to do ?
You can't, well because Buffers don't implement Serializable. You will
need to flush that Buffer out into something Serializable like an array
and then send that information to session bean or direct to an ejb.
If you still have questions, post away. ;)
Vincent Cantin - 21 Jul 2006 20:23 GMT
Danno a écrit :
>> Hello,
>>
[quoted text clipped - 8 lines]
>
> If you still have questions, post away. ;)
Well, I plan to use a persistence mecanism in a JSE program. Is there
some alternatives to javax.persistence that enable me to persist my data
as easily as it could be ?
I still need to have some kind of entities saved separately but I also
need to have something that can embed my serializable objects like the
classic serialization. Does it exist?
Danno - 22 Jul 2006 10:07 GMT
> Danno a écrit :
> >> Hello,
[quoted text clipped - 17 lines]
> need to have something that can embed my serializable objects like the
> classic serialization. Does it exist?
You can still use the java persistence API, but you have to convert
your java.nio.Buffer to and array before doing so. ;)