I'm sorry to post on dev list for this that probably is a user
problem, but i got no feedback on user forum, and google has no answer
for this strange problem.

Hibernate version: 3.2.2
JDK: 1.4

The problem: i was able to generate and compile pojos files with
hbm2java ant target but trying to compile dao interfaces (created with
hbm2dao) i got a bunch of these:

/home/ceztko/development/thgroup/visionehrcv/src/com/thgroup/visionehrcv/model/StatoValutazioneHome.java:99:
cannot resolve symbol
symbol  : method get (java.lang.String,int)
location: interface org.hibernate.classic.Session
            StatoValutazione instance = (StatoValutazione)
sessionFactory.getCurrentSession().get("com.thgroup.visionehrcv.model.StatoValutazione",
id);
                                                          ^

The same error is on all dao classes, all at line 99. My classpath is
ok (surely it see hibernate3.jar, most recent stable version). Trying
to recompile hibernate3 from source, and trying to recompile the
project with all hibernate3 source bundled libs in the classpath give
me the same error.
Looked hibernate sources and get method with parameters String and int
is there, in the org.hibernate.Session superclass! So seems no problem
there too...

Here you can find an example class of the generated sources, pojo
(that compile) and daos (that doesn't), and the config.hbm.xml:
    http://www.webalice.it/ceztko/Provincia.java
    http://www.webalice.it/ceztko/ProvinciaHome.java
    http://www.webalice.it/ceztko/config.hbm.xml

Thanks for your attention. Forgive me if was a my oversight.

Francesco

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to