How to copy properties from a bean to another bean in different class? [duplicate]
This question already has an answer here: Copy POJO content from one bean to another 7 answers I have two java class with same properties names.How Can I copy all the properties to another bean filled with data.I don't want to use the traditional form to copy properties because I have a lot of properties. Thanks in advance. 1 class @ManagedBean @SessionScoped public class UserManagedBean implements Serializable { private static final long serialVersionUID = 1L; private String userSessionId; private String userId; private String name; private String adress; ...................... 2 class public