ActiveJDBC is a Java ORM modeled on ActiveRecord from Ruby on Rails.
Questions tagged [activejdbc]
215 questions
0
votes
1 answer
How to use LazyList's toJson method with json arrays?
I'm doing a one to many association with two tables: "usuarios" and "rol" here there is no problem, the issue is that I'm using the function "toJson" to convert the result of the consult to a String with json format, just like this:
[
{
…
0
votes
2 answers
Problems with dynamic instrumentation in ActiveJDBC and Junit
I'm relatively new to activeJdbc and want to test my models with Junit in Intellij. At first i ran into problems with static instrumentation - so i followed the guide on GitHub to use dynamic instrumentation.
I set up a Junit test in IntelliJ and…

moejoe
- 138
- 5
0
votes
2 answers
activejdbc update in clause is not working
I want to update multiple records using activejdbc
Person.update("name = ?, last_name = ?", "name in ?", "Steve", "Johnson", "jagadeesh,varma,jampana,vikash");
no error, but nothing is updated in db

varma27
- 1
- 1
0
votes
1 answer
Try-with-resources for Base instead of DB
I'd like to use try-with-resources for accessing my database as my code has reached a level of complexity where it's difficult to always remember to close the database when moving between threads - I'd rather use try-with-resources.
I use the Base…

OscarVanL
- 701
- 1
- 6
- 21
0
votes
0 answers
findBySQL returns nothing for a valid query
I have this query, here taken from debug inspect while running:
SELECT columndata.* FROM columndata WHERE record_id IN (SELECT record_id FROM columndata WHERE columnmeta_id = 2 AND numeric_value = 777793989) ORDER BY ID
It returns 16 rows.
I…

user3442828
- 51
- 7
0
votes
1 answer
Is there a way to detach model object instances from the database?
I'm trying to figure out a way to serialize an activejdbc model from a server application running on a JVM across the wire to another JVM that is running a GUI application. The GUI application does not have access to the database, since it is not…

dervish
- 55
- 1
- 3
0
votes
1 answer
log4j.properties does not have effects on logging in activeJDBC
I am currently working on a simple web application using javalite webactive and activeJDBC. To start with javalite I simply used https://github.com/javalite/activeweb-simple/ and expanded from there.
One thing which I would like to change, now that…

spranger
- 31
- 8
0
votes
1 answer
Java Servlet activejdbc NoClassDefFoundError
I'm trying to use ActiveJDBC inside a HttpServlet - I understand that the DB connection needs to opened on a seperate thread, and can be done through a WebFilter.
Unfortunately im snagging at this error…

Matthew Spence
- 986
- 2
- 9
- 27
0
votes
1 answer
Is there any way to specify table prefixes in ActiveJDBC models?
Is there any way to change the table name of the models, or specify a table prefix, so that the model named People, for example, would reference the table TP_PEOPLE?

Scott Nelson
- 3
- 3
0
votes
2 answers
ActiveJDBC: use scope with dynamic parameters
The actual scope examples provide the use of hard-coded parameters passed to the query:
public class Employee extends Model {
static {
addScope("byDepartment", "department = 'marketing'");
}
}
Is it possible to make that parameter…

belgoros
- 3,590
- 7
- 38
- 76
0
votes
1 answer
ActiveJDBC DBSpec - JUnit5 support
For a JavaEE project with working JUnit 5 tests I decided to give ActiveJDBC a try. Unfortunately I implemented all the tests with JUnit 5 before this decision so I have to update my tests for the usage with ActiveJDBC and was wondering why they…

bytepool
- 75
- 1
- 6
0
votes
1 answer
ControllerRunner's Execution order
this is the activeweb2.0 source code
protected void run(Route route) throws Exception {
Configuration.injectFilters(); //no worries, will execute once, as filters have a life span of the app
try {
try { //nested try , a bit ugly, but…

靳刘杰
- 25
- 4
0
votes
1 answer
JavaLite Vs Hibernate
I just started to learn javalite but I don't understand if javalite is more benificial and light weight than hibernate still most of the projects are working on hibernate why?
and can we use javalite for large enterprise application.if anyone using…

A.K.
- 1
- 1
0
votes
1 answer
Can't get tests to pass on Gitlab CI
I've been trying to get our tests to pass on our Gitlab CI, but can't. I'm using the stock pipelines config that comes with Gitlab. All I've had to do is provide the gitlab yaml file to config the CI.
This is what we're using
image:…

Nibarulabs
- 7
- 2
0
votes
1 answer
Transaction is not rolled back when run time exception programmatically fired
I couldn't understand why the after() function of DBConnectionFilter is called when the runtime exception is thrown. I was expecting onException() function to be called and a rollback of the transaction. But what's really happening is the after()…

SalemAdmas
- 3
- 3