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
0
votes
1 answer

Instrumentation Error even if already Instrumented. (Standalone Instrumentation, using CaptainCasa Framework)

Even if Eclipse already said that class is instrumented, when I click "Reload Server" on CaptainCasa toolset, error occurs org.javalite.activejdbc.InitException: you are trying to work with models, but no models are found. Maybe you have no models…
0
votes
1 answer

How to return records from database using javalite?

I am using the following line to query the DB: List postsCategories = PostsCategories.findBySQL("select category from posts_categories"); Instead of returning only [{category=Miscellaneous},....] it is returning extra info such as…
kittu
  • 6,662
  • 21
  • 91
  • 185
0
votes
1 answer

Implementing record level or field level security in ActiveJDBC

Igor, I was wondering if you might have some hints as to how I might go about implementing record level, or possibly, field level security using ActiveJDBC. I played around with extending the Model class to override some of the methods from Model. …
Dave
  • 2,546
  • 6
  • 23
  • 29
0
votes
1 answer

deleteAll doesn't work with foreign keys to other rows in same table

I have a Model class that has an attribute referencing another instance of the same Model class. Its basically a tree structure in one Model. When I try to exectute MyModel.deleteAll() it fails because a foreign key constraint fails. Is there…
evan.leonard
  • 989
  • 2
  • 8
  • 10
0
votes
3 answers

How to access particular element in list in java

I am looping a list to get particular ids off the list array: This is list I am looping: for(int i =0 ;i
kittu
  • 6,662
  • 21
  • 91
  • 185
0
votes
1 answer

Unable to deploy javalite on heroku

I have my procfile: web: java -cp target/classes:target/dependency/* com.888.888.Application Connection details: Base.open("com.mysql.jdbc.Driver", "jdbc:mysql://o3iyl77734btg.cbetxkdyhwsb.us-east-1.rds.amazonaws.com/lt9vgms3ueidoa",…
kittu
  • 6,662
  • 21
  • 91
  • 185
0
votes
2 answers

Unable to use database properties file in JavaLite

Could not load database properties file. I have my database.properties file in class path resources folder and I have configured activejdbc.properties at root of classpathenv.connections.file=MyProject/src/main/resources/database.properties I am…
kittu
  • 6,662
  • 21
  • 91
  • 185
0
votes
1 answer
0
votes
2 answers

How do I save values submitted from form in activejdbc?

@Override public Long createPost(Request request) { Base.open(); ObjectMapper mapper = new ObjectMapper(); try { Post newPost = mapper.readValue(request.body(), Post.class); // Map values = ... initialize map // …
kittu
  • 6,662
  • 21
  • 91
  • 185
0
votes
1 answer

I got this error quite often: org.javalite.activejdbc.DBException: Cannot open a new connection

I got this error when I leave a page 10 minutes and then refresh or when I refresh a page multiple times quickly (a page where the controller launches a query of course). Tahe same error as here: https://github.com/javalite/activejdbc/issues/268 I…
Rony
  • 101
  • 1
  • 8
0
votes
1 answer

Trigger query with ActiveJdbc in controller

I'm running a query using ActiveJdbc List games = District.findAll("where createor_id = ?", creatorId); And according o the documentation the query is triggered when I do this for (Game game : games) { //do things with result …
Rony
  • 101
  • 1
  • 8
0
votes
1 answer

Can I put different parts of a Javalite project in separate Maven repos?

In my Javalite project, I have my models, controllers, config files and other classes. I want to reuse some of the parts in this project since in my other Javalite projects, I want to use the same models but I don't want to simply copy-paste or…
halileohalilei
  • 2,220
  • 2
  • 25
  • 52
0
votes
1 answer

org.javalite.http.HttpException: Failed URL: "https://google.in"

I'm facing an issue when executing a simple program in Javalite where I'm testing an API GET call. The method fetches the URL and reads the response code. But JavaLite is throwing as exception: org.javalite.http.HttpException: Failed URL:…
Manoj Lonar
  • 11
  • 1
  • 3
0
votes
2 answers

ActiveJDBC, MySQL and null timestamp producing SQLException

I'm having trouble reading a Model from db using ActiveJDBC. Basically, i'm doing ModelClass.findFirst(...) and a SQLException pops up. There seem to be no problems if the timestamp field is non-zero. Said Model has a mysql timestamp (tried also…
Hitunen
  • 11
  • 2
0
votes
1 answer

ActiveJDBC with multi-tenant DB structure

I have a multi-tenant DB architecture. Is there any way to use one active model for multiple identical databases? A little clarification: I have a Foo exdends Model class that works with a foo_table. That foo_table is identical in schemaA, schemaB,…
Norbert Bicsi
  • 1,562
  • 2
  • 19
  • 33
1 2 3
8 9