Closed wangnan1990 closed 1 month ago
The generated code has changed in the meantime, for Id
properties it should, for example, now look like:
internal static var id: Property<BusRoute, EntityId<BusRoute>, EntityId<BusRoute>> { return Property<BusRoute, EntityId<BusRoute>, EntityId<BusRoute>>(propertyId: 1, isPrimaryKey: true) }
Closing this issue due to inactivity. :zzz: Feel free to comment with more details or submit a new issue.
When I use objectBox to auto-generate for entities that don't have any associated relationships, the information about IDs looks like this, Property<UserInfo, Id, Id>, and the documentation, shows that it should be generated correctly as Property<UserInfo, Id, Void>, so when I build a query statement about IDs, I am prompted with the incorrect type.
This is my entity:
The following is the automatically generated code:
And the "Property" is:
So, when I use to build anbout “ID” query, It is always wrong.