This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Hibernate One To Many Not Null
JPA-Hibernate One-to-One Bidirectional Relationship issue
Multiple Column Join
Hibernate - Cascading problems using ManyToOne association
Hibernate association mapping