-->
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: org.hibernate.MappingException: Could not determine type
PostPosted: Fri Feb 25, 2005 10:10 am 
Regular
Regular

Joined: Thu Feb 19, 2004 4:48 am
Posts: 62
Hi,

I'just introduced a new Class to an inheritance tree with InheritanceType.JOINED - the new Class has only very simple annotations, just like three other classes that work flawless:

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@InheritanceJoinColumn(name="unit_id")
public class Section extends Unit{


protected String test;

public String getTest() {
return test;
}

public void setTest(String test) {
this.test = test;
}

}

The new Class throws an exception when the configuration is processing foreign key constraints, it says:

Caused by: org.hibernate.MappingException: Could not determine type for: de.vierundsechzig.springer.model.structure.Section, for columns: [org.hibernate.mapping.Column(section)]

The other classes with similar annotations work without a flaw, only this one breaks. Does anyone have an idea about this exception?

thx&cheers
stf


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 10:13 am 
Regular
Regular

Joined: Thu Feb 19, 2004 4:48 am
Posts: 62
sorry, my fault .....


I had a getSection() in another class which only wraps another method and was not declared transient. Sorry for bothering all of you.

cheers
stf


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.