mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1559 - @Lob with @ElementCollection
This commit is contained in:
@@ -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