mirror of
https://github.com/apache/openjpa.git
synced 2025-02-08 02:59:42 +00:00
OPENJPA-1939: Increase index length for DB2 and testcase workaround for OPENJPA-1948
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1073042 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5498030392
commit
b44614d94b
@ -118,7 +118,7 @@ public class DB2Dictionary
|
|||||||
}));
|
}));
|
||||||
systemSchemas = "SYSCAT,SYSIBM,SYSSTAT,SYSIBMADM,SYSTOOLS";
|
systemSchemas = "SYSCAT,SYSIBM,SYSSTAT,SYSIBMADM,SYSTOOLS";
|
||||||
maxConstraintNameLength = 18;
|
maxConstraintNameLength = 18;
|
||||||
maxIndexNameLength = 18;
|
maxIndexNameLength = 128;
|
||||||
maxColumnNameLength = 30;
|
maxColumnNameLength = 30;
|
||||||
supportsDeferredConstraints = false;
|
supportsDeferredConstraints = false;
|
||||||
supportsDefaultDeleteAction = false;
|
supportsDefaultDeleteAction = false;
|
||||||
@ -345,7 +345,6 @@ public class DB2Dictionary
|
|||||||
forUpdateClause = "WITH RR USE AND KEEP UPDATE LOCKS";
|
forUpdateClause = "WITH RR USE AND KEEP UPDATE LOCKS";
|
||||||
|
|
||||||
if (maj >=9) {
|
if (maj >=9) {
|
||||||
maxIndexNameLength=128;
|
|
||||||
supportsXMLColumn = true;
|
supportsXMLColumn = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,21 +36,21 @@ import javax.persistence.SecondaryTable;
|
|||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name="entity h", schema="delim id2")
|
@Table(name="entity ha", schema="delim id2")
|
||||||
@SecondaryTable(name="h sec join table", schema="delim id2",
|
@SecondaryTable(name="ha sec join table", schema="delim id2",
|
||||||
pkJoinColumns=@PrimaryKeyJoinColumn(name="entity h",
|
pkJoinColumns=@PrimaryKeyJoinColumn(name="entity ha",
|
||||||
referencedColumnName="h id"))
|
referencedColumnName="ha id"))
|
||||||
public class EntityH {
|
public class EntityH {
|
||||||
@Id
|
@Id
|
||||||
@Column(name="h id")
|
@Column(name="ha id")
|
||||||
private int id;
|
private int id;
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Column(table="h sec join table")
|
@Column(table="ha sec join table")
|
||||||
private String secName;
|
private String secName;
|
||||||
|
|
||||||
@ManyToMany
|
@ManyToMany
|
||||||
@JoinTable(name="h i", schema="delim id2")
|
@JoinTable(name="ha i", schema="delim id2")
|
||||||
private Collection<EntityI> entityIs = new HashSet<EntityI>();
|
private Collection<EntityI> entityIs = new HashSet<EntityI>();
|
||||||
|
|
||||||
@OneToOne
|
@OneToOne
|
||||||
@ -58,7 +58,7 @@ public class EntityH {
|
|||||||
private EntityI2 entityI2;
|
private EntityI2 entityI2;
|
||||||
|
|
||||||
@ManyToMany
|
@ManyToMany
|
||||||
@JoinTable(name="map3 join table", schema="delim id2")
|
@JoinTable(name="map3a join table", schema="delim id2")
|
||||||
@MapKeyJoinColumn(name="map_ei3", referencedColumnName="entityI3 id")
|
@MapKeyJoinColumn(name="map_ei3", referencedColumnName="entityI3 id")
|
||||||
Map<EntityI3,EntityI4> map = new HashMap<EntityI3,EntityI4>();
|
Map<EntityI3,EntityI4> map = new HashMap<EntityI3,EntityI4>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user