Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Re: The Java type [null] is not a valid database type -- any clues?

On Mon, Jun 29, 2009 at 12:44 PM, Laird Nelson <ljnelson@xxxxxxxxx> wrote:
I've gotten this error while marking up some Entities and running them through unit tests.  Both Hibernate and OpenJPA deal with my setup just fine, but it looks like at EntityManagerFactory creation time, EclipseLink barfs with this error.  I've reproduced the stack below.

Through some blind trial and error, I found where this bug is.

I have one entity, call it B, that has an @EmbeddedId field that consists of four columns.

I have another entity, call it A, that has a @ManyToOne relationship with B.  The field in question is annotated like this:

@ManyToOne
private B b;

If I mark this relationship instead as @Transient, the exception previously described goes away.  In either case, tests run wiith Hibernate and OpenJPA pass.

Any idea what's going on here?

I am using EclipseLink v1.1.2-SNAPSHOT, downloaded via Maven.

Thanks,
Laird

Back to the top