-->
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.  [ 3 posts ] 
Author Message
 Post subject: property mapping has wrong number of columns
PostPosted: Wed May 14, 2008 2:59 pm 
Beginner
Beginner

Joined: Wed Jun 28, 2006 2:24 pm
Posts: 30
Location: Brazil
How can I interpret the following exception?

org.hibernate.MappingException: property mapping has wrong number of columns: br.com.biblioshop.comum.dominio.cadastro.EnderecoDaPessoaFisica._enderecosBackref type: object

What means Backref type: object?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 14, 2008 4:15 pm 
Newbie

Joined: Wed May 14, 2008 4:14 pm
Posts: 5
._enderecosBackref

check if this is a column on your DB or a property on the mapped bean.

Also, the mapping and bean will help pinpoint your problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 14, 2008 5:04 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
When are you hitting this error? On startup, on SchemaExport, on a query, load or delete operation? What is the trigger?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.