ActiveJDBC is a Java ORM modeled on ActiveRecord from Ruby on Rails.
Questions tagged [activejdbc]
215 questions
0
votes
1 answer
ActiveJDBC not working with Java Jersey's annotations
I have a Jersey resource class called MiddleTierResources.java that uses Jersey (has the following related imports: javax.ws.rs.*; javax.ws.rs.core.MediaType; javax.ws.rs.core.Response;)
And in that class, methods are annotated like…

Hongyi Li
- 1,059
- 2
- 11
- 19
0
votes
1 answer
Gradle 1.5 cannot exclude more than one dependency in compile
For compatibility reasons, I have to use gradle 1.5, and when I try to do
compile('org.javalite:activejdbc-instrumentation:1.4.9') {
exclude group: "com.google.collections", module: "google-collections"
exclude group:…

Hongyi Li
- 1,059
- 2
- 11
- 19
0
votes
1 answer
Execute a resource liberation action on Java's ThreadPoolExecutor's Thread death
I have a Java ThreadPool that is initialized as follows:
ThreadFactory tFactory = new DatabaseWorkerThreadFactory();
final ExecutorService dbService = new ThreadPoolExecutor(1, 5, 10L, TimeUnit.SECONDS, new ArrayBlockingQueue(10),…

l3k
- 47
- 6
0
votes
1 answer
Install activejdbc for Java using Netbeans IDE
same as title, how to install activejdbc for java using Netbeans IDE? somebody can help me?

user3510768
- 135
- 2
- 10
0
votes
2 answers
Setting up ActiveJDBC for an Eclipse project that does not use Maven
I read a few things about activejdbc and I liked it. I tried adding it to an Eclipse project that I already have and realised that most of the references on how to add it to projects use Maven. I am not using Maven for my project and I am not ready…

Yanki Twizzy
- 7,771
- 8
- 41
- 68
0
votes
2 answers
File in the classpath not being published (Eclipse + JBoss AS)
I am working in an ActiveJDBC project that requires an instrumentation step before the build in order to do the entity mapping. I did this by adding a script that generates an activejdbc.properties at the classpath.
The build part is fine and the…

user3278532
- 11
- 1
- 2
0
votes
1 answer
ActiveJDBC Object with Multiple Parents that reference the same Class
I have a fairly simple model with two objects: Team and Game. The Team object has the name of the team, and the Game object looks-up to the Team object twice. One through the "away_team_id" and one through the "home_team_id" field.
Game…

Dave
- 2,546
- 6
- 23
- 29
0
votes
1 answer
Running ActiveJDBC instrumentation on Play Framework compilation
I'm trying to use ActiveJDBC with Play framework. It requires special Instrumentation plugin to be ran on startup.
I'm also using Maven with my application.
How can I run my application with instrumentation plugin?

skayred
- 10,603
- 10
- 52
- 94
0
votes
1 answer
ActiveJDBC and Dropwizard integration
Is it possible to use ActiveJDBC as my ORM instead of Hibernate that Dropwizard provides. How do I set it up if it is possible. Thanks in advance.

dotKwame
- 181
- 3
- 13
0
votes
1 answer
Mysql returns Long from PreparedStatement.getGeneratedKeys();
Using JDBC 3 driver, one can insert a record into a table and immediately get autogenerated value for a column. This technique is used in ActiveJDBC.
Here is the table definition:
CREATE TABLE users (id int(11) NOT NULL auto_increment PRIMARY…

ipolevoy
- 5,432
- 2
- 31
- 46
0
votes
2 answers
ActiveJDBC + Backbone.js Generated attribute name not usable
I am using ActiveJDBC to access a third-party db. There is a column named "users/year". I am not happy with that but cannot change it.
This results is an attribute "users/year" in the json thats the basis for my backbone.js model. Now if I want to…

Tarken
- 2,112
- 2
- 23
- 42
0
votes
1 answer
ActiveJDBC concurrent requests?
I am using ActiveJDBC in one of my projects and today I ran into a nasty problem.
Concurrent requests to my application will fail, because ActiveJDBC tries to get multiple connections from pool with the same name "default".
There seems to be a…

Mr. M
- 75
- 1
- 6
-1
votes
2 answers
Hibernate vs ActiveJDBC
I am getting frustrated with Hibernate, the need to impleement equals, hascode, attach detach session, etc.. while it promises to ease the pain working in plain JDBC, it is introducing new complexity of its own.
Now ActiveJDBC seems like the holy…

Rosdi Kasim
- 24,267
- 23
- 130
- 154
-1
votes
1 answer
Table not found exception using javalite
So I have a very simple table I made in SQL using h2
CREATE TABLE USERS(
username varchar(255) NOT NULL,
password varchar(255),
);
I'm trying to use javalite to add an entry to it so I made this following the instructions on the…

Jonathan Lu
- 25
- 5
-1
votes
2 answers
Instrumentation using gradle on Android App
i am using ActiveJDBC for my Android App, and Im having trouble on instrumentation.
Here is my build.gradle
apply plugin: 'java'
apply plugin: 'org.javalite.activejdbc'
buildscript {
repositories {
google()
jcenter()
…

Vincent Dingding
- 19
- 5