Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate:problem with schema

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have next problem with Hibernate.
I am not succeed in generating primary key column in table.

My table "Setting" with primary key "id" in schema "test" (Derby DB).
In Setting.hbm.cfg






throw:



I finded :
hibernate don't put schema name at create query on maxId
select max(ID) from SETTING

but insert part is ok (I tried into table put TEST.SETTING)


Could you give me any advice?

Thanks
[ August 05, 2008: Message edited by: manu chaox ]
 
Paul Michael
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try using the default_schema property in your hibernate configuration and see if that fixes the problem?

HTH.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic