File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
Don't get me started about those stupid light bulbs.
 
subject: JPA problem: org.hibernate.MappingException: Repeated column in mapping for entity
 
Similar Threads
Hibernate association mapping
Multiple Column Join
Hibernate - Cascading problems using ManyToOne association
JPA-Hibernate One-to-One Bidirectional Relationship issue
Hibernate One To Many Not Null