ActiveJDBC is a Java ORM modeled on ActiveRecord from Ruby on Rails.
Questions tagged [activejdbc]
215 questions
0
votes
1 answer
Mock RequestContext to run a test
I have a class that uses Active Web - HttpSupport View - in a service class.
I know that is wrong but I cannot change right now.
So, when I am running a test I receive a null pointer at this point:
Because request context.getValues() is null.
How I…
0
votes
1 answer
How to make ActiveJDBC support more Postgres data types
In the project I use postgresql as backend database. As the project grows, more data types, such as uuid, jsonb, GEOGRAPHY data types are involved. And I created the new PostgreSQL2Dialect class. Here is the template:
public class PostgreSQL2Dialect…

Jack Tang
- 59
- 5
0
votes
1 answer
Virtual attribute of ActiveJDBC model
I had a ActiveJDBC model called Job, and defined some static attributes like title, salary, workplace and so on.
public class Job extends Model {
public String getTitle() {
return getString("title");
}
public void setTitle(String title)…

Jack Tang
- 59
- 5
0
votes
1 answer
activejdbc migrator force to create `schema_version` table if it exits
Today I am going to setup another development env by dumping the demo data from one server and restoring to another one. Also I copy the code base to the development server. When I run mvn validate which will invoke migration, it outputs
[INFO]…

Jack Tang
- 59
- 5
0
votes
1 answer
activejdbc with aws Lambda
I am unable to get activejdbc working with aws serverless.
I added my connection params as ENV variables and Base.findAll() works, but I am unable to get the models to work, i get the following error
"org.javalite.activejdbc.InitException: you are…

adarshadarsh
- 3
- 2
0
votes
1 answer
I keep getting an error message about Instrumentation for ActiveJDBC in IntelliJ
I am doing some Java and Cucumber learning and trying to get MySQL to work. I am following the code from a course book. It all seems simple enough, but I just cannot get it to work. I keep getting the error: org.javalite.activejdbc.DBException:…

Wab
- 1
- 2
0
votes
1 answer
JavaLite examples, Simple Example Running Error
Every time i run Simple-example downloaded from github JavaLite examples, I get this error. Exception in thread "main" org.javalite.activejdbc.InitException: Failed to connect to JDBC URL: jdbc:mysql:mysql://localhost/movies with user: root. Also in…
0
votes
0 answers
ActiveJdbc unable to include the table
I have two tables orders and address
Order table
+----+----------------+-----------------------------------+--------------------------------------------------+
| id | trackingNumber | user_id (reference to user table) | receiverAddress_id (reference…

Hexgear
- 320
- 1
- 3
- 13
0
votes
1 answer
There is problem with relationship about two table in different DB, how works ActiveJDBC?
I have this problem:
TABLE_1 -> db A
TABLE_2 -> db B
fields TABLE_1:
id_PK,
id_table_2_FK,
description
fields TABLE_2:
id_PK
description
Relationship:
TABLE_1 belongs to TABLE_2 foreignKeyName id_table_2_FK
CASE 1:
step 1: start…

Mattia
- 13
- 5
0
votes
1 answer
how to use quarkus with other ORM (activejdbc)
how to use quarkus with other ORM for example, ActiveJdbc framework.because right now hibernate panache doesn't have enough features.
I understand that quarkus can have filters, which is useful for opening connections, but how to close the…

user3337148
- 3
- 3
0
votes
1 answer
ActiveJDBC failed to determine Model class name while findFirst but not while insert
While debugging in eclipse below spring boot application is working fine inserting a record in the table but is not while doing findFirst, giving me: failed to determine Model class name, are you sure models have been instrumented?
Gradle:
plugins…

Somebody
- 2,667
- 14
- 60
- 100
0
votes
1 answer
Spring boot devtools and ActiveJDBC integration
Is there any way to integrate the auto-restart function of Spring boot devtools with the ActiveJDBC's instrumentation function?
There is also a need to provide instrumentation every time there is a change in the model or DB, but the code generated…

Logue
- 29
- 4
0
votes
1 answer
Is possible instrument module project witch Activejdbc and Maven?
i have a parent project A(war) that implement, with dependency, project B(jar), similar
big-parent
big-BL
1.0
In project B there are all the 'models' that…

Mattia
- 13
- 5
0
votes
2 answers
Spring boot app, from jar to war, with ActiveJDBC model, Wildfly don't recognizes my Model (like Person, Disease, Location.....), what am i wrong?
I have error when instrument my app, precisaly when i turned spring boot app from jar to war;
when i start my app as one SpringBoot application everything works but when i deploy a war file in WildFly the error that appears is the…

Mattia
- 13
- 5
0
votes
1 answer
activejdbc association between 2 models
I'm have a database with the following 2 tables.
Table 1
CREATE TABLE players (
id INT AUTO_INCREMENT,
firstName VARCHAR(255),
lastName VARCHAR(255),
birthDate DATE,
position VARCHAR(255),
id_teams INT,
PRIMARY KEY…

Teh Swish
- 99
- 1
- 12