[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific
asack
do-not-reply at jboss.com
Tue Jun 5 13:59:30 EDT 2007
"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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051482#4051482
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051482
More information about the jboss-user
mailing list