strategy « Annotation « JPA Q&A





1. Naming Strategy and annotation conflict    forum.hibernate.org

Hi I need to "copy" an entity from one table to another to archive it. I wanted to just create a new annotation configuration with a naming strategy, that specifies another database table name to save the entity into. This goes fine except that my entity has a annotation like @Table(appliesTo = "MyEntity", indexes = { @Index(name="myentity_index", columnNames={"name"}) }) It seems ...