This content has been marked as final.
Show 2 replies
-
1. Re: Create table with ID as Auto increment
mdeterman Mar 13, 2006 5:33 PM (in response to janinmobia)You need to set the correct hibernate dialect in your persistence.xml file
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
is what you need. by default it is not MySQL. -
2. Re: Create table with ID as Auto increment
mrhightech Mar 13, 2006 5:57 PM (in response to janinmobia)On a side note, you might want to update your annotations. @Id(generatorType...) is not used anymore
@Id and @GeneratedValue are the new annotations.
have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD