I have an entity class that uses @NamedStoredProcedureQuery that contains an attribute (procedureName) for the stored procedure name. The name of the stored procedure that is used for querying is different in different environments, as a result of which I want to fetch the name from the properties file (the properties file are different for different environments as well).
I saw a similar question similar question in SO where people mention that it should not be done, but is'nt this a use case? Could this be done differently without the need to access property files?