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 mapping a join table with an intermediate entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "mapping a join table with an intermediate entity" Watch "mapping a join table with an intermediate entity" New topic
Author

mapping a join table with an intermediate entity

Carl Sayres
Greenhorn

Joined: Sep 24, 2008
Posts: 4
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mapping a join table with an intermediate entity