mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-29 07:29:56 +00:00
Modify tests to avoid Oracle keywords for column names
This commit is contained in:
1 parent
4a085cb819
commit
0a2a987695
5 files changed
+15
-11
No files matched your search
@@ -2,6 +2,7 @@ package com.avaje.tests.model.basic;
|
|||||||
|
|
||||||
import com.avaje.ebean.annotation.DbEnumValue;
|
import com.avaje.ebean.annotation.DbEnumValue;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
import javax.persistence.DiscriminatorValue;
|
import javax.persistence.DiscriminatorValue;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Inheritance;
|
import javax.persistence.Inheritance;
|
||||||
@@ -31,6 +32,7 @@ public class Car extends Vehicle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Column(name = "siz")
|
||||||
private Size size;
|
private Size size;
|
||||||
|
|
||||||
private String driver;
|
private String driver;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package com.avaje.tests.model.basic;
|
|||||||
|
|
||||||
import com.avaje.ebean.annotation.DbEnumValue;
|
import com.avaje.ebean.annotation.DbEnumValue;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
import javax.persistence.DiscriminatorValue;
|
import javax.persistence.DiscriminatorValue;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.Inheritance;
|
import javax.persistence.Inheritance;
|
||||||
@@ -29,6 +30,7 @@ public class Truck extends Vehicle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Column(name = "siz")
|
||||||
private Size size;
|
private Size size;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ public class HeLink extends BaseDomain {
|
|||||||
|
|
||||||
String location;
|
String location;
|
||||||
|
|
||||||
String comment;
|
String comments;
|
||||||
|
|
||||||
@HistoryExclude
|
@HistoryExclude
|
||||||
@ManyToMany
|
@ManyToMany
|
||||||
@@ -46,12 +46,12 @@ public class HeLink extends BaseDomain {
|
|||||||
this.location = location;
|
this.location = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getComment() {
|
public String getComments() {
|
||||||
return comment;
|
return comments;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setComment(String comment) {
|
public void setComments(String comments) {
|
||||||
this.comment = comment;
|
this.comments = comments;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<HeDoc> getDocs() {
|
public List<HeDoc> getDocs() {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public class HiLink extends BaseDomain {
|
|||||||
|
|
||||||
String location;
|
String location;
|
||||||
|
|
||||||
String comment;
|
String comments;
|
||||||
|
|
||||||
@ManyToMany
|
@ManyToMany
|
||||||
List<HiDoc> docs;
|
List<HiDoc> docs;
|
||||||
@@ -44,12 +44,12 @@ public class HiLink extends BaseDomain {
|
|||||||
this.location = location;
|
this.location = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getComment() {
|
public String getComments() {
|
||||||
return comment;
|
return comments;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setComment(String comment) {
|
public void setComments(String comments) {
|
||||||
this.comment = comment;
|
this.comments = comments;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<HiDoc> getDocs() {
|
public List<HiDoc> getDocs() {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ public class TzBean {
|
|||||||
@Id
|
@Id
|
||||||
Long id;
|
Long id;
|
||||||
|
|
||||||
@Column(name = "mode")
|
@Column(name = "mod")
|
||||||
String mode;
|
String mode;
|
||||||
|
|
||||||
Timestamp ts;
|
Timestamp ts;
|
||||||
|
|||||||
Reference in new issue
Block a user