mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
57 lines
897 B
Java
57 lines
897 B
Java
package org.tests.model.json;
|
|
|
|
import io.ebean.annotation.DbJson;
|
|
import io.ebean.annotation.DbJsonType;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Version;
|
|
import java.util.Map;
|
|
|
|
@Entity
|
|
public class EBasicJsonMapBlob {
|
|
|
|
@Id
|
|
Long id;
|
|
|
|
@Version
|
|
Long version;
|
|
|
|
String name;
|
|
|
|
@DbJson(storage = DbJsonType.BLOB)
|
|
Map<String, Object> content;
|
|
|
|
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 Map<String, Object> getContent() {
|
|
return content;
|
|
}
|
|
|
|
public void setContent(Map<String, Object> content) {
|
|
this.content = content;
|
|
}
|
|
}
|