#211 - ENH: Add support for File as a bean type ... for streaming into/from db

This commit is contained in:
rbygrave
2014-11-26 22:45:33 +13:00
parent 983391af94
commit 2195d7ecbc
9 changed files with 446 additions and 7 deletions
@@ -0,0 +1,51 @@
package com.avaje.tests.model.types;
import javax.persistence.*;
import java.io.File;
@Entity
public class SomeFileBean {
@Id
Long id;
@Version
Long version;
String name;
@Lob
File file;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getVersion() {
return version;
}
public void setVersion(Long version) {
this.version = version;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public File getFile() {
return file;
}
public void setFile(File file) {
this.file = file;
}
}