mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
Merge pull request #2563 from FOCONIS/platform-specific-columndefinition
Different ColumnDefinition for different platforms
This commit is contained in:
104 files changed
+215
-72
No files matched your search
@@ -5,11 +5,15 @@ import io.ebean.annotation.EnumValue;
|
||||
import io.ebean.annotation.Index;
|
||||
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
|
||||
@@ -41,6 +45,10 @@ public class EBasic {
|
||||
|
||||
@Size(max=127)
|
||||
String description;
|
||||
|
||||
@Lob
|
||||
@Column(columnDefinition = "db2;blob(64M);")
|
||||
File descriptionFile;
|
||||
|
||||
Timestamp someDate;
|
||||
|
||||
|
||||
@@ -5,11 +5,15 @@ import io.ebean.annotation.EnumValue;
|
||||
import io.ebean.annotation.Index;
|
||||
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
|
||||
@@ -41,6 +45,10 @@ public class EBasic {
|
||||
|
||||
@Size(max=127)
|
||||
String description;
|
||||
|
||||
@Lob
|
||||
@Column(columnDefinition = "db2;blob(64M);")
|
||||
File descriptionFile;
|
||||
|
||||
Timestamp someDate;
|
||||
|
||||
|
||||
Reference in new issue
Block a user