Tagged Questions
0
votes
1answer
19 views
How can I get a String from this Geometry Object with hibernate and PostGIS
I would like to return the output (Output is "0101000020E610000000000000000024400000000000002440" in geometry type) of this SQL Postgis query
select ST_GeometryFromText('POINT(10 10)',4326)
in Java ...
-2
votes
1answer
27 views
org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host
I am writing a web application that uses Hibernate to connect to Heroku Postresql. Everything works fine when the application is deployed to Heroku but I get the following exception when I run the ...
1
vote
2answers
25 views
JDBCTemplate set nested POJO with BeanPropertyRowMapper
Given the following example POJO's: (Assume Getters and Setters for all properties)
class User {
String user_name;
String display_name;
}
class Message {
String title;
String ...
0
votes
1answer
40 views
org.postgresql.util.PSQLException: Connection refused
I wanted to test execution of function of an indexing from other host because this function not absolutely correctly fulfilled in hadoop to the program. But I had problems with connection to a ...
2
votes
1answer
41 views
No suitable driver found for jdbc:postgresql://192.168.1.8:5432/NexentaSearch
I wrote following the java program
import java.io.*;
import java.util.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import ...
0
votes
1answer
32 views
Getting exception while accessing values from data base using hibernate
I have two tables website_availability and status_codes.And these have foriegn key relation between them.status_codes is parent table.I am using hibernate.I need "list" of values from these tables ...
-2
votes
0answers
20 views
CMS Open source API required [closed]
I need to create a CMS based Web Site in JAVA with some of the following proposed technologies: JAVA 7, Hibernate 3.x, Postgresql Database and Apache Tomcat. Could you please specify … what open ...
0
votes
1answer
27 views
Java EE web application Tests JPA EJB3
I am using an EJB3 DAOFacade inside a JSF Managed bean to pull data from database. It worked for the first launch of the server but after that it keeps printing this message error which i don't ...
2
votes
2answers
39 views
Postgres SQL in clause and setArray()
I am using Java 1.7 and JDBC 4 and Postgres. I am trying to use a PreparedStatement with an array to fill a SQL in clause. But, the SQL generated seems to have "{" and "}" in it. Here is the code:
...
0
votes
1answer
44 views
Creating multiple transactions in a single hibernate session
I have created a Quartz Job which runs in background in my JBoss server and is responsible for updating some statistical data at regular interval (coupled with some database flags)
To load and ...
1
vote
3answers
97 views
Trying to connect an external database (postgreSQL)with my android application
I'm having an issue with my android application and don't know how to resolve it....
I'm trying to make a connection throw my external database (postgreSQL) and taking some informations on there ....
...
1
vote
3answers
78 views
How to get array base type in postgres via jdbc
How to get base type / dimension of an array column in Postgres by Java?
I have a tables that contain arrays like int[][] and text[].
When I traverse the metadata from JDBC I can only get type as ...
-1
votes
1answer
40 views
Java app can't connect to local postgresql
I have a simple Java application that needs to connect to a PostgresSQL running on local host. The DB is up and running, and I can connect to it using the username and password using the psql command ...
0
votes
1answer
32 views
JSTL database connection complain
I'm writing exactly the same application as here, I connect to database, If I run my Dao as a java application via main method everything works fine; but If I run the application on server then I get:
...
0
votes
2answers
35 views
Issues with my criteria query when calling SQL created function
In my Postgres 9.1 database I have a li table that is mapped by ORM (Hibernate) in the following Li class:
package a.b;
@Entity
@Table(name = "li", schema = "public")
...