Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /Users/rustam/AndroidStudioProjects/Room/app/build/tmp/kapt3/stubs/debug/com/nauka/room/EmployeeWithAddress.java:30: error: Fields annotated with @Relation cannot be constructor parameters. These values are fetched after the object is constructed.
- java.util.List<com.nauka.room.Address> getEmployeeWithAddress) {
- ^/Users/rustam/AndroidStudioProjects/Room/app/build/tmp/kapt3/stubs/debug/com/nauka/room/EmployeeWithAddress.java:6: error: Entities and Pojos must have a usable public constructor. You can have an empty constructor or a constructor whose parameters match the fields (by name and type).
- public final class EmployeeWithAddress {
- ^
- Tried the following constructors but they failed to match:
- EmployeeWithAddress(com.nauka.room.Employee,java.util.List<com.nauka.room.Address>) -> [param:employee -> matched field:employee, param:getEmployeeWithAddress -> matched field:unmatched]/Users/rustam/AndroidStudioProjects/Room/app/build/tmp/kapt3/stubs/debug/com/nauka/room/EmployeeWithAddress.java:9: error: Cannot find setter for field.
- private final com.nauka.room.Employee employee = null;
- ^/Users/rustam/AndroidStudioProjects/Room/app/build/tmp/kapt3/stubs/debug/com/nauka/room/EmployeeDao.java:27: warning: The return value includes a Pojo with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the Pojo and its relations. See https://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details.
- public abstract io.reactivex.Flowable<java.util.List<com.nauka.room.EmployeeWithAddress>> getAllEmployee();
- ^[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor (NON_INCREMENTAL).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement