Join GitHub today
Impossible to use Jackson into an EntitybasePath #893
I tried to use jackson into a EntityBasePath :
ObjectMapper sMapper = new ObjectMapper(); QContent rootNode = QContent.content; String json = sMapper.writeValueAsString(rootNode);
It seems does not work. There is a getter conflict into class com.mysema.query.types.PathMetadata (full stack bellow). Do you know why ?
Caused by: java.lang.IllegalArgumentException: Conflicting getter definitions for property "root": com.mysema.query.types.PathMetadata#isRoot(0 params) vs com.mysema.query.types.PathMetadata#getRoot(0 params)
Yes, I am aware of that, so that will have to be accepted for now then.
@ascott42 temporarily, if you really have to pass the PathMetadata around, you can make your own decorator class to wrap the calls, to split the isRoot() and getRoot methods to isRoot() and getRootPath().