-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Problem with inheritance and types beeing determined.
PostPosted: Fri Apr 21, 2006 7:18 pm 
Beginner
Beginner

Joined: Thu Sep 22, 2005 7:22 am
Posts: 21
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;
}

_________________
/ted


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 22, 2006 8:53 am 
Beginner
Beginner

Joined: Thu Sep 22, 2005 7:22 am
Posts: 21
bump...
Is this expected behaviour or could just be the annotations still beeing in beta?

_________________
/ted


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.