Most voted "ormlite" questions
7 questions
Sort by count of
-
4
votes1
answer62
viewsLITE ORM problems in saving columns bytes
My app the user can use the camera to take photo and need to save it in the database. To save in the database I convert the image into an array of bytes, however I noticed a problem in this process…
-
2
votes0
answers22
viewsError @Databasefield + Abstract Class Ormlite (java.lang.Illegalargumentexception: No Fields have a Databasefield Annotation in class ***.Object)
I have a class that extends from the object class (abstract) from which I need to save the fields in the database, but the ormlite asks that the object class has some field with the @Databasefield…
-
1
votes1
answer70
viewsAndroid ormlite
I’m having a problem recording a login in the database, when I call create it returns me Null, what could I have done wrong? Remembering that when I give a LOG to see the login, it shows me the data…
-
1
votes2
answers402
viewsSQL/Java query
Good morning, guys I am beginner in SQL and I need to do the following search. Tenho esta tabela: MINIMO MAXIMO CLASSE 0 20 1 21 40 2 41 60 3 60 10000 4 I need a command to see which class fits the…
-
0
votes1
answer215
viewsOrmlite Inner Join in five tables
I want to create some JOIN in five tables like this example: SELECT * FROM TableA AS TA INNER JOIN TableB AS TB ON TA.Id = TB.IdTA INNER JOIN TableC AS TC ON TB.IdTC = TC.Id INNER JOIN TableD AS TD…
-
0
votes2
answers231
viewsWhat annotation is used in Ormlite mapping for Enum as Foreign?
I have the Client class and the Animal Award, where a customer can have 1 or more pets. I would look like this: @DatabaseTable(tableName = "cliente") public class Cliente{ @DatabaseField(generateId…
-
0
votes1
answer415
viewsCouldn’t read Row 0, col 0 from Cursorwindow. Make sure the Cursor is initialized correctly before accessing data from it
I’m doing the following query on android using Ormlite: List<Mensagem> msgs = SqliteOrm.getMensagemDao(this).queryForAll(); but I’m getting the error below: Couldn't read row 0, col 0 from…