ActiveJDBC is a Java ORM modeled on ActiveRecord from Ruby on Rails.
Questions tagged [activejdbc]
215 questions
1
vote
2 answers
ActiveJDBC data model returning metadata instead of data
I'm using JavaLite ActiveJDBC to pull data from a local MySQL server. Here is my simple RestController:
@RequestMapping(value = "/blogs")
@ResponseBody
public Blog getAllBlogs( )
throws SQLException {
Base.open( "com.mysql.jdbc.Driver",…

rainydaymatt
- 594
- 3
- 10
- 21
1
vote
1 answer
How to implement inherited models in ActiveJDBC with associations between superclass and another model?
I'd like to build something like this:
abstract class Owner extends Model {}
class User extends Owner {}
class Group extends Owner {}
class Thing extends Model {}
where every Thing has one and only one Owner that can be a Group OR an User.
How is…

Mischa
- 13
- 3
1
vote
1 answer
sqlException when use ActiveJDBC
I use ActiveJDBC and Oracle 11g DB. When I use saveIt, i get java.sql.Exception. When I get instance or list of it, everything ok.
What I do wrong?
Exception in thread "main" org.javalite.activejdbc.DBException: java.sql.SQLException: Invalid…

alex
- 942
- 1
- 10
- 26
1
vote
2 answers
Raw SQL with ActiveJDBC
it seems that using ActiveJDBC is very limiting
I have three tables a, b and c they all have text column
I want the union of of all these table
I tried
LazyList list = A.findBySQL("(select name as text from a) union (select version as text from…
user1781626
1
vote
1 answer
ActiveJDBC & JDK8 streams
I have a problem with instrumentation of my Model classes when I use JDK8 features there(lamba). It just silently skips those classes.
When I try to call:
CtClass clazz = getClazz("me.factorify.server.person.domain.Person");
…

jakub.petr
- 2,951
- 2
- 23
- 34
1
vote
1 answer
ActiveJDBC Instrumentation: Unable to instrument the model classes which are in Jar
I am using activejdbc 1.4.9. I created one jar (using maven) which has two ActiveJDBC Model Classes. I added the jar to the application. Application has three more model classes. When I compile and try to run the application (gradle based),…

Santhosh Tangudu
- 759
- 9
- 19
1
vote
1 answer
Can't set up instrumentation for ActiveJDBC in Intellij IDEA Community
I'm trying to setup ActiveJDBC instrumentation in Intellij IDEA, but although I performed all of the steps from the instruction, I can't get it to work.
In my pom.xml I have the plugin enabled:
…

moskalak
- 271
- 2
- 12
1
vote
3 answers
Plugin execution not covered by lifecycle configuration if trying to use ActiveJdbc under Eclipse
I have entered required config into my pom.xml to develop with ActiveJdbc, which includes one dependency and one plugin.
Dependency went ok, while plugin caused error message from Eclipse:
Plugin execution not covered by lifecycle configuration
I…

Suzan Cioc
- 29,281
- 63
- 213
- 385
1
vote
2 answers
Jenkins not instrumenting ActiveJDBC model classes
I've created a jenkins job using "Maven 2/3 Project" type.
The java project I'm using uses ActiveJDBC which requires a step in instrumentation while compiling.
From the command line the 'mvn package' works correctly and the classes are instrumented…

Basil Musa
- 8,198
- 6
- 64
- 63
1
vote
2 answers
MyEclipse + Maven + ActiveJDBC how to auto run instrumentation
I am using MyEclipse + Maven and ActiveJDBC for my project.
I am deploying my project in exploded mode to a tomcat server from inside MyExclipse so I can profit from hot deploy during development. But everytime I change a DB class I have to manually…

Tarken
- 2,112
- 2
- 23
- 42
0
votes
1 answer
Why does eclipse look in the 'workspace' directory for sources instead of those in the ant script?
I have an ant script with the following header:
And then somewhere below:

PhD
- 11,202
- 14
- 64
- 112
0
votes
2 answers
Autorun a jar/java file 'after' eclipse builds project?
I'm playing around with ActiveJDBC and it has a post-compile step for 'instrumentation' (i.e. crudely speaking it post-process byte-code to add the parent's static members to the class as per the ActiveRecord pattern).
You constantly have to run the…

PhD
- 11,202
- 14
- 64
- 112
0
votes
1 answer
Quarkus: Is there a way to exclude classes from automatic reload/recompile in the dev mode?
When using JavaLite ActiveJDBC with Quarkus, this exception is generated:
org.javalite.activejdbc.InitException: you are trying to work with models, but no models are found. Maybe you have no models in project, or you did not instrument the…

ipolevoy
- 5,432
- 2
- 31
- 46
0
votes
0 answers
Quarkus ActiveJDBC integration
How do one setup the ActiveJDBC instrumentation step on a quarkus project?
The instrumentation plugin is setup in pom.xml, and can be run successfully manually or via IDE.
org.javalite
…

Sugiharto Lim
- 98
- 5
0
votes
1 answer
ActiveJDBC: Joined rows of findBySQL with join are empty
I am performing a mildly complex query in a findBySQL call with ActiveJDBC. I receive results as expected, but when I query joind rows with getAll, the results are empty.
List classSessions = ClassSession.findBySQL("""
select…

Malcolm Crum
- 4,345
- 4
- 30
- 49