Instantiate IMendixObject with specified GUID / long ID in Java

1
I'm working currently on a project which involves serializing and deserializing Mendix objects, and it seems to be difficult or impossible to create a Mendix Object with a specified ID. I can understand the reasons behind this (and the potential consequences of doing it incorrectly), but it would make my use case a lot easier when maintaining associations between objects and ensuring data integrity. Is there a way of doing this (or a loadOrCreate type method) that I haven't yet found? Thanks
asked
2 answers
1

As far as I know this is not possible.

What do you want to achieve? This mechanism is there to ensure data integrity.

answered
1

Thanks, this is as I suspected. I think I'll have to find another solution.

I'm archiving data to external storage, and then retrieving it for temporary use within the application. 

Maintaining a consistent GUID throughout would be helpful for handling associated entities 

answered