Tagged Questions
0
votes
0answers
16 views
error while executing query of postgres in Java
I am having trouble, in executing query
String query = "select * from some_table";
Statement statement= connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
...
0
votes
1answer
54 views
How do I retrieve data from multiple tables (PostgreSQL) in Java Servlet?
I having difficulties on retrieving data from multiple tables. It is going to be a search form and its a relational database.
Question1: How do I retrieve data from multiple tables now?
Question2: ...
0
votes
1answer
31 views
JPA Hibernate calling stored procedure
I have a stored procedure in Postgres. That procedure has 4 OUT parameters. Using JPA normally I can't get the results. What I'm trying to do is use a SELECT query with that procedure.
For example If ...
0
votes
1answer
34 views
How may I skip inserting an auto generated id number in PostgreSQL using Java?
I have the following code to input data into the database using java. However, first column is actually generated automatically by postgresql database. Now, how would I change the code so it does not ...
1
vote
1answer
19 views
Java library to generate Postgres SQL Script from DB
Good day, everybody!
Straight to the point.
Is there any java library to generate Postgres SQL Script from DB?
For example i have table job_table
name | job
Andy | pull
Benny | ...
-1
votes
1answer
54 views
Searching from PostgreSQL using Java Servlet. Cannot get any result to show
When I search by Name or Latname, it does not return anything. It returns values only if date of birth is given. Another question is if date of birth is left blank I get
null value in column ...
0
votes
0answers
28 views
Proxool-Hiberante/Spring Postgres Cannot Connection
I cannot connect a Spring/Hibernate with Postgres. The pooled datasource that use my project is Proxool. The error from TOMCAT 7 is "org.hibernate.exception.GenericJDBCException: Cannot open ...
-2
votes
1answer
30 views
Inserting data into the PostgreSQL from Java Servlet
I am trying to use java servlet to input data into the database.
package new;
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class display extends ...
0
votes
1answer
36 views
Key provider with Postgres and GWT
For my GWT project,
I initially constructed a List and a *KEY_PROVIDER* to uniquely identify my records in the List. Now instead of List I have connected to the Postgres database and am wondering as ...
5
votes
2answers
97 views
Store Map<Enum, Enum> as String
I need help with storing a map in JPA2, where both keys and values are enums (Map<Enum, Enum>). With Hibernate as my JPA provider it stores the enums as a blob but I need the data stored as ...
0
votes
3answers
20 views
PostgreSQL connection in Java Servlet to Retrieve Information from the DB. Getting Error
I am having difficulty with getting this work. I can connect to the database without problem, however I can not make it show me the html page. It does not run.
import java.io.*;
import java.sql.*;
...
0
votes
1answer
25 views
org.postgresql.*; class not found error
I am using Java with eclipse.
I downloaded postgresql-9.1-901.jdbc4.jar and added it. (Properties-> Java Build Path-> Libraries -> Add External JARs...
My Database connection is working just fine I ...
0
votes
0answers
69 views
Getting data from PostgreSQL database using hibernate
I am building a web appliaction with gwt, hibernate and PostgreSql. When I try to fetch the data from the database I receive an error coming from an exception.
Particularly:
RPC failed, Unable to ...
5
votes
3answers
50 views
Can one .war file be built with both 8.4 and 9.0 postgres (hibernate) libraries?
We've been using maven dependencies to specify the libraries so far, i.e.:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
...
0
votes
1answer
51 views
Keeps getting Class Not Found Exception for Postgres driver in eclipse plugin
I am developing a simple plugin for eclipse, which has one view connecting to Postgres. I have installed postgres which is running fine. I have a driver:
postgresql-9.0-801.jdbc4.jar
which was ...