Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Version used: 1.0 Alpha 4
Devices/Android versions reproduced on: Android Emulator API 25
I have an EventEntity class and a TeamEntity class, both of which sport the @Entity annotation.
I have two POJOs; Entity and Team which extend the above classes respectively.
Team is nested under the Event POJO with the @Embedded annotation.
Team also has a @Relation annotation to another @Entity; Role.
The issues arise in the TeamDao_impl and EventDao_impl.
When the Team has a relation, even if the relation field is passed in the constructor, room ignores it and prefers to set the field via a setter method. This is a minor bug. The real issue arises when Trying to construct the Event.
Room constructs the Team first, does not set the Roles on the Team, then constructs the Event passing the Team in the constructor, then attempts to call the setRoles method on the Event, and not the Team.
I've attached skeletons of the affected classes and generated DAO code.