• 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?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!