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:
Code:
<bean id="sampleEntityDao" parent="genericDaoBase">
 <property name="target">
  <bean parent="genericDaoTarget">
   <property
     name="entityClass"
     value="org.company.SampleEntity" />
  </bean>
 </property>
</bean>
with a custom @annotation on the SampleEntity class.
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)