Hi, I have done one application that illustrate the Many-To-One mechonism using annotations.For this i created Student,Address persistant classes with required annotations.and also i wrote one config file it config db properties and mapping classes.But problem is while i'm running main class it gives the following errors.
Exception in thread "main" java.lang.NoSuchFieldError: sqlResultSetMappings at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:166) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:254) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1036) at com.hbrnt.pack.Main.main(Main.java:29)
Please give suggestions to remove those errors. Thanks in advance
|