Skip to content

Commit

Permalink
HHH-11601 - Fix tests failing on Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Apr 12, 2017
1 parent 6a59994 commit 442bf22
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Expand Up @@ -171,7 +171,9 @@ subprojects { subProject ->

if (db.equalsIgnoreCase("oracle")) {
dependencies {
testRuntime( libraries.oracle )
testRuntime( libraries.oracle ) {
exclude group: 'com.oracle.jdbc', module: 'xmlparserv2'
}
}
}
// 6.6 gave me some NPE problems from within checkstyle...
Expand Down
4 changes: 3 additions & 1 deletion documentation/documentation.gradle
Expand Up @@ -73,7 +73,9 @@ dependencies {

if (db.equalsIgnoreCase("oracle")) {
dependencies {
testRuntime( libraries.oracle )
testRuntime( libraries.oracle ) {
exclude group: 'com.oracle.jdbc', module: 'xmlparserv2'
}
}
}

Expand Down
4 changes: 3 additions & 1 deletion hibernate-c3p0/hibernate-c3p0.gradle
Expand Up @@ -20,7 +20,9 @@ dependencies {

if (db.equalsIgnoreCase("oracle")) {
dependencies {
testRuntime( libraries.oracle )
testRuntime( libraries.oracle ) {
exclude group: 'com.oracle.jdbc', module: 'xmlparserv2'
}
}
}

Expand Down
Expand Up @@ -47,7 +47,7 @@ public void setCustomer(Customer customer) {
}

@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "purchase_organization_facilities",
@JoinTable(name = "PURCHASE_FACILITY",
joinColumns = @JoinColumn(name = "PURCHASE_ORG_ID"),
inverseJoinColumns = @JoinColumn(name = "FACILITY_ID"))
public List<Facility> getFacilities() {
Expand Down
Expand Up @@ -86,7 +86,7 @@ public static class SpecialItem implements Serializable {
@Column(length = 30)
private String name;

@Column(columnDefinition = "text")
@Column(columnDefinition = "VARCHAR(255)")
private LongList longList;

public SpecialItem() {
Expand Down
Expand Up @@ -14,6 +14,8 @@
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.OneToMany;
import javax.persistence.Table;

Expand Down Expand Up @@ -108,6 +110,7 @@ public static class TestEntity {
private String name;

@OneToMany
@JoinTable(name = "LINK_TABLE", joinColumns = @JoinColumn(name = "ENTITY_ID"))
private List<OtherTestEntity> others = new ArrayList<>();

public TestEntity() {
Expand Down

0 comments on commit 442bf22

Please sign in to comment.