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 JPA /Hibernate mappiing error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply locked New topic

JPA /Hibernate mappiing error

jeff mutonho
Ranch Hand

Joined: Apr 30, 2003
Posts: 271
I'm trying to persist a simple User object to an HSQLDB.The code performs a check to see if the User already exist and if not , then persists the User object.
The code is shown below :

The User class looks like :

and my persistence.xml :

When I try to run the application , I'm getting the following exception:

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Please do not duplicate post.



Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: JPA /Hibernate mappiing error
It's not a secret anymore!