新しい Grails プロジェクトを既存の SQL Server 2008 データベースにリンクしようとしています。問題は、リスト/更新しようとしたとき、または何も機能せず、読み取りエラーが発生したことです。
テーブル「TEST_EXEC_QUEUE」が見つかりません。SQL ステートメント: 上位 10 個の this_.id を id0_0_ として、this_.Env を Env0_0_ として、this_.Priority を Priority0_0_ として、this_.State を State0_0_ として、this_.subSystem を subSystem0_0_ として、this_.system を system0_0_ として、this_.test_scenario_id を test7_0_0_ として test_exec_queue this_ から選択します。 [42102-164]
私の datasource.groovy ファイルは次のとおりです: -
dataSource {
pooled = false
driverClassName = "net.sourceforge.jtds.jdbc.Driver"
dialect = "org.hibernate.dialect.SQLServerDialect"
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = false
cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
development {
dataSource {
dbCreate = "update"
url = "jdbc:jtds:sqlserver://UKSQL08;databaseName=Selenium"
}
}
ドメインファイルは次のとおりです。誰かアイデアがありましたか...?
package testexecqueue
class TestExecQueueCheck {
static constraints = {
test_scenario_id(blank:false)
myPriority()
myState()
myEnv()
system()
subSystem()
}
static mapping = {
table "test_exec_queue"
version false
columns{
test_scenario_id column:"test_scenario_id"
myPriority column:"Priority"
myState column:"State"
myEnv column:"Env"
system column:"system"
subSystem column:"subSystem"
}
}
Integer test_scenario_id
Integer myPriority
String myState
String myEnv
String system
String subSystem
}