Hello,
I'm very new to Hibernate and am actually training with the help of the book
"Java Persistence with Hibernate".
I have a problem understanding a very trivial concept.
If i refer to page 202 of the book, about table per class hierarchy strategy, i should be able to query for CreditCar, by number, for example.
Let's say something like "from CreditCard where number=......', but i get a
Code:
org.hibernate.hql.ast.QuerySyntaxException: CreditCard is not mapped
Of course, i mapped it (using annotations).
On the other hand, if i query directly on BillingDetails, i get a
Code:
Could not resolve property: number...
Did i simply make a stupid typo in my annotations, or is there another way to query on subclasses ?
Thanks in advance.