|Inheritance and TYPE [message #1029202]
||Fri, 29 March 2013 09:54
| alexandre cartapanis
Registered: March 2013
Eclipselink 2.3.3, Java 1.6, PostgreSQL 8.4|
I have a very simple inheritance scheme, with a class "SubLine" that extends a "Line". The inheritance type is TABLE_PER_CLASS.
When i request with "select e from Line e" it returns both Lines and Sublines.
When i request with "select e from Line e where TYPE(e)=Line" i have an error :
Exception [EclipseLink-6093] (Eclipse Persistence Services - 2.3.3.v20120629-r11760): org.eclipse.persistence.exceptions.QueryException
Exception Description: Invalid Type Expression on [xxx.api.domain.model.line.Line]. The class does not have a descriptor, or a descriptor that does not use inheritance or uses a ClassExctractor for inheritance
How can i get lines without sublines? Why is the "type()" operator making this error? The operator "type()" can only be used with "SINGLE_TABLE" inheritance type?
Powered by FUDForum
. Page generated in 0.01701 seconds