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 Hell with postgres + hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hell with postgres + hibernate" Watch "Hell with postgres + hibernate" New topic

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

Joined: Feb 05, 2001
Posts: 17260

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


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