I have following when defining a constructor of a bean:
Why am I forced to name my bean (i'm calling it sf1).
<bean id="sf1" parent="default.sessionFactory">
However, if I don't use the parent and define the whole bean then I don't need to specify the id (ids for inner beans are meaningless).
I would like to treat these "inner beans" like annoymous classes where I don't need to specify ids since it should only exist in the inner portion of definition (i.e sf1 should never be accessible anywhere else).