File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hell with postgres + hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hell with postgres + hibernate" Watch "Hell with postgres + hibernate" New topic
Author

Hell with postgres + hibernate

Jose Ayerdis
Ranch Hand

Joined: Sep 14, 2008
Posts: 30
Hi, i've been mapping using annotation as jpa standard and using hibernate as my orm and session manager. Nevertheless i've been experience a huge problem i got this error when i'm trying to insert or update my class.



My mappings goes like this.

Class: Usuario
Class: Gerente extends Usuario
but i can't update or insert havent test delete.

I checked my schema and my Hibernate.cfg goes like this:

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Please post your annotated class that is not inserting, also post your code to do the insert.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hell with postgres + hibernate