1
vote
0answers
17 views

Hibernate save updating same row

I am working on Jersey, Hibernate and PostgresSQL and i trying to add asset with following code @Path ("/assets") public class AssetsService { @PUT @Produces("text/plain") ...
0
votes
0answers
48 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
39 views

postgres + hibernate, sequence in database is negative, why?

we have a very strange behaviour on our productions system. db: posgres 9.0.13 spring: 3.1.2.RELEASE hibernate: 3.5.3-Final clustered tomcat setup with 5 tomcats running the same web app and ...
0
votes
2answers
45 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
1answer
48 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, ...
-1
votes
2answers
46 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 ...
0
votes
2answers
19 views

Unable to add SSL support for database

I am using Spring3, Hibernate4 and postgres9.2. For enabling the SSL database connection, I followed following steps : Creating self signed Certificate : refer : ...
-1
votes
3answers
63 views

How to get the serial id just after inserting a row? [duplicate]

I have a table with row 'id' (a primary key) default set to serial in PostgreSQL. I insert into this row by calling session.getCurrentSession().createSQLQuery("some insert query") without adding ...
0
votes
1answer
22 views

Hibernation simple direct mapping

I have 2 tables employees and orders: Console screens_before execusion Now i'm trying to map list collection to get all orders of each employee. My mapping: @Entity @Table(name = "employees", schema ...
0
votes
1answer
37 views

call postgres function with hibernate

I wrote a PostgreSQL function with return value VOID: CREATE OR REPLACE FUNCTION queryinteriorexteriorcount() RETURNS void AS ..... The function works quite well if i call it in pgAdmin. But if i ...
0
votes
0answers
39 views

Error while Connecting postgres using Hibernate. - NullPointerException

Am getting below exception while connecting to postgresql, INFO: HHH000046: Connection properties: {user=postgres, password=****} Exception in thread "main" java.lang.NullPointerException at ...
0
votes
1answer
21 views

Hibernate xml column definition

so this seems to be a bit of a hack but I've been looking at this code too long. I have a table that's id is a bpchar in postgres. The pojo is looking for a string and I am getting an error when the ...
0
votes
0answers
21 views

hibernate ant task hbm2java - org.hibernate.MappingException

I'm using hbm2java task (ibernate-tools 4.0.0-CR1) to generate the java pojos from a postgres db. CREATE TABLE CO_ASGMT_WRKR_EV ( ID_STR_RTL CHAR(32) NOT NULL, ID_EV ...
0
votes
1answer
38 views

The Right Way To Do Evolutions In Play

I am currently working on a play app to be the backend API for a mobile app I'm developing. Until now, I had set jpa.ddl to update and everything has been working fine. When I added a new field to ...
0
votes
1answer
20 views

Specifying index method when using @Index annotation

I'm using (spatial) hibernate annotations to create a schema for a spatial application that is implemented on top of PostGIS. When creating the database schema from my annotated classes, I'm in need ...

1 2 3 4 5 30
15 30 50 per page