jQuery in Action, 3rd edition
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

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: 17276

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


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Consider Paul's rocket mass heater.
subject: Hell with postgres + hibernate
It's not a secret anymore!