Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7880631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:11:23+00:00 2026-06-03T04:11:23+00:00

I have the following problem: We have several different databases on which our program

  • 0

I have the following problem: We have several different databases on which our program runs, so the exact database-structure is unknown during compile-time. We are now searching for a library which allows us to build query-objects, that can be translated to several SQL-dialects and gives us a plain Query-String.

We search for something similar to regular ORM-Libraries such as Hibernate. We’ve looked into some of them, but it seems that all of them except tables and columns to be defined at compile-time as a regular java-class. If I’m wrong on this, please correct me.

The basic difference between the ORM approach and ours is, that we don’t want to store java-objects in databases, but to generate queries as java-objects. To make my point more clear, I will show you some example code, that should be executable by the library.

QueryObject query = new QueryObject();
query.addSelectedTable("customers");
query.addSelectedColumn("customerID");
query.addSelectedColumn("firstname");
query.addCondition("age < 20");
query.addLimit(10);

System.out.println(query.toMySQL()); 
//prints SELECT customerID, firstname FROM customers WHERE age < 20 LIMIT 10;

I don’t know if such a library exists, but if you know one, I would be happy to know about it.

To be more demanding, there are several other features, that would be great. For example, it should also be able to handle subqueries and other query-types as SELECT. But that would be too much to expect 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:11:23+00:00Added an answer on June 3, 2026 at 4:11 am

    Have you checked out Squiggle-SQL?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with the following situation: several commits are pushed to a
I have the following problem in a Database using Access 2007 as front end
I have the following problem: I have to list several items each with several
I have the following problem. On a UIScrollView are laid out several components :
In my application I have several DataContexts that connects to different databases with different
I have the following problem with XSLT. In an XML document I have several
Current situation: I have a database with following structure: Product Category (contains column product_id)
I have following problem: I have built a tabbar application with 4 tabs. I
I have following problem, Code: String a=Yeahh, I have no a idea what's happening
I have the following problem: I have a form in site/banen (currently local running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.