aspose file tools*
The moose likes Object Relational Mapping and the fly likes JPA problem: org.hibernate.MappingException: Repeated column in mapping for entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA problem: org.hibernate.MappingException: Repeated column in mapping for entity" Watch "JPA problem: org.hibernate.MappingException: Repeated column in mapping for entity" New topic
Author

JPA problem: org.hibernate.MappingException: Repeated column in mapping for entity

Diego Miranda
Greenhorn

Joined: Nov 04, 2010
Posts: 3
Hi all
I'm pretty new to JPA, so it may sound like a stupid question... I'm getting the following error in console:



In my database I have the following, wich I use to generate the entities using Eclipse's JPA Tools:



The JPA tools generates me the following entities:




if I do put the attributes insertable=false, updatable=false, it stops complaining, but I don't like not knowing what its complaining about
Could anyone help me understand whats going on here?
sorry if it sounds stupid but I'm new to JPA and am trying to learn and understand a little more

Thanks in advance!
Cheers,
Dieguinho
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA problem: org.hibernate.MappingException: Repeated column in mapping for entity