Community
Participate
Working Groups
Original question: I have a simple issue that I don't know how to address. I havea list of ICachingScheme that has a name field that should be unique which works simply with @NoDuplicates. But sometimes these ICachingSchemes are used as an ElementProperty. In these cases, I get the following error in the console: ERROR : Invalid model path "#/SchemeName" evaluated on oracle.eclipse.tools.coherence.descriptors.cacheConfig.ICachestoreScheme. UniqueValueValidationService contains a check for the parent to be a list, so the error came from this annotation when the parent is an ElementProperty and not a ModelElementList: @DependsOn( "*/SchemeName" ) Kosta: Go ahead an open a bug on this. Using @NoDuplicates annotation automatically generates a property dependency (you don’t need to use @DependsOn explicitly). The dependency needs to be sensitive to context and only get generated if parent is a list.
Fixed. As part of the fix, the dependencies are surfaced and can be customized via new DependenciesService API.
Verified, closing.