Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] What cause this exception

Hi Tim,

It a simply unidirectional association. I have always used @Basic with Hibernate 3.x and Toplink. I have not had problems in the past.


@Basic

This annotation is used to define a field of the class as persistent. Specified on the field/method.

Attribute Type Description Default
fetch FetchType Type of fetching for this field LAZY | EAGER
optional boolean Whether this field having a value is optional (can it have nulls) true | false

@Entity
public class Person
{
    @Id
    long id;

    @Basic(optional=false)
    String forename;
    ...
}


Thanks,
Joel

On 2 Jan 2009, at 15:13, Tim Hollosy wrote:

Joel,
Please just post code samples/traces inline instead of as attachments,
many people aren't going to go through the trouble of downloading
attachments.

Anyway, looks like it's having a problem deserializing UsemeSession
from your @Basic mapping on ProjectRegistration.

I don't have any experience with using @Basic, what's the relationship
in your model between ProjectRegistration and UsemeSession? A
OneToOne? OneToMany?

Thanks,
Tim


On Thu, Jan 1, 2009 at 9:44 AM, Joel Rosi-Schwartz
<Joel.Rosi-Schwartz@xxxxxxxxx> wrote:
I've attached the entities. I am not casting at all as far as I can tell.
But yes this seems weird to me :-(




On 1 Jan 2009, at 14:23, Tim Hollosy wrote:

Maybe post your entities? It looks like it's trying to do some weird
casting...

./tch



On Thu, Jan 1, 2009 at 9:21 AM, Joel Rosi-Schwartz
<Joel.Rosi-Schwartz@xxxxxxxxx> wrote:

Allow me to detail my environment as I should have done originally. I am
using "EclipseLink 1.0.2 OSGi Bundles" <eclipselink-plugins-1.0.2.zip> in
an
OSGi environment using Equinox 3.4.1.

Thanks,
Joel


On 31 Dec 2008, at 22:38, Joel Rosi-Schwartz wrote:

Hi,

I have Googled for an answer, but I do not even find any hints. What
have
I done wrong to be getting the exception in the attached stacktrace.

Many thanks,
Joel

<stacktrace.txt>
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top