File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes define cache for sub classes in hibernaet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "define cache for sub classes in hibernaet?" Watch "define cache for sub classes in hibernaet?" New topic
Author

define cache for sub classes in hibernaet?

Elhanan Maayan
Ranch Hand

Joined: May 04, 2009
Posts: 111
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: define cache for sub classes in hibernaet?
 
Similar Threads
what exactly meant by ANYCLASS.class
What do you do when you can't program BOTTOM-UP?
Cache Configuration problem
Efficient Caching
Relation between Hibernate Query Cache and Second Level Cache