I'm using Spring Boot with JPA to connect with my database. I need to set "catalog" property in @Table annotation on entities.
Basically is not a problem
@MappedSuperclass
@NoArgsConstructor
@Table(catalog = "catalog_name")
public abstract class AbstractEntity
but I have to find easy way to change the catalog value, cause that I have different values on different environments.
Could anyone know any other way how to change this by for example application.properties file instead of hardcoded string?
I would be grateful for any solution.