I'm trying to run the EntityTest annotation test case from the hibernate-annotations-3.0alpha2 distribution. I'm using hibernate-3.0beta3. I'm getting the following exception:
1) testLoad(org.hibernate.test.metadata.EntityTest)java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.Configuration.classes from class org.hibernate.cfg.AnnotationConfiguration
at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:72)
at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:44)
at org.hibernate.test.metadata.TestCase.buildSessionFactory(TestCase.java:44)
at org.hibernate.test.metadata.TestCase.setUp(TestCase.java:57)
at org.hibernate.test.metadata.EntityTest.main(EntityTest.java:276)
Looking at the Configuration class source code (including the latest and greatest in CVS), I see that the classes Map is protected which obviously doesn't allow other classes in the package to access it.
What is needed to try out Hibernate Annotations?
Thanks,
Neil
|