This is probably a lack of understanding on my part, but I am getting this error trying to commit changes to the repository:
JaversException: GENERIC_TYPE_NOT_PARAMETRIZED JaVers runtime error - expected actual Class arguments in type 'java.util.List<java.util.List<java.lang.String>>'. Javers needs to know what kind of content is stored in your collections. Try at least <Object>
It doesn't seem to like the fact that I have a field that is a List<List>. The field in question looks like this (that is a Morphia annotation):
@Property("rows")
private List<List<String>> _rows;
and the getter/setter look like this (that is a Jackson annotation):
@JsonProperty("rows")
public List<List<String>> getRawRows() {
return _rows;
}
public void setRawRows(List<List<String>> rows) {
_rows = rows;
}
Do I have to register that property when I create my javers instance? Here is how I build it:
_javers = JaversBuilder.javers()
.registerValueGsonTypeAdapter(ObjectId.class, new ObjectIdAdapter())
.withMappingStyle(MappingStyle.BEAN)
.registerEntity(StagingSchema.class, "internalId")
.registerEntity(StagingTable.class, "internalId")
.registerJaversRepository(new MongoRepository(getDatastore().getDB()))
.build();
I looked in the documentation but only saw property configuration for ignoring a field or setting a field to be an identifier.
This is probably a lack of understanding on my part, but I am getting this error trying to commit changes to the repository:
It doesn't seem to like the fact that I have a field that is a List<List>. The field in question looks like this (that is a Morphia annotation):
and the getter/setter look like this (that is a Jackson annotation):
Do I have to register that property when I create my javers instance? Here is how I build it:
I looked in the documentation but only saw property configuration for ignoring a field or setting a field to be an identifier.