InheritanceType « Table « JPA Q&A





1. InheritanceType.TABLE_PER_CLASS and split/archive tables    forum.hibernate.org

Hibernate version: 3.2.2 I have an existing schema with items split into two identical tables - 'active_tasks' and 'completed_tasks'. Upon completion of a task it is moved from the active_tasks table to the completed_tasks table. What is the best way to map a Task object (or hierarchy) onto these two tables? I finally got InheritanceType.TABLE_PER_CLASS to work with an abstract Task ...