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

[531 byte] By [flavio.freitasa] at [2007-11-27 8:00:48]
# 1
opsi'm doingUser userCopy= new User();userCopy = user;userDAO.create(userCopy);but still not working.....someone have any idea?
flavio.freitasa at 2007-7-12 19:42:51 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...