Tagged Questions
0
votes
0answers
14 views
Create installation bundle of apache + postgresql
I have developed a web application, that run on container Apache. It's actually a jar. It also uses a database structure, actually developed with hibernate and PostgreSql.
Anyone knows a good way to ...
0
votes
0answers
49 views
Java hibernate Exception: missing column
I have a PostgreSQL table and a data class representing the table. I am using annotations for mapping instead of mapping xml files. I deleted some columns as they are not required from both the db ...
0
votes
2answers
53 views
how to implement auto increment id field per table with Hibernate and postgresql for one to many relationships
I have 4 entities one-to-many Message entity:
@Entity
@Table(name = "Messages")
public class Message {
...
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "messagesounds_id")
...
0
votes
0answers
30 views
“FATAL: database does not exist” on postres, login is not working through app
I have these three steps bellow which I am executing every moment that I need to create a new environment for my app, the step 3 is just part of code...
On the first step I create the database, ...
0
votes
1answer
53 views
Error! connect Hibernate and Postgresql on eclipse
When i run project on eclipse, errors appear:
Jun 08, 2013 6:11:46 AM org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations
{4.0.2.Final} Jun 08, ...
0
votes
1answer
24 views
Postgres aborts transactions and ignores queries until the transaction is ended, is it possible to process the transaction before its rolled back?
I'm trying to improve upon error handling in a Java/Postgres application and an error that occurs frequently is input being too long for a column with a fixed length. I roll the transaction back when ...
-2
votes
2answers
40 views
How configure Tomcat postgresql jdbc and spring? [closed]
I've a problem...I have a Spring project that it works with Tomcat 7. Now I want to add a database to the project, in particular with Postresql and JDBC. Is there anyone who could help me?
(I'm sorry ...
-1
votes
2answers
47 views
how the list elements will be stored in java
Below is my code (postgresql,java,hibernate)
String squery="select starttime,reachtime from train where loc='hyderabad' ";
list=session.createSQLQuery(squery).list();
for(int ...
2
votes
1answer
27 views
Database/query optimizer for Tomcat/Java application
Can anybody recommend the software to analyze/optimize existent queries in the Java/Tomcat application. About 70% of queries are generated by Hibernate. The database is PostgreSQL but I would like ...
0
votes
0answers
70 views
Exception with batch insert jdbc
I am trying to read the data from a csv files from a particular folder and based on the first parameter I insert the data into a table.The database is postgres. But I am getting ...
0
votes
2answers
30 views
($Proxy6) org.postgresql.jdbc4.Jdbc4Connection@5894585b, what does it mean?
I am trying to downcast java.sql.Connection to org.postgresql.jdbc4.Jdbc4Connection like this:
As you can see, Netbeans tells me localConn is ($Proxy6) ...
0
votes
0answers
17 views
Determination of the reasons of omission of request
There is a procedure reading from a database of value and writing data in ArrayLists which also register in files. As a result of program execution debug files are empty. Prompt in what business. As I ...
1
vote
1answer
21 views
Is it possible to supply parameters for table or column name in Prepared Statements or QueryRunner.update()?
DELETE from ? WHERE ? = ?
Is it possible to feed in parameters for all of these ?s? It seems that if I don't supply Strings, I get errors. For example, it only seems to work if I have something like:
...
1
vote
1answer
36 views
Reconnecting to a postgres database after postgres restart from Java
I'm using postgres 9.1, org.apache.commons.dbcp.BasicDataSource (for my connection pool) and Java 1.7. When I restart my postgres server, I get exceptions like org.postgresql.util.PSQLException: ...
0
votes
1answer
49 views
porting Apache Cayenne from oracle to postgreSQL
I'm porting an existing Java project from Oracle 10 to PostgreSQL 9.1.8 (is this version actually supported from Cayenne?)
Something is wrong in OUT parameters when a cursor is returned.
Return type ...