Skip to main content
Filter by
Sorted by
Tagged with
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 ...
user23368169's user avatar
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 ...
Rich Morey's user avatar
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 ...
Maxim's user avatar
  • 629
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 ...
Sean Anderson's user avatar
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 ...
Justin Simon's user avatar
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 ...
Nick's user avatar
  • 19
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 ...
Fausto70's user avatar
  • 551
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 ...
JoffJoff's user avatar
  • 145
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 ...
Fausto70's user avatar
  • 551
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 ...
preethi's user avatar
  • 79
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 ...
Fausto70's user avatar
  • 551
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 ...
RobertoJavaDev's user avatar
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 ...
Tobias's user avatar
  • 71
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 ...
mohammadrsh1's user avatar
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 ...
user avatar

15 30 50 per page
1
2 3 4 5
89