How to find out if an IMendixObject is persistent or not

3
Good Morning, maybe that’s a stupid question because the answer is easy to find. I was not able to find it :-) How can I find out if an IMendixObject is an object of a persistent or a non-persistent entity? In a java action.
asked
1 answers
4

For these kind of questions, you should use the meta data of the object, which you can find using the getMetaObject() method.

Example code to show persistability:

java.lang.Boolean persistable = iMendixObject.getMetaObject().isPersistable()
answered