@GeneratedValue not setting up auto increment in mysql and h2 dialects

Hi,In earlier versions of Hibernate if we want to have an auto_increment primary key we can use the following: @Id @GeneratedValue(strategy=GenerationType.AUTO)@Column(name=”user_id”)private Integer userId; But in latest version of Hibernate(may be Hibernate4, whatever is used in JBoss AS7) this doesn’t work as expected. The generated table primary key is not auto_increment column. To resolve this configure <property […]

Read More

Solution for JDK6 + JBoss-5.1.0GA + JAX-WS integration error: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage

1.     Copy the following jars from JBOSS_HOME/client to JBOSS_HOME/lib/endorsed dir.        a.     jbossws-native-jaxrpc.jar        b.     jbossws-native-jaxws.jar        c.     jbossws-native-jaxws-ext.jar        d.     jbossws-native-saaj.jar 2.     Delete saaj-impl.jar(if its already there) from JBOSS_HOME/lib/endorsed dir.

Read More