I'm trying to set an attribute in an annotation, using Spring @Value, but I get Type mismatch: cannot convert from Value to String. Here is what I tried:
@Table(name = "myTable", catalog = @Value("${database.myCatalog}") )
Is it possible? And if yes, how to do it?