Inserts a new entity into the database and returns it with generated values populated.
Inserts multiple entities in a batch.