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?