aspose file tools*
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
Author

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Please do not duplicate post.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
jQuery in Action, 2nd edition
 
subject: JPA /Hibernate mappiing error
 
Similar Threads
Trying to use entities in a library in another EJB
EntityManager is null!! what can be the problem?
Hibernate -> not-null property references a null or transient value
Hibernate - TABLE is not mapped
JPA /Hibernate mapping error