aspose 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
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
 
Similar Threads
No mapped data?
Deleting from a One-To-Many
jpa problem
Orphan delete doesn't seem to be working properly
Hibernate 3.3.1 - Delete doesn't work