Hibernate version:
Hibernate 3.0.5
Mapping documents:
Code:
<class name="FooImpl" proxy="Foo" table="FOO" >.......</class>
Code:
<class name="Bar" table="BAR">
...
...
<many-to-one class="Foo" ......./>
...
...
</class>
Bar.javaCode:
private Foo foo;
public Foo getFoo() {
return foo;
}
public void setFoo(Foo f) {
foo = f;
}
When I try to use this, I get the following exception while initializing:
Caused by: org.hibernate.MappingException: An association from the table BAR refers to an unmapped class: Foo
What am i missing?