Skip to content

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

Open
@TechNov

Description

@TechNov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions