Questions tagged [javalite]

JavaLite is a collection of frameworks including ActiveJDBC (an ORM) and ActiveWeb.

JavaLite is a collection of frameworks including and .

http://javalite.io/

123 questions
1
vote
1 answer

ActiveJDBC select record from multiple tables with an aggregate

Here is the situation. I have one table with multiple many-to-many relationships. game (id, name, year_release ...) game_price (game_id, price_id, amount) price(id, label -- new game, used game) category(id, name) game_category(game_id,…
Rony
  • 101
  • 1
  • 8
1
vote
1 answer

Many-to-Many extra field in activejdbc

I have 3 tables: person (person_id, person_name), game (game_id, game_name) and the linked table play(person_id, game_id, score). With ActiveJdbc I use many2many annotation and it works fine to get all games for 1 person List games =…
Rony
  • 101
  • 1
  • 8
1
vote
1 answer

"There's nothing here yet" after deploying Java Web App on Azure

I have a web app I want to deploy on Azure. I followed the recommended instructions and deployed my app, and according to the Azure portal, everything is working just fine. However, when I visit the base URL my app should reside in, I see a page…
halileohalilei
  • 2,220
  • 2
  • 25
  • 52
1
vote
1 answer

Can't retrieve db Model getId() anymore in activejdbc 1.4.12

I was using activejdbc 1.4.9 and the following sample code was running just fine Client client = new Client(); client.save(); Assert.assertNotNull(client.getId()); Since I upgraded to 1.4.12, client.getId() is always returning null when save is…
ccarvalho
  • 11
  • 1
1
vote
1 answer

Activeweb CORS Option Preflight in Restful Controllers

When trying to connect to a restful controller in activeweb from a nodejs application chrome is sending options preflight request for delete and put methods, the preflight request needs to be handled by emitting a 200 response from the server. As…
Partha
  • 15
  • 4
1
vote
1 answer

Active Jdbc Association does not work

I have two classes called User and Competencia. I want make a relationship between them, but it doesn't work. See: public class User extends Model{ } @Table(value = "competencias") @BelongsTo(foreignKeyName = "user_id", parent = User.class) public…
1
vote
1 answer

How to parse JSON into an ActiveJDBC Model?

I am using ActiveJDBC for a pet project. I cannot seem to find a way to convert a JSON array into List nor Java array. The code below does take the JSON array and creates a list, BUT the model is not populated. Meaning, number.get("winning_numbers")…
Jose Leon
  • 1,615
  • 3
  • 22
  • 30
1
vote
1 answer

ActiveJDBC and quoted identifiers

I'm trying to use ActiveJDBC with a legacy DB where tables and columns often contain hyphens in names. This works OK for SELECTs as I can quote the identifier (e.g. Model.where("\"stupid-name\" = ?", 1)). The problem arises with INSERT/UPDATE as…
gimoh
  • 53
  • 4
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
1 answer

Java Package Name(s) for Javalite Application

I'm quite new to Javalite and have coded my first application. My first question is about Java package names to use - all examples I've found have top-level package name as 'app'. Can I define and use my own package names assuming that package names…
Nick S
  • 11
  • 2
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

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

How to optimize connection managment in ActiveJDBC?

I am using ActiveJDBC as an alternative to Hibernate. I am using a Filter to start the connection whenever I run the application, but the connection will be there even when it is not needed by the application. Also, when I try to run any query by…
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
1
2
3
8 9