java - Handle nested hibernate objects in a Foreign key relationship in REST -
i have 2 tables employee , address , below hibernate class,
public class employee { private long id; private address address; } public class address { private long id; private employee employee; private string street; }
as see have forign key mapping in address class employee class. if query employee object , expose employee class
@xmlrootelement public class employee {
as rest service json response, face issue of nested object in json response.
i tried @jsonignore doesn't help.
is there way can differently? use jax-rs.
cheers!!
Comments
Post a Comment