-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Annotations 3.1beta3 and Hibernate 3.1beta1: incompatible?
PostPosted: Sun Jul 24, 2005 3:44 pm 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Hibernate version: 3.1beta1

Hibernate Annotations version: 3.1beta3

Name and version of the database you are using: MySQL 5.0.7

In Hibernate Annotations 3.1beta3 the methode
org.hibernate.cfg.annotations.QueryBinder.bindQuery(NamedQuery, ExtendedMapping)
needs the constructor NamedQueryDefinition(String, String, Integer, Integer, FlushMode)

In Hibernate 3.1beta1 is only available
NamedQueryDefinition(String, boolean, String, Integer, Integer, FlushMode, Map)

Full stack trace of any exception that occurs:
java.lang.NoSuchMethodError: org.hibernate.engine.NamedQueryDefinition.<init>(Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Lorg/hibernate/FlushMode;)V
at org.hibernate.cfg.annotations.QueryBinder.bindQuery(QueryBinder.java:41)
at org.hibernate.cfg.annotations.QueryBinder.bindQueries(QueryBinder.java:103)
at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:196)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:281)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:174)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1026)
at de.hska.dbutil.HibernateUtil.<clinit>(HibernateUtil.java:25)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at de.hska.dbutil.HibernateServlet.init(HibernateServlet.java:22)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 24, 2005 3:52 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Quote from the Hibernate Home page
Quote:
If you use Hibernate Annotations and/or Hibernate EntityManager, please continue using the 3.1 alpha 1 release. An update is already in the works. Use Hibernate 3.1 beta 1 in non-critical development as an update of 3.0.5.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.