SQLGrammarException « Insert « JPA Q&A





1. org.hibernate.exception.SQLGrammarException: could not insert:    stackoverflow.com

Hi Im running example using hibernate with postgresql 8.4, when i try to add it will dispay following error

org.hibernate.exception.SQLGrammarException: could not insert: [com.claystone.db.OrWorkgroup]
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
    ...

2. org.hibernate.exception.SQLGrammarException: could not insert: [com.Course]    coderanch.com

Hi, Stuck with this error for the past three days. org.hibernate.exception.SQLGrammarException: could not insert: [com.Course] at org.hibernate.exception.CacheSQLStateConverter.convert(CacheSQLStateConverter.java:89) ............ at com.Main.saveCourse(Main.java:43) at com.Main.main(Main.java:19) Caused by: java.sql.SQLException: [SQLCODE: <-30>:

] [Cache Error: <errdone+2^%qaqqt>] [Details: ] [%msg: < SQL ERROR #30: Table 'SQLUSER.COURSE' not found>] at com.intersys.jdbc.CacheConnection.getServerError(CacheConnection.java:1057) Code provided below. Using intersystems cache hibernate.cfg.xml com.intersys.jdbc.CacheDriver SYS ...

3. SQLGrammarException: could not insert    forum.hibernate.org

Newbie Joined: Tue Feb 26, 2008 1:26 pm Posts: 6 Hi, I have the following simple class: public class Contractor { private long id; private String name; public Contractor(){ } public Contractor(String name){ this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public long getId() { return id; } public ...