Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Help configuring Entities for existing tables

 
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
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • 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!
 
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic