src/main/java/org/mongojack/JacksonMongoCollection.java
/**
     * Inserts objects into the database. if the objects' _id are null, they will be generated.
     * 
     * @param objects
     *            The objects to insert
     * @throws MongoBulkWriteException
     *             If there's an exception in the bulk write operation
     * @throws MongoException
     *             If an error occurred
     * 
     */
Inserts objects into the database. if the objects' _id are null, they will be generated.

@param objects
The objects to insert
@throws MongoBulkWriteException
If there's an exception in the bulk write operation
@throws MongoException
If an error occurred
Inserts objects into the database . if the objects ' _id are null they will be generated . @param objects The objects to insert @throws MongoBulkWriteException If there ' s an exception in the bulk write operation @throws MongoException If an error occurred
public void insert(@SuppressWarnings("unchecked") T... objects) throws MongoException, MongoBulkWriteException {
        ArrayList<T> objectList = new ArrayList<>(objects.length);
        for (T object : objects) {
            objectList.add(object);
        }
        mongoCollection.insertMany(objectList);
    }
public void insert ( @ SuppressWarnings ( "unchecked" ) T ... objects ) throws MongoException , MongoBulkWriteException { ArrayList < T > objectList = new ArrayList < > ( objects . length ) ; for ( T object : objects ) { objectList . add ( object ) ; } mongoCollection . insertMany ( objectList ) ; }
Inserts objects into the database.
Inserts objects into the database .