This is a piece of class, that I've mapped into Hibernate:
@OneToMany(cascade=CascadeType.ALL)
@JoinColumn(name="hall_id")
Set<Literature> literatures;
@OneToMany(cascade=CascadeType.ALL)
@JoinColumn(name="hall_id")
Set<RecycleFacility> recycleFacilities;
@OneToMany(cascade=CascadeType.ALL)
@JoinColumn(name="hall_id")
Set<Assent> assents;
But when I'm trying to map this class to JSon, I always have a stacks. I was using Jackson Mapper, Genson, and Google Gson, but they can't map this piece of code (or I don't know how to map this). Can anyone tell me, how to map propertly this kind of sets?