Announcement Announcement Module
No announcement yet.
Spring Data generated repository bean IDs Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Data generated repository bean IDs

    The automatic repository config uses the interfaces short name as bean id. Is it possible to change the id generation strategy? For naming autodetected components on classpath scanning its possible to provide a BeanNameGenerator strategy to the scanner. But I can't find a similar solution for Spring Data.

    Our application consists of serveral modules configured by xml. As we want to avoid name clashes we decided to name beans containing its package.

    It would also be helpful when this could be done manually by using the id property of the xml repository element, instead of resolving the inteface name by the provided id.