• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

mapping a join table with an intermediate entity

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to follow the pattern in Chapter 7 of Java Persistence with Hibernate (Listing 7.1). This is being used to reverse engineer a legacy database running on Oracle 10g r2.

I am getting the following exception:

org.hibernate.MappingException: Could not determine type for: example.Customer, at table: CUSTVISIBILITY, for columns: [org.hibernate.mapping.Column(customer)]

Here are the relevant (simplified) files:



Any help would be very appreciated!

Carl

[ September 24, 2008: Message edited by: Carl Sayres ]

[ September 24, 2008: Message edited by: Carl Sayres ]
[ September 24, 2008: Message edited by: Carl Sayres ]
 
It's a tiny ad only because the water is so cold.
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