-->
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.  [ 4 posts ] 
Author Message
 Post subject: Type of column?
PostPosted: Wed Nov 15, 2006 9:51 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
What could be the origin of such an error, knowing that
Bank has a Set<BankInfos> ?
--------------------
Following outup comes when the hibernate mapper maps collections:

--------------------
Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(bankInfos)]
--------------------


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 10:33 am 
Senior
Senior

Joined: Tue Jul 25, 2006 9:05 am
Posts: 163
Location: Stuttgart/Karlsruhe, Germany
Pierre,

Could you please post the entity code for Bank, but in my experience it is probably due to a couple of reasons:

1. If not in a relationship, you need to annotate it as @CollectionOfElements, also make the bankinfo entity serializable
2. In a relationship but you are mixing where the annotations are, i always put all annotations at getter level

Cheers,

Andy

_________________
Rules are only there to be broken


Top
 Profile  
 
 Post subject: OK!
PostPosted: Wed Nov 15, 2006 10:55 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
thx Anydale,

it was 2nd tip

---
Pierre


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 11:11 am 
Senior
Senior

Joined: Tue Jul 25, 2006 9:05 am
Posts: 163
Location: Stuttgart/Karlsruhe, Germany
Pierre,

No problem, it took me 1 hour to try and figure out what the problem was (I was annotating the @Id at variable level).


Andy

_________________
Rules are only there to be broken


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

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.