mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-11 03:46:07 +00:00
#1139 - NoSuchMethodError: javax.persistence.Embedded.prefix()Ljava/lang/String;
This commit is contained in:
1 parent
368d22baa6
commit
fc996659f2
1 file changed
+5
-1
@@ -199,7 +199,11 @@ public class AnnotationAssocOnes extends AnnotationParser {
|
||||
prop.setEmbedded();
|
||||
prop.setDbInsertable(true);
|
||||
prop.setDbUpdateable(true);
|
||||
prop.setColumnPrefix(embedded.prefix());
|
||||
try {
|
||||
prop.setColumnPrefix(embedded.prefix());
|
||||
} catch (NoSuchMethodError e) {
|
||||
// using standard JPA API without prefix option, maybe in EE container
|
||||
}
|
||||
|
||||
readEmbeddedAttributeOverrides(prop);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user