Annotation Interface StartupPersistence


@Target({TYPE,METHOD,PARAMETER,FIELD}) @Retention(RUNTIME) @Documented @Qualifier public @interface StartupPersistence
Qualifier for system-level Persistence instance against the system realm needed for node management.

This qualifier is only needed and should only be used by code used to initialize the application. There is really no need to use this qualifier in any application code.

The qualified Persistence instance has no functional IdGenerator.

A system-realm Persistence instance can be @Injected as an @ApplicationScoped bean using

@ApplicationScoped
class MyBean {
    @Inject @StartupPersistence Persistence startupPersistence;
}
See Also: