Skip to content

Commit 4a80b1e

Browse files
author
artshell
committed
Modify: code enhancements
1 parent 1924f47 commit 4a80b1e

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

arch/src/main/java/com/artshell/arch/storage/db/entity/User.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ public class User {
88
@PrimaryKey
99
public Integer id;
1010
public String name;
11-
public Integer desc;
1211
}

arch/src/main/java/com/artshell/arch/storage/db/entity/UserAllPets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class UserAllPets {
1010
@Embedded
1111
public User user;
1212

13-
@Relation(parentColumn = "desc", entityColumn = "userId", entity = Pet.class)
13+
@Relation(parentColumn = "id", entityColumn = "userId", entity = Pet.class)
1414
public List<PetAndId> pets;
1515

1616
@Relation(parentColumn = "id", entityColumn = "userId", entity = Pet.class, projection = {"name"})

0 commit comments

Comments
 (0)