New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to use Jackson into an EntitybasePath #893

Closed
ascott42 opened this Issue Aug 14, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@ascott42

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)

@Shredder121

This comment has been minimized.

Show comment
Hide comment
@Shredder121

Shredder121 Aug 14, 2014

Member

I suggest renaming the root path to rootPath, then it would be isRoot() and getRootPath().

Member

Shredder121 commented Aug 14, 2014

I suggest renaming the root path to rootPath, then it would be isRoot() and getRootPath().

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Aug 14, 2014

Member

@Shredder121 Your suggestion is fine, but something for 4.0.0, since it will break backwards compatibility, and PathMetadata is quite central

Member

timowest commented Aug 14, 2014

@Shredder121 Your suggestion is fine, but something for 4.0.0, since it will break backwards compatibility, and PathMetadata is quite central

@Shredder121

This comment has been minimized.

Show comment
Hide comment
@Shredder121

Shredder121 Aug 14, 2014

Member

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().

Member

Shredder121 commented Aug 14, 2014

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().

@timowest timowest added this to the 4.0.0 milestone Aug 15, 2014

@timowest timowest added the postponed label Aug 15, 2014

@timowest timowest removed the postponed label Jan 15, 2015

@timowest timowest added the progress label Jan 28, 2015

@Shredder121 Shredder121 closed this in #1145 Feb 5, 2015

@timowest timowest removed the progress label Feb 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment