Tagged Questions
1
vote
0answers
45 views
Hibernate beginner
I'm currently trying to learn to use Hibernate to store objects in a database. I've been working through a tutorial at https://netbeans.org/kb/docs/java/hibernate-java-se.html and I'm trying to ...
0
votes
1answer
22 views
Activiti hello world test
I am trying to make a simple Hello world application using Activiti 5.13 BPMN. I made a dynamic web application project in eclipse and added my hello_world.bpmn diagram to the root folder and my ...
-5
votes
0answers
37 views
Connection Refused in postgresql [on hold]
2013-06-18 06:14:53,411 WARN ThreadPoolAsynchronousRunner:608 - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@17afe1f5 -- APPARENT DEADLOCK!!! Creating emergency threads for ...
2
votes
1answer
28 views
How can i solve PostgreSQL JDBC org.postgresql.util.PSQLException Error:
I've got problem with PostgreSQL JDBC
I use postgresql-9 and Glassfish if i execute the querry with pgAdmin i don't have any error but in my application i have this error:
SEVERE: ...
0
votes
1answer
24 views
Hibernate schema generation: same configurations, different behaviour
I am working on a project and have encountered a quite baffling issue.
Some context: the project is a fairly standard Java 7 project using Maven 3.0.4 as build tool and spring (3.2.3.RELEASE) for ...
0
votes
2answers
29 views
PostgreSQL connection in Java - SQLException
I create a database with postgresql and i would like to connect and display the database.
public Connect(){
try {
Class.forName("org.postgresql.Driver");
} catch ...
0
votes
0answers
24 views
Getting SQLState: 08001 with JDBC and postgresql although server was already connected
The config on which the error occurs is:
debian 6,
tomee+ 1.5.2,
postgres 9.2,
hibernate 4.1.2,
I try to import a bunch of data which works very well till a random point where i get an SQLState: ...
0
votes
0answers
20 views
Automatic installation and deployment of Ubuntu OS + java + Tomcat + PostgreSql + servlets [on hold]
I have few servlets running on Tomcat, which are connected to postgredb.
I want to make some deployables or appliances? (vmware?) so that I can automate process of instalation for different servers.
...
-3
votes
2answers
37 views
Issue when deploying application to GlassFish Server - mapping issue?
I'm trying to deploy an application to my GlassFish Server environment. I've set it up so that GlassFish creates a connection pool to a postgreSQL database on another server (not localhost) where the ...
0
votes
2answers
52 views
Postgresql SETOF vs Refcursor
I have a basic user table in Postgresql,
CREATE TABLE myuser (
userId bigserial primary key,
user_name varchar(32),
password varchar(32)
);
I want a stored procedure to retrieve this data. ...
0
votes
1answer
33 views
JPQL union of two joins
I have two related entities, User and Message.
Message has two field containing the User entity, recipient and sender.
Can I do something like union of two joins, where I get the users from both ...
0
votes
2answers
60 views
Determine if a given timestamp is within the same day in postgresql
I've got a PostgreSQL table with a "timestamp without time zone" field. At some given point I query this table, and I need those records where the timestamp is within the same day as when the query is ...
0
votes
1answer
21 views
Loop in plpgsql halts with no error message only when executed from java
I have a plpgsql script (editor's note: it's a function, actually) that contains a loop which drops the primary key constraint for some tables that were generated by eclipse-link. It looks something ...
0
votes
2answers
31 views
When using a connection-pool should I get the connection each query or once each batch?
I have been unable to find an exact answer to this question. I'm using C3P0's ComboPooledDataSource. Which of these methodologies is better practice:
dataSource = connectionClass.getDataSource();
...
0
votes
0answers
50 views
how to map an array of custom type from postgres to java using hibernate
I am trying to map an array of custom type returned by a postgres procedure to the java
I have a custom type in postgres as
CREATE TYPE public.customtype_sample AS(
sampleid bigint,
...