Yes, that is expected behavior. If you have an entity with just an ID field, and that ID is auto-generated, then there is simply no fields to insert, thus the error. Your entity must have at least one field besides the one that is automatically generated.