Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

define cache for sub classes in hibernaet?

 
Elhanan Maayan
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..

is it possible to define caches in subclasses?

the reason i'm asking is that we have an abstract entity framework class which all entities must extend, if we define this in hbm, the we cannot use cache element for joined-subclasss or union-subclass, only for subclass with discrimnator.

but that would mean that all of our entities would be in one table!, so that won't do. is there a way around this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic