I have a class to map a table for using hibernate. There are some variable I want to ignore for mapping to use as constant. And I want to load constant value from properties so I code it like this:
@Transient
@Value("${something.value}")
private int MY_VALUE;
But, the value of MY_VALUE
is always set to 0. Can't I use @Transient annotation with @Value annotation? Or I missed something else?