@@ -30,16 +30,15 @@ public fun <E : Any, T : BaseTable<E>> T.asSequence(withReferences: Boolean = tr
3030}
3131
3232/* *
33- * Insert the given entity into this table and return the affected record number. Only non-null properties
34- * are inserted.
33+ * Insert the given entity into this sequence and return the affected record number.
3534 *
3635 * If we use an auto-increment key in our table, we need to tell Ktorm which is the primary key by calling
37- * [Table.primaryKey] function while registering columns, then this function will obtain the generated key
38- * from the database and fill it into the corresponding property after the insertion completes. But this
39- * requires us not to set the primary key’s value beforehand, otherwise, if you do that, the given value
40- * will be inserted into the database, and no keys generated.
36+ * [Table.primaryKey] while registering columns, then this function will obtain the generated key from the
37+ * database and fill it into the corresponding property after the insertion completes. But this requires us
38+ * not to set the primary key’s value beforehand, otherwise, if you do that, the given value will be inserted
39+ * into the database, and no keys generated.
4140 *
42- * Note that after calling this function, the [entity] will ** be associated with the current table** .
41+ * Note that after calling this function, the [entity] will be ATTACHED to the current database .
4342 *
4443 * @see Entity.flushChanges
4544 * @see Entity.delete
@@ -53,16 +52,15 @@ public fun <E : Entity<E>> Table<E>.add(entity: E): Int {
5352}
5453
5554/* *
56- * Insert the given entity into this table and return the affected record number. Only non-null properties
57- * are inserted.
55+ * Insert the given entity into this sequence and return the affected record number.
5856 *
5957 * If we use an auto-increment key in our table, we need to tell Ktorm which is the primary key by calling
60- * [Table.primaryKey] function while registering columns, then this function will obtain the generated key
61- * from the database and fill it into the corresponding property after the insertion completes. But this
62- * requires us not to set the primary key’s value beforehand, otherwise, if you do that, the given value
63- * will be inserted into the database, and no keys generated.
58+ * [Table.primaryKey] while registering columns, then this function will obtain the generated key from the
59+ * database and fill it into the corresponding property after the insertion completes. But this requires us
60+ * not to set the primary key’s value beforehand, otherwise, if you do that, the given value will be inserted
61+ * into the database, and no keys generated.
6462 *
65- * Note that after calling this function, the [entity] will ** be associated with the current table** .
63+ * Note that after calling this function, the [entity] will be ATTACHED to the current database .
6664 *
6765 * @see Entity.flushChanges
6866 * @see Entity.delete
@@ -72,9 +70,9 @@ public fun <E : Entity<E>> Table<E>.addEntity(entity: E): Int {
7270}
7371
7472/* *
75- * Update the non-null properties of the given entity to the database and return the affected record number.
73+ * Update properties of the given entity to the database and return the affected record number.
7674 *
77- * Note that after calling this function, the [entity] will ** be associated with the current table** .
75+ * Note that after calling this function, the [entity] will be ATTACHED to the current database .
7876 *
7977 * @see Entity.flushChanges
8078 * @see Entity.delete
0 commit comments