mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1559 - @Lob with @ElementCollection
This commit is contained in:
1 parent
315b39813b
commit
e876ef8d87
3 files changed
+115
No files matched your search
@@ -32,6 +32,7 @@ import javax.persistence.ElementCollection;
|
||||
import javax.persistence.EnumType;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.JoinTable;
|
||||
import javax.persistence.Lob;
|
||||
import javax.persistence.ManyToMany;
|
||||
import javax.persistence.MapKey;
|
||||
import javax.persistence.MapKeyColumn;
|
||||
@@ -271,6 +272,10 @@ class AnnotationAssocManys extends AnnotationParser {
|
||||
valueProp.setDbLength(column.length());
|
||||
valueProp.setDbScale(column.scale());
|
||||
}
|
||||
Lob lob = get(prop, Lob.class);
|
||||
if (lob != null) {
|
||||
util.setLobType(valueProp);
|
||||
}
|
||||
elementDescriptor.addBeanProperty(valueProp);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user