This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 17249
    
    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
 
Consider Paul's rocket mass heater.
 
subject: Hell with postgres + hibernate
 
Similar Threads
Hibernate: Mapping a sequence to a serial (autoincr) field (Postgresql)
Noob error :org.hibernate.exception.SQLGrammarException: could not insert [com.sample.Person]
onetoone unidirectional relationship problem
Perf Tests failing badly on mysql
insert proble postgrest