postgresql « ID « JPA Q&A





1. Hibernate PostgreSQL ID    forum.hibernate.org

Platform: Postgres 8.3, Hibernate 3.4 I a using Hibernate with Postgres for the first time and am having terrible problems getting ID generation to work correctly. I am trying to define a table such that inserts will work consistently whether made via Hibernate or via some other mechanism, viz. a value need never be specified for the id column. I've never ...

2. Problem with id generation on postgreSQL    forum.hibernate.org

Author Message dastardly75 Post subject: Problem with id generation on postgreSQL Posted: Thu Dec 14, 2006 7:42 am Newbie Joined: Thu Dec 14, 2006 6:59 am Posts: 2 Hi everybody, I want to report a weird behaviour in id generation on a PostgreSQL 8.1.4 Linux database. I deployed my web application on other versions, PostgreSQL 8.1.3 Windows , with ...

3. Generating id in PostgreSQL    forum.hibernate.org

... @Entity @AccessType("field") @Table(name=Country.TABLE_COUNTRY) public class Country implements Comparable { @Id @GeneratedValue(strategy=GenerationType.AUTO) private Long id; @Column(unique=true,nullable=false,length=7) @Enumerated(EnumType.STRING) private CountryCode code; @Column(nullable=false) private String name; ...