litesuits / litesuits/android-lite-orm
无法插入级联数据
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 359
- PR merge metrics
- No merged PRs in 30d
Description
@Table("product")
public class ProductMdl implements Serializable {
```
@Unique
@PrimaryKey(AssignType.AUTO_INCREMENT)
private int id;
@Column("proName")
private String proName;
@Column("proPrice")
private String proPrice;
@Column("proNum")
private String proNum;
@Column("proPhotoUrl")
private String proPhotoUrl;
```
}
@Table("tablePro")
public class TableProMdl implements Serializable {
/**
*
*/
@Unique
@PrimaryKey(AssignType.AUTO_INCREMENT)
private int id;
```
private static final long serialVersionUID = -5204190870608983058L;
@Column("tableTitle")
private String mTableTitle;
@Column("proTotal")
private String mProTotal;
@Mapping(Relation.OneToMany)
private List mProList;
```
}
tablePro这个表中 插入数据其他字段都可以插入,mProList 插入不了!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the insert with the ProductMdl and TableProMdl classes, focusing on the @Mapping(Relation.OneToMany) field mProList. Trace the ORM entry point used to persist TableProMdl and determine why the related products are not inserted; done means the other fields and the mProList relationship are both persisted correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, sqlite
- Domain
- database, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100