This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help configuring Entities for existing tables

 
Rj Ewing
Ranch Hand
Posts: 118
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to jpa/hibernate/spring-data-jpa and am getting the following error for my one-to-many mapping of expedition to bcid:

Could not determine type for: java.util.Set, at table: expeditions, for columns: [org.hibernate.mapping.Column(bcids)]





Any ideas?
 
Rj Ewing
Ranch Hand
Posts: 118
1
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so the problem was mixing field and getter annotations
 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rj Ewing wrote:so the problem was mixing field and getter annotations

Glad to hear you have fixed your issue yourself

Thanks for coming back and sharing your solution! Might be useful for other ranchers as well. Have a cow!
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!