mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +00:00
default columnDef should be calculated from ebean
This commit is contained in:
1 parent
137a7950ff
commit
c2e4f862bc
3 files changed
+15
-4
No files matched your search
@@ -8,9 +8,12 @@ import io.ebean.annotation.NotNull;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Lob;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import java.io.File;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
@Entity
|
||||
@@ -43,8 +46,9 @@ public class EBasic {
|
||||
@Size(max=127)
|
||||
String description;
|
||||
|
||||
@Column(columnDefinition = "db2;blob(64M);sqlserver,h2;varchar(227);varchar(127)")
|
||||
String description2;
|
||||
@Lob
|
||||
@Column(columnDefinition = "db2;blob(64M);")
|
||||
File descriptionFile;
|
||||
|
||||
Timestamp someDate;
|
||||
|
||||
|
||||
@@ -8,9 +8,12 @@ import io.ebean.annotation.NotNull;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Lob;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
import java.io.File;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
@Entity
|
||||
@@ -43,8 +46,9 @@ public class EBasic {
|
||||
@Size(max=127)
|
||||
String description;
|
||||
|
||||
@Column(columnDefinition = "db2;blob(64M);sqlserver,h2;varchar(227);varchar(127)")
|
||||
String description2;
|
||||
@Lob
|
||||
@Column(columnDefinition = "db2;blob(64M);")
|
||||
File descriptionFile;
|
||||
|
||||
Timestamp someDate;
|
||||
|
||||
|
||||
Reference in new issue
Block a user