Re: hibernate annotations I get a MappingNotFoundException



"kal" wrote

When I looked online it said that this was because I had the wrong
hibernate version, but I have the latest 3.2 release.

I can generate a database schema fine, So I assume that something else
is wrong

I believe Hibernate simply just can't find your domain class. Ensure
that it is on the class path when running your JUnit test cases and that
the class is named same in both the mapping configuration and in Java
(using "Avalibility" instead of "Availability" may also cause some
confusion to human readers and code maintainers, maybe that is was has
already happened).


Regards,
--
Filip Larsen


.



Relevant Pages

  • Re: What do you guys think of Hibernate?
    ... I think Hibernate is a good product, but as with all other O/R-mapping ... products you have to produce a rather complicated configuration file. ... table in your database schema. ... Butler also has a set of data-aware swing components ...
    (comp.lang.java.databases)
  • Re: [Newbie to Hibernate] Dont want to create table
    ... >want Hibernate to keep trying to create it every time I instantiate the ORM ... With create-drop, the database schema will ... be dropped when the SessionFactory is closed explicitely. ...
    (comp.lang.java.programmer)