-->
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: net.sf.hibernate.LockMode cannot be resolved
PostPosted: Mon Dec 19, 2005 3:00 am 
Newbie

Joined: Mon Dec 19, 2005 2:37 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:3.0[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:N/A[/b]

[b]Name and version of the database you are using:MySQL 4.1[/b]

[b]The generated SQL (show_sql=true):N/A[/b]

[b]Debug level Hibernate log excerpt:N/A[/b]

-------------------------

I am using MyEclips /Eclips 3.1 with Spring 1.2, MySQL, JSF and Hibernate.

I need help to resolve following error:

"The type net.sf.hibernate.LockMode cannot be resolved. It is indirectly referenced from required class files". I am getting this error while using "getHibernateTemplate()".

Here is the line code

"User user = (User) this.getHibernateTemplate().load(User.class, username);"

I saw a posting at "http://svn.hisp.info/confluence/display/HISP/FAQ?decorator=printable" suggesting to copy dependency declarations verbatim into <dependencies> section but the person did not mentioned the filename. Done any onw know which file contains this tag?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 19, 2005 4:14 am 
Beginner
Beginner

Joined: Sat Dec 17, 2005 1:24 pm
Posts: 42
Location: Berlin, Germany
In the class calling getHibernateTemplate() you probably included the wrong HibernateDaoSupport class. Your included class may be from the package org.springframework.orm.hibernate.support but you require the package org.springframework.orm.hibernate3.support. The net.sf.hibernate packages refer to Hibernate 2.

Does that help?

All the best,

René


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.