![noteapp logo noteapp logo](https://www.iphonefaq.org/files/styles/large/public/notes-a.png)
The Salary class based upon what can be extracted from the code you have provided (so will very likely NOT match your salary class) :- Salary id=null The provided list would be something like 10,20,30 (i.e.
#Noteapp logo for mac
The best note app for Mac with local storage. So the query is saying SELECT only those rows WHERE the salary's id is in the provided list. Hero image with the logos of the best note taking apps for Mac. LiveData> selectSal(long salary_id_list) I suspect that you want something like:- * from salary WHERE id IN(:salary_id_list) order by id asc") However, a salary, as per the message, is NOT suitable for a query parameter. You appear to want to select a subset of Salaries based upon a list of salary objects. So you need to define/use a query that will SELECT certain rows and typically this would be via a WHERE clause. Room doesn't know what to do with salary.sal nor would it be able to handle it as it does not equate to something that it can place into the query (a column's value or a list of column values). Whilst the function is saying to utilise the passed parameter. It is not saying SELECT some rows according to a parameter. You have a few issues with:- * from salary order by id asc") I updated to iOS 11, and now I cannot access my notes, which I need badly. Thousands of students at hundreds of colleges are using Glean to become confident learners, improve grades, and build lifelong skills. You can consider adding a Type Adapter for this. LiveData> selectByDate(Long sum(amount) from salary where idCar=:id order by time asc ")Ĭ:\Users\MCD\AndroidStudioProjects\Hand\app\src\main\java\com\example\hand\data\salaryDao.java:30: error: Query method parameters should either be a type that can be converted into a database column or a List / Array that contains such type. LiveData> * from salary where time>=:from and time> selectByDate(Date from,Date * from salary where idCar=:id order by time asc ") Import interface insertSal(salary updateSal(salary deleteSal(salary * from salary order by id asc")