The hibernate POJO only allow list, which is an interface, to map many-to-one relationship.
public class Employee {
private int id;
private String firstName;
private String lastName;
private int salary;
private List certificates;
But GWT-RPC only allows concrete type, such as ArrayList, as the return. So, instead of defining a similar class with ArrayList only for RPC,
public class EmployeeRPC {
private int id;
private String firstName;
private String lastName;
private int salary;
private **ArrayList<Certificate>** certificates;
is there any other way to convert the hibernate POJO into a serializable object?
Thanks