Saturday, February 4, 2012

hibernate operation ERROR schema does not exist

i did one example in spring,hibernate,postgresql. i created one database and 
schema name is "test". this is the first time i am working with different schema name.
i created hbm.xml and java class file for that database tables. i run the application
everything works fine but when i try to save data to a table is shows an error 
"schema does not exist".
 
 
still now i didnt see these type error and i search more about this.i found one
solution for this. you have to check following  steps are done in your application or
not.
 
 
 
1. check hbm.xml file for correspoding table involved in save transaction whether
the schema name is specified in their or not.
 
eg. 
    
    
 
 
2. check whether below two lines added in your hibernate.cfg.xml file
 
test
create    
 
 
maximum this will work surely.... if anyone found any other solution... post ur comments....