Hibernate version: 3.1.3 (annotations 3.1beta8)
Name and version of the database you are using: MySQL 5
Hi!
When Hibernate tries to build my schema I get
Code:
org.hibernate.MappingException: Could not determine type for: net.keso.ted.tapestrySandbox.entity.CustomerAddress, for columns: [org.hibernate.mapping.Column(contactAddress)]
I tried to put CustomerAddress on top in the XML entity mapping file. but it didn't do the trick.
now I just don't know what to do.
Here are my entities, Any suggestions?
Code:
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
public class Name {
@Id @GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
private String surName;
private String firstName;
}
Code:
@Entity
public class Admin extends User {
private boolean isActive;
}
Code:
@Entity
public class Customer extends User {
private CustomerAddress contactAddress;
private Set<CustomerAddress> deliveryAddresses;
private boolean isMedinaCustomer;
}
Code:
@Entity
public class CustomerAddress extends Name {
private String title;
private String phoneNumber;
private String street;
private String zipCode;
private String city;
private String country;
}
Code:
@Entity
public class Employee extends User {
private boolean isActive;
private boolean isNewsAdmin;
private boolean isStoreAdmin;
private boolean isProductAdmin;
}