Subject Re: [Firebird-Java] A newbie
Author Roman Rokytskyy
> I'm a newbie in java programming. I tried to develop an application using netbeans IDE, with hibernate and firebird 1.5 database. I used jaybird JDBC 2.1 driver.
> But it didn't work, and the problem was my entity class could not be mapped to the table.
>
> Below is the error message (I tried to invoke c.getAll() method where c instance of Customer and getAll method's supposed to return list of customers):
> Exception in thread "main" java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: Customer is not mapped [from Customer c]
> at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:634)
> at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:95)
>
>
> Could anyone please tell me how to solve this problem? Thank you.

Your application is missing the mapping for the class Customer. If you
use Hibernate with .hbm.xml files, ensure that your Customer.hbm.xml is
mapped in the hibernate.cfg.xml. If you use annotations, check the
Hibernate configuration.

I am pretty sure that it has nothing to do with Jaybird/Firebird...

Roman