Skip to content

Commit

Permalink
[Blazebit#841] Oracle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobe91 committed Jul 21, 2020
1 parent 21ab541 commit 5dc9cd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 57 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
@Table(name = "json_document")
public class JsonDocument {
private Long id;
@Column(nullable = false, columnDefinition = "text")
private String content;

public JsonDocument() {
}

public JsonDocument(Long id, String content) {
this.id = id;
this.content = content;
Expand All @@ -45,6 +47,7 @@ public void setId(Long id) {
this.id = id;
}

@Column(nullable = false)
public String getContent() {
return content;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ protected Properties applyProperties(Properties properties) {
}
} else if (isHibernate5() && properties.get("javax.persistence.jdbc.url").toString().contains("oracle")) {
// Apparently the dialect resolver doesn't choose the latest dialect
properties.put("hibernate.dialect", "org.hibernate.dialect.Oracle12cDialect");
properties.put("hibernate.dialect", "org.hibernate.dialect.Oracle10gDialect");
}

if (useHbm2ddl()) {
Expand Down

0 comments on commit 5dc9cd1

Please sign in to comment.