mirror of https://github.com/apache/openjpa.git
OPENJPA-2554 fix TestSchemaGenerationProperties on MySQL
MySQL on unix has case sensitive table names...
This commit is contained in:
parent
f7a4445e68
commit
34c99b342a
|
@ -33,75 +33,75 @@ import javax.persistence.Table;
|
|||
|
||||
|
||||
/**
|
||||
* <p>Persistent type used in testing.</p>
|
||||
* <p>Persistent type used in testing.</p>
|
||||
*
|
||||
* @author Abe White
|
||||
* @author Abe White
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="autoincpc1")
|
||||
@Table(name="AUTOINCPC1")
|
||||
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
|
||||
public class AutoIncrementPC1
|
||||
{
|
||||
|
||||
private Set setField = new HashSet ();
|
||||
|
||||
@Id
|
||||
private int id;
|
||||
@Id
|
||||
private int id;
|
||||
|
||||
@Column(name="strngfld", length=50)
|
||||
private String stringField = null;
|
||||
@Column(name="strngfld", length=50)
|
||||
private String stringField = null;
|
||||
|
||||
@OneToOne(cascade={CascadeType.PERSIST, CascadeType.REMOVE})
|
||||
private AutoIncrementPC1 oneOne = null;
|
||||
@OneToOne(cascade={CascadeType.PERSIST, CascadeType.REMOVE})
|
||||
private AutoIncrementPC1 oneOne = null;
|
||||
|
||||
public AutoIncrementPC1()
|
||||
{
|
||||
}
|
||||
public AutoIncrementPC1()
|
||||
{
|
||||
}
|
||||
|
||||
public AutoIncrementPC1(int key)
|
||||
{
|
||||
this.id = key;
|
||||
}
|
||||
public AutoIncrementPC1(int key)
|
||||
{
|
||||
this.id = key;
|
||||
}
|
||||
|
||||
public Set getSetField ()
|
||||
{
|
||||
return this.setField;
|
||||
}
|
||||
public Set getSetField ()
|
||||
{
|
||||
return this.setField;
|
||||
}
|
||||
|
||||
public void setSetField (Set setField)
|
||||
{
|
||||
this.setField = setField;
|
||||
}
|
||||
public void setSetField (Set setField)
|
||||
{
|
||||
this.setField = setField;
|
||||
}
|
||||
|
||||
|
||||
public String getStringField ()
|
||||
{
|
||||
return this.stringField;
|
||||
}
|
||||
public String getStringField ()
|
||||
{
|
||||
return this.stringField;
|
||||
}
|
||||
|
||||
|
||||
public void setStringField (String stringField)
|
||||
{
|
||||
this.stringField = stringField;
|
||||
}
|
||||
public void setStringField (String stringField)
|
||||
{
|
||||
this.stringField = stringField;
|
||||
}
|
||||
|
||||
|
||||
public AutoIncrementPC1 getOneOne ()
|
||||
{
|
||||
return this.oneOne;
|
||||
}
|
||||
public AutoIncrementPC1 getOneOne ()
|
||||
{
|
||||
return this.oneOne;
|
||||
}
|
||||
|
||||
|
||||
public void setOneOne (AutoIncrementPC1 oneOne)
|
||||
{
|
||||
this.oneOne = oneOne;
|
||||
}
|
||||
public void setOneOne (AutoIncrementPC1 oneOne)
|
||||
{
|
||||
this.oneOne = oneOne;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ import javax.persistence.Table;
|
|||
*/
|
||||
@IdClass(AutoIncrementPC3Id.class)
|
||||
@Entity
|
||||
@Table(name="autoincpc3")
|
||||
@Table(name="AUTOINCPC3")
|
||||
public class AutoIncrementPC3
|
||||
{
|
||||
@Id
|
||||
|
|
|
@ -31,7 +31,7 @@ import javax.persistence.OneToOne;
|
|||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="conjoinpc4")
|
||||
@Table(name="CONJOINPC4")
|
||||
public class ConstantJoinPC4
|
||||
{
|
||||
@Column(length=50)
|
||||
|
|
|
@ -24,7 +24,7 @@ import javax.persistence.Id;
|
|||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name="conjoinpc5")
|
||||
@Table(name="CONJOINPC5")
|
||||
public class ConstantJoinPC5
|
||||
{
|
||||
@Id
|
||||
|
|
|
@ -29,7 +29,7 @@ import javax.persistence.Table;
|
|||
*/
|
||||
|
||||
@Entity
|
||||
@Table(name="custmappc")
|
||||
@Table(name="CUSTMAPPC")
|
||||
public class CustomMappingPC
|
||||
{
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
package org.apache.openjpa.persistence.jdbc.common.apps;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* <p>Persistent type used in testing.</p>
|
||||
|
@ -26,6 +27,7 @@ import javax.persistence.Entity;
|
|||
* @author Abe White
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="DFGTEST")
|
||||
public class DFGTest {
|
||||
|
||||
private int dfgField;
|
||||
|
|
|
@ -24,6 +24,7 @@ import java.util.HashSet;
|
|||
import java.util.List;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* <p>Class that uses eager outer joins for its collection fields.</p>
|
||||
|
@ -31,6 +32,7 @@ import javax.persistence.Entity;
|
|||
* @author Abe White
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="EAGEROUTERJOINPC")
|
||||
public class EagerOuterJoinPC {
|
||||
|
||||
private String name = null;
|
||||
|
|
|
@ -28,6 +28,7 @@ import javax.persistence.Id;
|
|||
import javax.persistence.Inheritance;
|
||||
import javax.persistence.InheritanceType;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
|
@ -36,6 +37,7 @@ import javax.persistence.Transient;
|
|||
* @author Abe White
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="EAGERPC")
|
||||
@Inheritance(strategy=InheritanceType.JOINED)
|
||||
public class EagerPC
|
||||
{
|
||||
|
|
|
@ -24,6 +24,7 @@ import java.util.List;
|
|||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
/**
|
||||
|
@ -32,6 +33,7 @@ import javax.persistence.Transient;
|
|||
* @author Abe White
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="EAGERPCSUB")
|
||||
public class EagerPCSub extends EagerPC
|
||||
{
|
||||
private int intField;
|
||||
|
|
|
@ -25,12 +25,15 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* <p>Persistent type used in testing.</p>
|
||||
*
|
||||
* @author Abe White
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="HELPERPC")
|
||||
public class HelperPC implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -27,6 +27,7 @@ import javax.persistence.Entity;
|
|||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -35,6 +36,7 @@ import javax.persistence.OneToOne;
|
|||
* @author Abe White
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="HELPERPC2")
|
||||
public class HelperPC2
|
||||
{
|
||||
@Column(name="strngfld", length=50)
|
||||
|
|
|
@ -23,6 +23,7 @@ import javax.persistence.Entity;
|
|||
import javax.persistence.Id;
|
||||
import javax.persistence.Inheritance;
|
||||
import javax.persistence.InheritanceType;
|
||||
import javax.persistence.Table;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -31,6 +32,7 @@ import javax.persistence.InheritanceType;
|
|||
* @author Abe White
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="HELPERPC3")
|
||||
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
|
||||
public class HelperPC3
|
||||
{
|
||||
|
|
|
@ -26,6 +26,7 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* Used to test invert one-to-ones and stuff
|
||||
|
@ -33,6 +34,7 @@ import javax.persistence.OneToOne;
|
|||
* @author skim
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="INVERTA")
|
||||
public class InvertA implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -25,6 +25,7 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -33,6 +34,7 @@ import javax.persistence.OneToOne;
|
|||
* @author skim
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="INVERTB")
|
||||
public class InvertB implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -59,9 +59,9 @@ public class TestMany2ManyMapEx1 extends SQLListenerTestCase {
|
|||
Employee.class,
|
||||
PhoneNumber.class);
|
||||
createObj(emf);
|
||||
rsAllPhones = getAll(PhoneNumber.class);
|
||||
rsAllEmps = getAll(Employee.class);
|
||||
rsAllDivisions = getAll(Division.class);
|
||||
rsAllPhones = getAll(PhoneNumber.class);
|
||||
rsAllEmps = getAll(Employee.class);
|
||||
rsAllDivisions = getAll(Division.class);
|
||||
}
|
||||
|
||||
@AllowFailure
|
||||
|
|
Loading…
Reference in New Issue