Added hasAutoincrement method to DataObject class