Advertisement
nauk0a

Untitled

Jul 21st, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 1.97 KB | None | 0 0
  1. /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.
  2.     java.util.List<com.nauka.room.Address> getEmployeeWithAddress) {
  3.                                            ^/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).
  4. public final class EmployeeWithAddress {
  5.              ^
  6.   Tried the following constructors but they failed to match:
  7.   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.
  8.     private final com.nauka.room.Employee employee = null;
  9.                                           ^/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.
  10.     public abstract io.reactivex.Flowable<java.util.List<com.nauka.room.EmployeeWithAddress>> getAllEmployee();
  11.                                                                                               ^[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