File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Hibernate annotations problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate annotations problem" Watch "Hibernate annotations problem" New topic

Hibernate annotations problem

Mike Tihonchik

Joined: Mar 20, 2008
Posts: 12
I am trying to use Hibernate annotations for mapping and I get following error:
org.hibernate.AnnotationException: Cannot find the expected secondary table: no servers available for annotated.Server
Here is my code:

I am using Derby as my database and I know I am getting connection to it...
any help would be appreciated...
I agree. Here's the link:
subject: Hibernate annotations problem
jQuery in Action, 3rd edition