About the mendix primary key

0
Have  the  Generate Rule of primary key (ID, long) when Mendix insert one row data ? With the same table, I insert some row data with JAVA, the id value can not be retrieved by microflow , wrong like that : The provied entity id '66' has no corresponding meta object name
asked
1 answers
1

Inserting rows in Mendix tables yourself (using Java or other form of SQL insertion) is not supported nor recommended. You should use the "Create Object" activity in a nanoflow/microflow, or use the Mendix client/Java API to create an object of a specific entity to insert a row in a table.

 

See also:

https://community.mendix.com/link/space/databases/questions/105250

https://community.mendix.com/link/space/java-actions/questions/119174

 

This old thread might give some more insight into how Mendix generates the identifiers, but again I would never do this:

https://community.mendix.com/link/space/app-development/questions/4441

answered