I\'m working with RestEasy, Jboss 7 and EJB 3.1. I\'m creating a RESTful web service that returns data in JSON format.
The problem is that I have a @ManyToOne<
The problem here seems to be related to using Set
instead of List
. I had exactly the same problem and changing from Set
to List
fixed this, otherwise I always got Infinite recursion
error from Jackson. I don't know if this is really a bug in Jackson or do you have to provide some other annotations etc. when using Set
.