I've got an entity class and few services. That works well. But now I want to use a service inside an entity. I've added @Configurable
and @Transient
annotation to entity class and also <context:spring-configured />
statement to root-context.xml. Console says:
java.lang.NullPointerException
I've checked if service field is null and yes, it is. What is wrong?