objectbox / objectbox/objectbox-java
[ObjectBox] No @Id property found for 'MyClass', add @Id on a not-null long property.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.6k
- Forks
- 311
- PR merge metrics
- No merged PRs in 30d
Description
🚨 First, please check:
- existing issues,
- Docs https://docs.objectbox.io/
- Troubleshooting page https://docs.objectbox.io/troubleshooting
- FAQ page https://docs.objectbox.io/faq
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
- 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 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