Hi,

Is there an easy way to create duplicate of an entity?

I want to read entity from the DB, and then persist (almost) identical copy. Every field should be the same, except primary key.

I know I could probably use BeanUtils.copyProperties, but is there OpenJPA preffered way to do the duplication?

Regards,
Ognjen

Reply via email to