objectbox / objectbox/objectbox-java
How to listen to the first of ToMany
オープン
@greenrobot-team がすでに取り組んでいます。
2018年10月1日 から。
enhancement
- 主要言語
- Java
- スター
- 4.6k
- フォーク
- 311
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
@Entity
class Session {
@Id
var id: Long = 0
lateinit var messages: ToMany<Message>
}
In my app, there is a session list, we need to listen to the first of messages, but now I can't find any direct method to listen.
My question: Is there any simple workaround to listen?
BTW, now I need to add a extra field latestContent to solve this problem. Just as below.
@Entity
class Session {
@Id
var id: Long = 0
//when update messages, update this field
lateinit var latestContent: String
lateinit var messages: ToMany<Message>
}
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。