code: public long insert(Object entity) {
          if (!N.isEntity(entity.getClass())) {
              throw new IllegalArgumentException("The specified parameter must be an entity with getter/setter methods");
          }
  
          return insert(getTableNameByEntity(entity), entity);
      }
docs: Insert one record into database.
  To exclude the some properties or default value, invoke {@code com.landawn.abacus.util.N#entity2Map(Object, boolean, Collection, NamingPolicy)}
  
  <p>The target table is identified by the simple class name of the specified entity.</p>
  
  @param entity with getter/setter methods
  @return
  
  @see com.landawn.abacus.util.Maps#entity2Map(Object, boolean, Collection, NamingPolicy)