How can i duplicate an entity bean?
i'm having problme in make a copy of an entity bean..How can i do this!?
For example... i created a user like that:
User user = new User(); ("User" is an entuity bean)
user.setName("testName");
userDAO.create(user);
This code runs correctly .. but when i try to copy this entity to another its doesnt work...
i'm doing like that
User userCopy= new User();
userCopy = usuario;
userDAO.create(userCopy);
what's wrong ... or what can i do to solve it?
thanks

