• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPQL: refering to inherited attribute.

siv sanny
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have following entities:
Inheritance type is JOINED.
class E{
String name;

@Entity class EA extends E{
int number;

@Entity class EB extends EA{
long value;

@Entity class EC extends EB{

In the JPQL is there a way to refer to the inherited attribute with out knowing the exact subclass ? (ec.super.value or ec.super.name)

I am using EclipseLink 1.2, Is there a way to do this in EclipseLink(I con't use Query-By-Example).

my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!