public insert(mapping as SQLMappedEntity, entity as Object) as Long:
Inserts one new entity and assigns a generated identity when configured.