How to develop Query Designer in spring based application [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to generate sql queries at run time, user drag and drop the schema from UI like table name no of fields, joining, conditions. In back end I want to build a sql query by using these input from front end and send the build sql query to front end how to achieve this and which API i need to use.

The most common solution for this is criteriaQuery, but you should seriously consider QueryDSL. It has same functionality as criteria (including dynamic query building), but is more maintainable and readable.

Related

Custom execution planner [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Is there any way to develop a custom execution planner for queries?
As execution plan I refer to
https://neo4j.com/docs/cypher-manual/current/execution-plans/
I want to develop an execution planner to modify the order with which match clauses are executed.
For example, is the query only specifies a list of edges, I would like to choose the order with which edges are matched.
Thank you.
There is no built-in way to plug in your own planner implementation.
However, since the code is open source, you could always fork the repo and modify the planner yourself.

Eclipse Java How to objectify JPA database table [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have set up a JPA Database connection for my Eclipse Java project to a PostGreSQL database. I was wondering if there was a way to create a class for one of the tables without doing everything by hand.
Yes,you can use hibernate reverse engineering. Pretty much with some simple set up, it will generate java pojo class for you.
See:
http://javafws.blogspot.com/2013/04/generate-hbm-files-pojo-classes-in-eclipse.html
and
http://www.mkyong.com/hibernate/how-to-generate-code-with-hibernate-tools/

Can all users access the tables created in my schema? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I've installed Oracle 12c, SQL Developer, and have created several tables...but in my schema.
I want to create a Oracle DB backend to a JAVA front end application.
Once created, are all schemas available to any user with the appropriate permissions or are they local to the user who created them?
That's more than one question. But, you create an account (or multiple accounts) to own the tables and stored procedures and functions. And yes, once created anyone can access it (as long as they have the required permissions). And yes, they can run the stored procedures and functions you create (again, if they have the required permissions).

How to save data of a small prog? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am building a small java application that shall run locally on a system. The data I intend to input is little stuff like my daily expenses, a couple of contacts I have, and a couple of notes of things I want to remember.
To save the data for this matter I think installing a database like MySQL or Oracle would be an overkill. In my past projects I always used those databases.
How would I have to manage the data of a small program? Are there any ready to use solutions in the java world? Maybe with the possibility to use it together with JPA?
You should look into Apache Derby:
http://db.apache.org/derby/
or HyperSQL:
http://hsqldb.org/
They're both lightweight database engines that you can fire up on application start-up, ideal for smaller projects. They also both have Hibernate dialects for JPA.

Migrate MS Access to PostgreSQL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm getting data as an Access file.
My application uses PostgreSQL/Java. I'd like to convert the Access database to PostgreSQL.
can any one help me to code this
I doubt there is any simple automatic method. You will have to create ddl statements to make the tables in postgresql (not sure if you can export ddl from access), export the data from access to a csv, and then use postgresql copy from command to populate the tables.
Or you could consider trying this tool:
http://docman.sourceforge.net/home_html/projects/sql/exportSQL3.txt
but it looks like a dev version, it may not be mature.

Categories

Resources