Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPQL: refering to inherited attribute.

 
siv sanny
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have following entities:
@Entity
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).


Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic