Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Exceptions when using generics (was Upgrade from 1.1.0-M5 to 2.0.2)

Hello again,

after searching the whole day for a solution, I try to get a little help on the list.

After upgrading from Eclipselink 1.1.0 to 2.0.2, I always get Exceptions, when starting up the application:

Caused by: Exception [EclipseLink-7250] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException Exception Description: [class de.myapp.domain.MyClass] uses a non-entity [class java.lang.String] as target entity in the relationship attribute [field myfield].

I am using Generics - mabye, this causes the problem!?

The classes look like this:
--------------------------------------------
@Entity
public class MyClass extends MyGeneric<MyGenericType>{
......
} --------------------------------------------

@MappedSuperclass
@Cache(type=CacheType.NONE, alwaysRefresh=true)
public abstract class MyGeneric <F extends MyField > implements MyInterface { @ManyToOne private F myfield;
....
}
--------------------------------------------

What is wrong with this code?
Who can give me a little help?

Thank you very much!
Frank



Back to the top