mirror of https://github.com/apache/openjpa.git
fix broken unit test. Illegal table 'ROLES'
The ROLES table exists by default in some datbases. So it's probably better to not use it as table name in our unit test.
This commit is contained in:
parent
11863ed932
commit
6e8c4d987f
|
@ -28,7 +28,7 @@ import javax.persistence.ManyToOne;
|
|||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "roles")
|
||||
@Table(name = "rolesx")
|
||||
public class Role {
|
||||
|
||||
@Id
|
||||
|
|
|
@ -35,8 +35,9 @@ public class TestOutOfBoundsEx extends SingleEMFTestCase {
|
|||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
super.setUp(Lookup.class, Case.class, Role.class, ScheduledAssignment.class, ScheduleDay.class,
|
||||
DROP_TABLES);
|
||||
super.setUp(DROP_TABLES, Lookup.class, Case.class, Role.class,
|
||||
ScheduledAssignment.class, ScheduleDay.class,
|
||||
"openjpa.Log", "SQL=Trace");
|
||||
em = emf.createEntityManager();
|
||||
insertLookups();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue