before trying the proposed solution, i tried a different way: producing the simplest possible configuration file (i'm writing a spring application)..and i couldn't reproduce the error I got before.
Unfortunatly, i get a MappingException: unknown entity..
the fact is, my entity is there:
<property name="annotatedClasses">
<list>
<value>it.chi.commercialisti.model.Empty</value>
</list>
</property>
(there are no other entities to be persisted);
and the class looks like very simple:
import javax.persistence.Entity;
@Entity
public class Empty {
public Empty() {
}
}
So, i'm wondering wheter this problem comes from the manipulation performed over that class before it is persisted. In particular, i introduce (using asm2.x) a field and related getter/setter methods.
I was thinking about dynamically introducing
the annotation, but if I get this error with the current state of development, i guess there's something wrong in the technique.
i'm copy/pasting the stacktrace for sake of completeness. i could attach a testcase to reproduce the problem.
feel free to forward me to the hibernate users forum.
some info on my env:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.1beta8</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.1.2</version>
</dependency>
java version "1.5.0_06 "
thanks,
valerio
On 4/18/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote:
1) I don't it will work because of api changes, but feel free to
try/submit patches
2) In Hibernate 3.2 we can run (optionally) with javaassist, removing the
need for the mentioned libraries
3) We don't use sf.net for cvs anymore, we use JBoss SVN (see
http://hibernate.org/30.html#A3)
/max
> Hello everyone,
> in my application I need to use asm 2.x . The latest version of
> hibernate I
> can find so far (at ibiblio repository, 3.1.2 ) depends on cglib 2.1.3,
> which
> in turn depends on asm 1.5.3. There's been an API refactoring from the
> two
> major releases of asm, which means the new version is not backward
> compatile.
> I'm also aware of the latest published version of cglib , but in the
> cglib cvs repository it possible to checkout a version which actually
> depends on asm2.x .
> My question then is the following: does the current version of hibernate
> will continue working if I 'manually' upgrade cglib (and all its
> dependencies) ? I'm asking this before doing because the checkout from
> sourceforge seems to not work right now, so maybe I can have some helpful
> feedback before getting into the whole process.
>
> Thanks a lot,
> Valerio Schiavoni
>
> --
> http://valerioschiavoni.blogspot.com
> http://jroller.com/page/vschiavoni
--
--
Max Rydahl Andersen
callto://max.rydahl.andersen
Hibernate
[EMAIL PROTECTED]
http://hibernate.org
JBoss Inc
[EMAIL PROTECTED]
--
http://valerioschiavoni.blogspot.com