Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help configuring Entities for existing tables  RSS feed

 
Rj Ewing
Ranch Hand
Posts: 120
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: 120
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: 11077
173
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!