1,329 questions
2
votes
1
answer
85
views
Why is my HashSet being serialized incorrectly in ORMLite? It appears to be serialized with the wrong size
I am saving a field in my app as a HashSet<String>, defined as such:
@DatabaseField(dataType = DataType.SERIALIZABLE)
private HashSet<String> allUsers;
Some devices are occasionally ...
0
votes
1
answer
101
views
ENABLE OrmLite Logging / Android / Java
I have taken over a project where the original developer used OrmLite as the DB library. I can not for the life of me figure out how to turn on SQL logging. I see a lot of posts asking how to turn it ...
0
votes
1
answer
82
views
ORMLite - persisting LocalDateTiime - Unparseable date
I'm using ORMLite to persist objects in an SQLite Database, but persisting LocalDateTime values does't work. I already configured a custom persister class like this:
public class ...
0
votes
1
answer
91
views
In ORMLite why should we use DAOs with an ID of a specific type when Object seems to work?
I can extend BaseDaoImpl using either Dao<InvoiceItem, Object> or Dao<InvoiceItem, UUID>, for instance. Why would I specify UUID when Object seems to work just as well?
Using Object in all ...
0
votes
2
answers
544
views
Trying to resolve ClassNotFound error when running program using OrmLite
I am trying to use OrmLite to connect to a SQLite database (not android). I have read the docs and I believe that my code is correct but I am getting a runtime error when trying to run. I am using ...
0
votes
1
answer
177
views
ORMLite Java, casing of sequences
I am trying to connect to postgresql with ORMlite from a Java client.
the DB gets generated perfectly, but when I try to insert something into a table that is using an autoincrement id I get the ...
0
votes
1
answer
202
views
ORMLite --- After .commit , .setAutoCommit --- Connection NOT closed
I use ORMLite on a solution made by server and clients.
On server side I use PostgreSQL, on client side I use SQLite. In code, I use the same ORMLite methods, without taking care of the DB that is ...
0
votes
1
answer
58
views
ORMLite and setting session date variables
What is the correct way of running a session formatting query via ORMLite? The reason that I am setting session formatting is that the queries that I run never retrieve any results and I keep getting ...
0
votes
2
answers
235
views
How to write several item in table at the same time using ORMLite
I use ORMLite on a solution made by server and clients.
On server side I use PostgreSql, on client side I use SQLite.
In code, I use the same ORMLite methods, without taking care of the DB that is ...
0
votes
1
answer
369
views
How to set timeout while creating connection in ormlite ConnectionSource?
The connection is created by the below method
import com.j256.ormlite.jdbc.JdbcConnectionSource;
import com.j256.ormlite.support.ConnectionSource;
ConnectionSource connectionSource =
new ...
0
votes
1
answer
177
views
Get PostgreSql table size on disk (byte) in ORMlite
I use ORMLite in a Java application, in order to deal with a PostgreSql DataBase.
I want to get the space on the disc used by a table of DataBase.
It seems that OrmLite doesn't have a specific method ...
0
votes
0
answers
117
views
ORMLite does not know how to store class Flight.scanner.modelFX.AirlineFx for field airline. Use another class or a custom persister
I'm in the process of learning JavaFx and creating my project "Flight scanner" and I have a small problem with the implementation of the ORMLite database.
My code is as follows:
Controller
...
1
vote
1
answer
734
views
How to increase default fetchsize for queries (Oracle DB)
How can I set the fetchsize for an Oracle database? For example, when starting SQL*Plus, I can set arraysize 250 and increase the performance of my queries drastically. How can I achieve the same with ...
1
vote
0
answers
55
views
many to many ormlite issue
The database I use is ormlite.
Which is a database for storing projects, developers, and another for many-to-many relationships between projects and developers.
But when I want to use for examples ...
0
votes
1
answer
238
views
How to persist JavaFX properties in SQLite using ORMLite?
I am using JavaFX to create an app and I need (it would be very cool) to persist JavaFX properties such as SimpleStringProperty or SimpleObjectProperty.
I've seen this issue (now closed) that make use ...