Hi,

Does MyObject have a one-arg string constructor? Can you post the full
stack trace?

-Patrick

On Dec 28, 2007 8:28 PM, Stefan Handschuh <[EMAIL PROTECTED]> wrote:
> Everytime I try to persist an object which contains a field with a
> "@Externalizer"-tag, I get a ClassCastException.
>
> You may stick to the doc to reproduce:
>
>
> @Persistent
> @Externalizer("toString")
> private MyObject someObject;
>
>
> The database-field is created correctly but on-persist the
> ClassCastException "could not cast from MyObject to String"
>
> Can someone reproduce this?
>
> Thanks!
>



-- 
Patrick Linskey
202 669 5907

Reply via email to