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: SortedMap and Annotations
PostPosted: Tue Nov 28, 2006 3:59 am 

Joined: Tue Nov 28, 2006 3:50 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:
public SortedMap<Integer, String> getValues() {
return this.valueMap;
Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
at org.hibernate.cfg.annotations.MapBinder.bindKeyFromAssociationTable(MapBinder.java:112)
at org.hibernate.cfg.annotations.MapBinder.access$000(MapBinder.java:51)
at org.hibernate.cfg.annotations.MapBinder$1.secondPass(MapBinder.java:81)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1127)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:296)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1283)
at com.queo.lifecycle.util.HibernateUtil.<clinit>(HibernateUtil.java:23)

Name and version of the database you are using:
Mysql 5.0.26

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html

When using a normal Map without Sorting everything works as expected.
With a SortedMap i get the above stacktrace when building the sessionfactory. Am i doing something wrong or is this a bug?

Thanks in advance Tom

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