Domanda

Eclipselink offers this config parameter: eclipselink.cache.size.default.

It also offers an entity cache size: eclipselink.cache.size.Employee (if you had an entity called Employee.

So If I set: eclipselink.cache.size.default=500, does that mean 500 total slots for all entities? Or 500 slots per each type of Entity?

Thanks!

È stato utile?

Soluzione

Each entity has its own cache, and will use the default size of 500. Inheritance is one case where this isn't true - subclasses do not have their own cache and instead use root entity's cache. So if you had Employee extend a Person entity, there would be a cache of up to 500 Person instances, which would include Employee and any other subclass instances as well.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top