-->
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.  [ 1 post ] 
Author Message
 Post subject: Which Maven artifactId has Hibernate's doWork classes?
PostPosted: Wed Mar 16, 2011 3:28 pm 
Newbie

Joined: Wed Mar 16, 2011 3:16 pm
Posts: 1
Hi Hibernate Gurus,

I've been working on converting my project for a standard eclipse project into a maven project. Everything has been converting fine with the exception of some code that uses the Session.DoWork.

Using the http://sourceforge.net/projects/hiberna ... 6.0.Final/ hibernate3.jar the project compiled fine, but I haven't been able to figure our which artifact has the DoWork class.

If I include the standard

<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.6.0.Final</version>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>3.6.0.Final</version>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.6.0.Final</version>

I'll see
[ERROR] \maven work\solek-mvn\eagle\src\main\java\com\solekai\eagle\dao\ApgSession.java:[340,9] cannot find symbol
symbol : method doWork(com.solek.eagle.dao.ApgSession.JDBC_UPDATE_SQL_SESSION_worker)
location: interface org.hibernate.Session
[ERROR] \maven work\solek-mvn\eagle\src\main\java\com\solekai\eagle\dao\ApgSession.java:[460,9] cannot find symbol
symbol : method doWork(com.solek.eagle.dao.ApgSession.JDBC_Get_TileInfoExt_worker)
location: interface org.hibernate.Session

but in troubleshooting if I copy over the original hibernate3.jar into maven and re-compile it works fine. What am I missing?

cp old-WEB-INF-lib/hibernate3.jar /cygdrive/c/Users/kbollman/.m2/repository/org/hibernate/hibernate/3.2.5.ga/hibernate-3.2.5.ga.jar
mvn -npu -nsu -o clean
mvn -npu -nsu -o compile
[INFO] BUILD SUCCESS

Thanks,
Kevin


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

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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.