Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sapphire-dev] @NoDuplicates question

 
I have a simple issue that I don't know how to address. I have a 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" )

Unfortnately the only solution I came up with was to duplicate the classs (about 15), while the only difference between them is the @NoDuplicates annotation. Can someone suggest a better way?

Thanks,
Ling


Back to the top