Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Oracle 如何在grails中读取和显示表中的数据_Oracle_Grails - Fatal编程技术网

Oracle 如何在grails中读取和显示表中的数据

Oracle 如何在grails中读取和显示表中的数据,oracle,grails,Oracle,Grails,我有一个oracle数据库,我想向我的Grails应用程序显示特定表(类)中的数据。我只是在找程序 多谢各位。 这就是我所拥有的 DataSource.groovy profolio.groovy 执行之后,我得到了这个错误: 2016-02-26 15:17:20,553 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport - HHH000389: Unsuccessful: drop sequence hibernate_sequence

我有一个oracle数据库,我想向我的Grails应用程序显示特定表(类)中的数据。我只是在找程序

多谢各位。 这就是我所拥有的

DataSource.groovy profolio.groovy 执行之后,我得到了这个错误:

2016-02-26 15:17:20,553 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport  - HHH000389: Unsuccessful: drop sequence hibernate_sequence

到目前为止你有什么?看起来Hibernate无法删除开发数据库中的对象。我首先要确保hr帐户有足够的权限删除对象。注意:除非你缩小这个问题的范围,否则它可能会被关闭(并被删除)。尝试手动删除数据库中的所有表,并检查在重新启动应用程序后错误是否仍然存在。
package all

class Portfolio {
    int classid
    String classname     
    int capacity

    static constraints = {

        classid()
        classname()
        capacity()      
    }
    static mapping ={
        table : 'class'

        version false
        columns{
            classid column:'classid'    
            classname column:'classname'    
            capacity column:'capacity'    
        }


    }
}
2016-02-26 15:17:20,553 [localhost-startStop-1] ERROR hbm2ddl.SchemaExport  - HHH000389: Unsuccessful: drop sequence hibernate_sequence