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

ejbql related to inheritance

 
Derek Bright
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i would like to know if there is a way to create ejb query to retrieve a particular sub-class of a parent-class. Example:

abstract class test

class finalTest extends test

so is it possible to have a ejbql whereby i am able to call from the test and retrieve just the finalTest...

something like "SELECT ft FROM test t"
 
Derek Bright
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just to add on to my question, is it possible to use the dtype in ejbql or are there some other alternatives?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic