ActiveJDBC is a Java ORM modeled on ActiveRecord from Ruby on Rails.
Questions tagged [activejdbc]
215 questions
0
votes
3 answers
Can't get ActiveJDBC dynamic instrumentation working with IntelliJ IDEA run configuration
I'm trying to use ActiveJDBC's dynamic instrumentation with the -javaagent command-line option in the run configuration of a JUnit test in Intellij IDEA (2018.1 Ultimate). I've entered the following in the "VM Options" input field of the run…

Christof Schablinski
- 77
- 7
0
votes
0 answers
ActiveWeb war undeployable to TomEE
I just started a new ActiveWeb/ActiveJDBC project based on the activeweb-simple example. When I build and run it with Jetty as described in the ReadMe everything works fine but I can't get it to work with TomEE plus (7.0.2/1.7.5) and I would like to…

bytepool
- 75
- 1
- 6
0
votes
2 answers
Kill multiple connections at a time
I am using root as username.
My program will refresh every 5 seconds.
What it does is, it query from mysql table and display the data.
Problem is, every after 5 seconds, the connection on mysql will append, reason that it will give an error of "TOO…

AyukNayr
- 386
- 2
- 21
0
votes
1 answer
Active JDBC saves data alphabetically
I Have an array list.
ArrayList arrayList = new ArrayList<>();
arrayList.add("timestamp");
arrayList.add("Code");
arrayList.add("Banana");
arrayList.add("record_version");
For each String, i want to save it to the database.
for(String str…

Vincent Dingding
- 19
- 5
0
votes
1 answer
How to read the property values setup for ActiveJDBC?
I am using the activejdbc.properties file to specify the location of my database.properties values.
activejdbc.properties
env.connections.file=/opt/apps/conf/database.properties
database.properties (Located on the…

Jeff Moreau
- 29
- 1
- 7
0
votes
1 answer
In ActiveJDBC how to update value of one of the Composite Key fields?
I am using ActiveJDBC. I have a table that is made up of a composite key (parentId, childId, effStartDate). I have a new requirement to allow the updating of the effStartDate field. When I tried to update the field and save, it errors out. Is…

Jeff Moreau
- 29
- 1
- 7
0
votes
1 answer
How to work with a HikariCP connection pool?
How do I get activejdbc working with a HikariCP connection pool? Mostly want this for documentation purposes.
I've tried a few different methods but none have worked so far.

dessalines
- 6,352
- 5
- 42
- 59
0
votes
1 answer
Does ActiveJDBC have flush?
I have the following problem, in my REST server application (Jersey+ActiveJDBC+Shiro+TomcatJDBC) running in Tomcat 8 and database is PostgreSQL also it running in VPS.
Sometimes after large/many CRUD activity via REST application, the inserted data…

Heykal
- 1
- 1
0
votes
0 answers
Issue by attache activejdbc to my spring-boot project
I will attache activejdbc to my spring boot project, and this is part of my pom.xml file:
org.javalite
db-migrator-maven-plugin
…

Light Harut
- 42
- 7
0
votes
0 answers
org.javalite.activejdbc.InitException: Failed to connect to JDBC URL
Base.open("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/tmolecules", "root", "......");
I keep getting this error when I try to use a local database. How do I fix this?
Stack Trace:
org.javalite.activejdbc.InitException: Failed to connect to…

kittu
- 6,662
- 21
- 91
- 185
0
votes
1 answer
How to override the database.properties bundled in the jar
Using ActiveJDBC (version 1.4.13), I can't find a way to override the database.properties bundled with the application (the one from src/main/resources/database.properties ending inside the jar).
Is there a way to override it with a local file (in…

Marco Pantaleoni
- 2,529
- 15
- 14
0
votes
1 answer
Maven error when downloading latest 2.1-SNAPSHOT
Suddenly i encounter the following error when trying to download the latest 2.1-SNAPSHOT from the configured snapshot repository:
[WARNING] Could not transfer metadata org.javalite:javalite-common:2.1-SNAPSHOT/maven-metadata.xml from/to…

valley
- 157
- 1
- 13
0
votes
1 answer
Can't find tables with activeJDBC in H2 non-default schema
In my integration test, I am creating an H2 database with two schemas, A and B. A is set as the default schema, like it is in the normal setup for the application when it is running with a PostgreSQL database. During the integration test, I am…

Cecilya
- 519
- 1
- 5
- 20
0
votes
0 answers
delete and deleteAll not working for me
I have the following code:
try (DB db = new DB()) {
db.open(cpds);
// Using the metadata to walk down the tree and identify all
// children nodes to the leaf tables.
// First the metadata for the pk of the target…

oldDave
- 395
- 6
- 25
0
votes
1 answer
Postgres driver for activejdbc keeps throwing nullpointers
I've been trying to get this example for activejdbc to work to no avail. My database has the tables in to make use of this code, this is how it looks when opened in my editor (intellij):
I cut out some tables that aren't used by this code, as it's…

J. Oostrom
- 55
- 8