You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm used kotlin, and i got some error D/SQL Log: SQLiteQuery: SELECT * FROM PRODUCT_SUGAR_ORM W/System.err: java.lang.NoSuchMethodException: <init> [] at java.lang.Class.getConstructor(Class.java:531) at java.lang.Class.getDeclaredConstructor(Class.java:510) at com.orm.SugarRecord.getEntitiesFromCursor(SugarRecord.java:212) at com.orm.SugarRecord.find(SugarRecord.java:204) at com.orm.SugarRecord.listAll(SugarRecord.java:127)
and this is my code data class ProductSugarORM( var base_price: Double, var category: Int, val created_on: String, var description: String, val id: Int, var name: String, var sell_price: Double, var stock: Int, val store: Int, val type: String, val updated_on: String ):SugarRecord(){ fun ProductSugarORM(){} }
i want to see the result using Log.w("load-local", "${SugarRecord.listAll(ProductSugarORM::class.java)}")
it doesn't work
The text was updated successfully, but these errors were encountered:
i'm used kotlin, and i got some error
D/SQL Log: SQLiteQuery: SELECT * FROM PRODUCT_SUGAR_ORM W/System.err: java.lang.NoSuchMethodException: <init> [] at java.lang.Class.getConstructor(Class.java:531) at java.lang.Class.getDeclaredConstructor(Class.java:510) at com.orm.SugarRecord.getEntitiesFromCursor(SugarRecord.java:212) at com.orm.SugarRecord.find(SugarRecord.java:204) at com.orm.SugarRecord.listAll(SugarRecord.java:127)
and this is my code
data class ProductSugarORM( var base_price: Double, var category: Int, val created_on: String, var description: String, val id: Int, var name: String, var sell_price: Double, var stock: Int, val store: Int, val type: String, val updated_on: String ):SugarRecord(){ fun ProductSugarORM(){} }
i want to see the result using
Log.w("load-local", "${SugarRecord.listAll(ProductSugarORM::class.java)}")
it doesn't work
The text was updated successfully, but these errors were encountered: