I have some interfaces defined as follows:
public interface WithId {
String getId();
}
public interface MyObject extends WithId {
//getId() is inherited
//Some more methods, properties, etc
}
When I try to register the object (with the following), it fails to detect the id property as expected:
Javers javers = JaversBuilder.javers()
.withMappingStyle(MappingStyle.BEAN)
.registerEntity(new EntityDefinition(MyObject.class, "id"))
.build();
The error I get is: PROPERTY_NOT_FOUND: property 'id' not found in class 'MyObject'
If the getId() method is directly on MyObject, then the code above works as expected. This is using javers-core version 3.7.5.
I have some interfaces defined as follows:
When I try to register the object (with the following), it fails to detect the
idproperty as expected:The error I get is:
PROPERTY_NOT_FOUND: property 'id' not found in class 'MyObject'If the
getId()method is directly onMyObject, then the code above works as expected. This is usingjavers-coreversion 3.7.5.