[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific

asack do-not-reply at jboss.com
Tue Jun 5 14:50:51 EDT 2007


"asack" wrote : "kpiis" wrote : "asack" wrote : The other thing I find odd is that Hibernate attempts to make it a integer during auto creation of the table instead of a SERIAL type.  Why is that?
  |   | Can you provide the analogue of serial type in Java?
  | 
  | "The type names serial and serial4 are equivalent: both create integer columns."
  | 
  | http://www.postgresql.org/docs/8.1/static/datatype.html#DATATYPE-SERIAL
  | 
  | Right now we are getting several instances of Hibernate not picking the right primary key during insertion using the AUTO strategy for tables (which I'm doing purposely to be database agnostic).  I'm trying to understand why.

I should mention this is a UNIX system with 404GA-ejb3 profile, java 1.5.0_09 runtime

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051510#4051510

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051510



More information about the jboss-user mailing list