Interface QueryConfiguration


public interface QueryConfiguration
Interface for classes annotated with NamedQueries and NamedNativeQueries. Provides a mechanism for creating generic classes for grouping named queries without having to explicitly declare them at the top of individual Entity implementation classes.

Declaring a query configuration class for the system to harvest named queries from is as simple as making the class implement this interface, implementing the required method(s), and having spring recognize the class as a bean - either through Configuration class, component scanning or xml declaration.
Author:
Jeff Fischer
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • getPersistenceUnit

      String getPersistenceUnit()