You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TODO: Move to Spring Data for Apache Geode (SDG) Issues since the @EnableEntityDefinedRegions annotation is specific to Spring Data Geode.
jxblum
changed the title
Inheriting from data objects causes failure when using entity-defined regions.
Inheriting from entity types causes failure when using entity-defined Regions
Mar 2, 2022
Failure:
The bean 'Person' could not be registered. A bean with that name has already been defined and overriding is disabled.
Scenario:
This occurs when a class extends a data class annotated with
@Region
, even if the subclass is not used.Example:
If
Customer
doesn't extendPerson
, there is no issue, but if it does, the application context will fail to load.Work arounds:
spring.main.allow-bean-definition-overriding
to trueRepo reproducing issue: https://github.com/yozaner1324/SBDG-using-sealed-classes
The text was updated successfully, but these errors were encountered: