Questions tagged as 'ormlite'

1
answer

ORM LITE problems in saving columns bytes

My user app can use the camera to take a photo and need to save it in the database. To save to the database I convert the image to an array of bytes, however I noticed a problem in this process when the camera resolution is high (4: 3 16 MB) doe...
asked by 16.09.2018 / 00:35
0
answers

Error @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 the object class to have some field with the @DatabaseField annotation only that I do not need to save anythi...
asked by 21.06.2018 / 20:39
2
answers

SQL / Java query

Good morning, guys I'm a 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...
asked by 13.11.2016 / 14:12
1
answer

ORMLite android

I'm having a problem writing a login to the database, when I call create it it returns me Null, what can I have done wrong? Remembering that when I give a LOG to see the login, it shows me the data that was informed, it just does not write to th...
asked by 28.10.2016 / 21:56
1
answer

Ormlite 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 ON TC.Id = TD.IdTC INNER JOIN...
asked by 11.04.2014 / 14:05
0
answers

Lazy Loading ORMLite + Android

I have an app that communicates with an online system through a Rest API, the query that the app does for the API in the case in question should follow the pattern "ClassRecoveryStatus"? "KeyCodeField"="'Key'" ... And the loading of the entit...
asked by 03.07.2018 / 19:44
0
answers

Delete Item menu context action ORMLITE

Good evening. I have an app that when clicked a simple contextual action menu appears and one of the options is to delete. Below the method for contextual action @Override public boolean onActionItemClicked(ActionMode mode, MenuItem item)...
asked by 06.06.2018 / 02:13
1
answer

Could not 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(); however I'm getting the error below: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is...
asked by 03.03.2017 / 14:39
2
answers

What annotation is used in the ORMLite mapping for Enum as Foreign?

I have the Customer class and the Enum PetsEstimation where a customer can have 1 or more pets. It would look like this: @DatabaseTable(tableName = "cliente") public class Cliente{ @DatabaseField(generateId = true) private Long id; @Database...
asked by 17.04.2014 / 16:13