forked from agrosner/DBFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request agrosner#1505 from Raizlabs/develop
4.2.4
- Loading branch information
Showing
11 changed files
with
162 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
dbflow-tests/src/test/java/com/raizlabs/android/dbflow/models/ants/AntHill.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.raizlabs.android.dbflow.models.ants; | ||
|
||
import com.raizlabs.android.dbflow.TestDatabase; | ||
import com.raizlabs.android.dbflow.annotation.PrimaryKey; | ||
import com.raizlabs.android.dbflow.annotation.Table; | ||
import com.raizlabs.android.dbflow.structure.BaseModel; | ||
|
||
@Table(database = TestDatabase.class) | ||
public class AntHill extends BaseModel { | ||
@PrimaryKey | ||
public String hillId; | ||
} | ||
|
20 changes: 20 additions & 0 deletions
20
dbflow-tests/src/test/java/com/raizlabs/android/dbflow/models/ants/Ants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.raizlabs.android.dbflow.models.ants; | ||
|
||
import com.raizlabs.android.dbflow.TestDatabase; | ||
import com.raizlabs.android.dbflow.annotation.ForeignKey; | ||
import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; | ||
import com.raizlabs.android.dbflow.annotation.PrimaryKey; | ||
import com.raizlabs.android.dbflow.annotation.Table; | ||
import com.raizlabs.android.dbflow.structure.BaseModel; | ||
|
||
@Table(database = TestDatabase.class) | ||
public class Ants extends BaseModel { | ||
@PrimaryKey | ||
public String antId; | ||
|
||
@PrimaryKey | ||
@ForeignKey(tableClass = AntHill.class, references = { | ||
@ForeignKeyReference(columnName = "hillIdRef", foreignKeyColumnName = "hillId") | ||
}) | ||
public String hillId; | ||
} |
Oops, something went wrong.