mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
PL-7376 UnsupportedOperationException while using RuntimePropertiesFrame
This commit is contained in:
parent
7aa043f76c
commit
8607dd888f
@ -63,7 +63,7 @@ public class DynamicAttributesMetaClass extends MetadataObjectImpl implements Me
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class getJavaClass() {
|
public Class getJavaClass() {
|
||||||
return getClass();
|
return Object.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -375,15 +375,7 @@ public class MetadataTools {
|
|||||||
* Determine whether the given metaclass is embeddable.
|
* Determine whether the given metaclass is embeddable.
|
||||||
*/
|
*/
|
||||||
public boolean isEmbeddable(MetaClass metaClass) {
|
public boolean isEmbeddable(MetaClass metaClass) {
|
||||||
Class javaClass;
|
return metaClass.getJavaClass().isAnnotationPresent(javax.persistence.Embeddable.class);
|
||||||
try {
|
|
||||||
// RuntimePropertiesMetaClass can throw UnsupportedOperationException
|
|
||||||
javaClass = metaClass.getJavaClass();
|
|
||||||
} catch (UnsupportedOperationException e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return javaClass.isAnnotationPresent(javax.persistence.Embeddable.class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isCacheable(MetaClass metaClass) {
|
public boolean isCacheable(MetaClass metaClass) {
|
||||||
|
Loading…
Reference in New Issue
Block a user