[
https://issues.apache.org/jira/browse/WICKET-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov updated WICKET-2495:
------------------------------------
Attachment: WICKET-2495.patch
wicket-spring-jpa-legup-2495.tgz
Attaching a patch and a quickstart application.
As a quickstart I used http://www.jweekend.com/dev/LegUp -> Wicket + Spring +
JPA. Just doubled <bean class="com.mycompany.data.dao.jpa.EventDaoJPAImp"> with
a different name.
> @SpringBean should use field name for default bean name
> -------------------------------------------------------
>
> Key: WICKET-2495
> URL: https://issues.apache.org/jira/browse/WICKET-2495
> Project: Wicket
> Issue Type: Wish
> Affects Versions: 1.3.4
> Reporter: Ittay Dror
> Attachments: WICKET-2495.patch, wicket-spring-jpa-legup-2495.tgz
>
>
> When using @SpringBean, the bean is found either by name if the annotation
> specifies one or by field type.
> I'd like to suggest that if the annotation does not specify a name, then the
> field name is used as the bean name and only if a bean with that name is not
> found, is the type used.
> This is because I think most of the time people use a field names the same as
> the bean name (while there can be several beans of the same type)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.