Skip to content

Commit

Permalink
updating readme with more changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Grosner committed Jul 2, 2015
1 parent 097ba5f commit 869b0cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import java.util.List;

import javax.lang.model.element.Element;
import javax.lang.model.element.Modifier;

/**
* Description: Represents the {@link OneToMany} annotation.
Expand Down Expand Up @@ -63,7 +62,7 @@ public boolean isSave() {
* @throws IOException
*/
public void writeLoad(JavaWriter javaWriter) throws IOException {
if(isLoad()) {
if (isLoad()) {
javaWriter.emitStatement(getMethodName());
}
}
Expand All @@ -75,18 +74,20 @@ public void writeLoad(JavaWriter javaWriter) throws IOException {
* @throws IOException
*/
public void writeDelete(JavaWriter javaWriter) throws IOException {
if(isDelete()) {
if (isDelete()) {
javaWriter.emitStatement("new %1s<>(%1s.withModels(%1s)).onExecute()",
Classes.DELETE_MODEL_LIST_TRANSACTION,
Classes.PROCESS_MODEL_INFO, getMethodName());
Classes.DELETE_MODEL_LIST_TRANSACTION,
Classes.PROCESS_MODEL_INFO, getMethodName());

javaWriter.emitStatement("%1s = null", getVariableName());
}
}

public void writeSave(JavaWriter javaWriter) throws IOException {
if (isSave()) {
javaWriter.emitStatement("new %1s<>(%1s.withModels(%1s)).onExecute()",
Classes.SAVE_MODEL_LIST_TRANSACTION,
Classes.PROCESS_MODEL_INFO, getMethodName());
Classes.SAVE_MODEL_LIST_TRANSACTION,
Classes.PROCESS_MODEL_INFO, getMethodName());
}
}

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ works without crashing/complaining. Just don't call the non-tables associated `M
for easier access without needing to call `where()` first.
7. Adds a `enableSelfRefreshes()` for the `FlowQueryList` and souped up the documentation
with a "best practices" section.
8. Fixes bugs with the [Getting Started](https://github.com/Raizlabs/DBFlow/blob/master/usage/GettingStarted.md) section implementation. `OneToMany.Method.SAVE` now actually works on `insert`, `update`, and `save` methods.
9. Fixes an issue where using a autoincrementing primary key with `length()` causes a strange exception. Now we
ignore columns with length specified on autoincrementing primary keys.


#### 2.1.0
Expand Down

0 comments on commit 869b0cb

Please sign in to comment.