• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transforming jpa entities into json entities

 
A. Aka
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to generate json from entity but it does not work
I have this on my entities :


The rest call (spring REST):


I am getting NOT FOUND : 404

but when I put a break point I am able to call the rest resource, I think it is the transformation of the entity to json which do not work


I have this :


any idea ?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15644
47
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A. Aka wrote:but when I put a break point I am able to call the rest resource, I think it is the transformation of the entity to json which do not work

What happens when you put a breakpoint in the method? Does the debugger stop at the breakpoint? What happens when you step through the code? How do you know the transforming to JSON doesn't work? Do you get error messages?
 
A. Aka
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this :

 
A. Aka
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but when I put lazy to my column



I have another error that numPlaque plaque cannot be null, i think it should be eager but i have this error :

 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15644
47
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see any errors there. Both those logs show "Successfully completed request" at the end. Why do you think there's an error?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic