objectbox / objectbox/objectbox-java

[ObjectBox] No @Id property found for 'MyClass', add @Id on a not-null long property.

オープン
#998 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
Java
スター
4.6k
フォーク
311
PR マージ指標
30日以内にマージされた PR はありません

説明

🚨 First, please check:

Describe the bug
A clear and concise description in English of what the bug is.

Basic info (please complete the following information):

  • ObjectBox version (are you using the latest version?): [e.g. 2.7.0]
  • Reproducibility: [use the modifier 'transient ' on Objectbox default long id ]
  • Device: [Sunmi v2 Pro]
  • OS: [7.1]

Hello, i'm tying to ignore an id protriety in my Gson converto serialization, like this
@Entity public class MyClass { @Id transient long id; ...}
and a got this error
[ObjectBox] No @Id property found for 'MyClass ', add @Id on a not-null long property.

Help.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、issue にリンクされている ObjectBox のドキュメント、トラブルシューティングページ、FAQ を確認し、次に、記載されている Sunmi v2 Pro 環境で、transient な @Id フィールドを持つ提示された MyClass エンティティを使ってエラーを再現します。transient ID がサポートされているか、またどのような動作またはドキュメントの変更によってこの報告を解決できるかを判断してください。この issue ではソースファイルもテストも指定されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。