请问一下在hibernate中怎样设置schema?

03-08-07 louhr
请问一下在hibernate中怎样设置schema?我在往数据库中插入数据的时候提示表或视图不存在,我想应该是我没设置数据库的schema的缘故吧

yehs220
2003-08-07 15:47
<hibernate-mapping

schema="schemaName"

default-cascade="none|save-update"

auto-import="true|false"

/>

<class

name="ClassName"

table="tableName"

discriminator-value="discriminator_value"

mutable="true|false"

schema="owner"

proxy="ProxyInterface"

dynamic-update="true|false"

dynamic-insert="true|false"

polymorphism="implicit|explicit"

where="arbitrary sql where condition"

persister="PersisterClass" />

猜你喜欢