reading schema error: null

解决方法,加入

<property name="hibernate.default_schema">dbo</property>

完整的hibernate.cfg.xml如下:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration SYSTEM
        "file:///E:/Download/Program/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
        <property name="hibernate.connection.url">jdbc:sqlserver://localhost:1433;DatabaseName=Lessonra</property>
        <property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
        <property name="hibernate.connection.username">god</property>
        <property name="hibernate.connection.password">god</property>
        <property name="hibernate.default_schema">dbo</property>
    </session-factory>
</hibernate-configuration>

然后数据库就能刷出来了:

时间: 2024-08-28 17:37:09

reading schema error: null的相关文章

[odb-users] Create schema error (unknown database schema &#39;&#39;)

Boris Kolpackov boris at codesynthesis.comFri May 31 11:13:02 EDT 2013 Previous message: [odb-users] Create schema error (unknown database schema '') Next message: [odb-users] Create schema error (unknown database schema '') Messages sorted by: [ dat

Create schema error (unknown database schema &#39;&#39;)

Andrey Devyatka 4 years ago Permalink Raw Message Hi,Please tell me, can I use the static library in the following case: library.hpp:#ifndef _CPP_ODB_STATIC_LIBRARY_CPP_#define _CPP_ODB_STATIC_LIBRARY_CPP_#include <odb/database.hxx>odb::database* cr

Oracle Net Services 配置: Error: null Oracle Net Services 配置失败。退出代码是1

具体错误描述: [[email protected] ~]$ netca /silent/responseFile /usr/local/soft/oracel/netca.rsp 正在对命令行参数进行语法分析: 传递的错误命令行参数:"silent/responsefile" 传递的错误命令行参数:"usr/local/soft/oracel/netca.rsp" 完成对命令行参数进行语法分析. Oracle Net Services 配置: Error: nul

-canOpenURL: failed for URL: &quot;&quot; - error: &quot;(null)&quot; , iOS9 App传输安全 支持http 解决方案

-canOpenURL: failed for URL: "CamCardHDOpenAPI:*" - error: "(null)" This app is not allowed to query for scheme *  在iOS 9中必须将url加入白名单中. (LSApplicationQueriesSchemes) 在Xcode中打开Info.plist文件:添加一个键“NSAppTransportSecurity”,类型为Dictionary,在该d

jsmooth compilation failed error null

JSmooth 0.9.9-7 在将 jar 文件打包成 exe 文件时报错:jsmooth compilation failed error null 原因,没有指定 logo 图片文件. http://kechengpuzi.com/q/s14902409 连接中说:还有可能是 logo 文件图片问题: This is a common issue users come across. JSmooth seems very limited in the size and bitdepth o

flink kafka consumer with avro schema. handling null

public class AvroDeserializationSchema<T> implements DeserializationSchema<T> { private static final long serialVersionUID = 1L; private final Class<T> avroType; private transient DatumReader<T> reader; private transient BinaryDeco

使用JBoss Tool反向创建PO类

使用Hibernate Tool可以根据已有的数据库结构,反向创建PO.DAO等类,方便于开发,最近正好有个工作内容,需要用这个,所以重新捡起来学习下. 现在Hibernate Tool已经被JBoss收购,起了个新名字,叫做JBoss Tool,高大上的名字. 要求jdk6或7的版本,并且要求Eclipse Luna 4.4.2版本. 在Edit Configuration中选择已有的一个工程(可以是普通的java工程,也可以是maven工程),然后可以选择Database connectio

MySQL在远程访问时非常慢的解决skip-name-resolve 并且出现 Reading from net

转载:http://www.itokit.com/2012/0515/73932.html 服务器放在局域网内进行测试时,数据库的访问速度还是很快.但当服务器放到外网后,数据库的访问速度就变得非常慢. 后来在网上发现解决方法,my.cnf里面添加 [mysqld]skip-name-resolve 这样速度就快了! skip-name-resolve 选项就能禁用DNS解析,连接速度会快很多.不过,这样的话就不能在MySQL的授权表中使用主机名了而只能用ip格式. 还有权限的问题,当用户设置限制

How to fix TFS workspace mapping error in Jenkins

Once you had update in TFS workspace for Jenkin TFS plugin, you might get error like bellow: [workspace] $ "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe" workspaces -format:brief -server:http://tfs.xxx.com:8080/tfs/Defa