sql server 2008 - Incompatible API error when using org.hibernate.dialect.SQLServer2008Dialect with hibernate3-maven-plugin -


i had set project use hibernate3-maven-plugin org.hibernate.dialect.sqlserverdialect hibernate.dialect , working fine.

but when changed dialect org.hibernate.dialect.sqlserver2005dialect, hibernate3-maven-plugin encounters following error:

an api incompatibility encountered while executing org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2ddl: java.land.nosuchmethoderror: org.hibernate.dialect.sqlserver2005dialect.registercolumntype(ijljava/lang/string;)v

does hbm2ddl support sqlserver2005dialect or sqlserver2008dialect (i same error 2008)?

i using version 2.2 of plugin , hibernate.4.1.0.final , jpa 2.0.

just lost few days same error gradle , glassfish. added own sqlserver2005dialect source, , commented out registercolumntype() lines. here, error changed "java.lang.nosuchfielderror: instance"

this more google-able error, , means have 2 sets of hibernate jars.

in case, had installed hibernate via glassfish before hibernate put gradle build. uninstalling hibernate glassfish fixed error, , can run 2008 or 2005 dialects.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -