Hibernate / EclipseLink Interview questions
What are EclipseLink descriptors?
A ClassDescriptor is EclipseLink's internal, runtime representation of everything it knows about how a given entity class maps to the database: its table, its fields and their column mappings, its relationships, caching policy, and query manager. Every entity has exactly one descriptor, built up from the entity's annotations (or XML mapping) when the persistence unit initializes.
Descriptors are the object that Customizers operate on directly, and they're also where EclipseLink stores metadata not exposed through any annotation, which is precisely why the Customizer mechanism exists: some fine-grained configuration only has a corresponding descriptor-level API, with no equivalent annotation to set it declaratively.
More Related questions...