jsonplugin

Struts2 JSON Plugin not working with "lazy" data

I have an Entity with a OneToOne relation that is fetched lazily: @Entity public class Person { @Id private Integer id; @Column(length=60) private String address; @OneToOne(fetch=FetchType.LAZY) @JoinColumn(name="idProvince") private Province province; } This is the test I do, trying to get all the entiti...

How should i use json plugin for struts 2 if may package extends hibernate-default?

I have a package that extends hibernate-default and I would like to use json plugin too, but if I write extends="hibernate-default,json-default" I cannot use hibernate anymore because my session is always null. Why is my session null? If my package extends only hibernate-default session is not null. ...