In our application we generate lots of services using templates.
I would like to replace the humongous XML declarations with @Annotations.
I am having difficulty finding any information on the subject.
I would like to replace:
with a custom @annotation on the SampleEntity class.Code:<bean id="sampleEntityDao" parent="genericDaoBase"> <property name="target"> <bean parent="genericDaoTarget"> <property name="entityClass" value="org.company.SampleEntity" /> </bean> </property> </bean>
The genericDaoBase and genericDaoTarget specify the class.
We have lots and lots of those!
We also have similar declarations with other types of beans...
I rarely feel this puzzled.
Target: Springframework [2.5.6 .. 3)


Reply With Quote
