Tagged Questions

1
vote
0answers
74 views

Transaction management with Spring and hibernate, using isolation_serializable

I am using Spring transaction management to control a application with hibernate, it uses two instance of threads to access concurrency database and modify one table. It is ensuring that the values ...
1
vote
1answer
155 views

Unique Constraint Over Multiple Columns

I am using SEAM 2/Hibernate along with PostgreSQL 9 database. I have the following table Active Band =========== active_band_id serial active_band_user text active_band_date timestamp ...
4
votes
1answer
245 views

Hibernate 3.6: how to make use of deferred FK constraints when inserting entities with circular reference?

Consider the following Hibernate 3.6 entity mapping with a circular reference in entities A and B: @MappedSuperclass abstract class Entity { @Id protected UUID id = UUID.randomUUID(); ...
0
votes
1answer
697 views

How to store image into postgres database using hibernate

I want to store image into database using hibernate and Java. I am using postgres database I tried bytea data type to store image and byte[] data type in hibernate pojo. I used the following ...
1
vote
1answer
461 views

Can I reverse engineer a Postgresql db with Hibernate tools when a table has a UUID field?

I want to implement the following workflow: I design tables in postgresql 9, I use Hibernate Tools from Eclipse Indigo to generate POJOs for these tables, and I want Hibernate to use annotations. ...
2
votes
2answers
2k views

Postgresql UUID supported by Hibernate?

I'm desperate, can't get Hibernate working with UUID for PostgeSQL. Here is the mapping using javax.persistence.* annotations: private UUID itemUuid; @Column(name="item_uuid",columnDefinition="uuid ...
2
votes
5answers
5k views

Hibernate use of PostgreSQL sequence does not affect sequence table

I've configured Hibernate to use PostgreSQL sequence (via annotations) to generate values for primary key id column as follows: @Id ...
7
votes
3answers
5k views

Proper Hibernate id generator for postgres serial/bigserial column?

My PostgreSQL tables have id's of type bigserial, meaning they are generated at the time rows are inserted (and thus, the id column's value is not supplied in the INSERT statement). I'm having ...