objectbox / objectbox/objectbox-java

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

Open
#998 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
4.6k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

🚨 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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ObjectBox documentation, troubleshooting page, and FAQ linked in the issue, then reproduce the error using the shown MyClass entity with a transient @Id field on the listed Sunmi v2 Pro environment. Determine whether transient IDs are supported and what behavior or documentation change would resolve the report; the issue does not name a source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.