diff --git a/jOOQ/src/main/java/org/jooq/FactoryOperations.java b/jOOQ/src/main/java/org/jooq/FactoryOperations.java index fa1a5a2f9d..358d405c75 100644 --- a/jOOQ/src/main/java/org/jooq/FactoryOperations.java +++ b/jOOQ/src/main/java/org/jooq/FactoryOperations.java @@ -966,6 +966,12 @@ public interface FactoryOperations extends Configuration { *

* This performs roughly the inverse operation of {@link Record#into(Class)} *

+ * The resulting record will have its internal "changed" flags set to true + * for all values. This means that {@link UpdatableRecord#store()} will + * perform an INSERT statement. If you wish to store the record + * using an UPDATE statement, use + * {@link #executeUpdate(UpdatableRecord)} instead. + *

* The resulting record is attached to this {@link Configuration} by * default. Use {@link Settings#isAttachRecords()} to override this * behaviour. diff --git a/jOOQ/src/main/java/org/jooq/Record.java b/jOOQ/src/main/java/org/jooq/Record.java index a38995df78..abc2a88c21 100644 --- a/jOOQ/src/main/java/org/jooq/Record.java +++ b/jOOQ/src/main/java/org/jooq/Record.java @@ -49,6 +49,7 @@ import javax.persistence.Column; import org.jooq.exception.DataTypeException; import org.jooq.exception.MappingException; +import org.jooq.impl.Factory; import org.jooq.tools.Convert; import org.jooq.tools.reflect.Reflect; @@ -1275,6 +1276,12 @@ public interface Record extends FieldProvider, Store { * + *

General notes

+ * The resulting record will have its internal "changed" flags set to true + * for all values. This means that {@link UpdatableRecord#store()} will + * perform an INSERT statement. If you wish to store the record + * using an UPDATE statement, use + * {@link Factory#executeUpdate(UpdatableRecord)} instead. * * @param source The source object to copy data from * @throws MappingException wrapping any reflection exception that might