Please enable JavaScript.
Coggle requires JavaScript to display documents.
JPA (Inheritance (Strategies (single table per class hierarchy, joined…
JPA
Inheritance
Strategies
single table per class hierarchy
joined subclass (table per subclass)
table per concrete entity class
Superclasses
Abstract entity class
Mapped superclass
Non entity [abstract] superclass
Hibernate
Caching
First level cache (Entity/Session)
Query cache
Stores ids only
Works properly only with HQLs
Disabled by default
Queries should be marked for caching explicitly
Second level cache (SessionFactory)
Stores entity states
Evicts cache when modification happens
By default has one context region
Collections are not cached by default
Strategies
ENABLE_SELECTIVE
DISABLE_SELECTIVE
ALL
NONE
Disabled by default
Entities should be marked for caching explicitly
Usage
Read only
Read Write
Transactional
NonStrict Read Write
None
Notes
Read documentation when use with JTA;
additional settings should be provided