English 中文(简体)
H2 数据库软件制造检查
原标题:H2 database schema creation check

I have H2 database generated on the-fly using Hibernate & Spring for my test-cases. I have few weird errors, and I would like to know exactly how the schema looks like in H2. how the tables defined, and how the columns. How can I generate this report during run-time ?

问题回答

如果由Hibernate使用hbm2dl.auto=true部署该表,你可以转而进行追踪记录,用于org.hibernate.tool.hbm2dl。 这表明,在创建你的计划时,DDL Hibernate正在产生。

You could run the SQL statement SCRIPT NODATA.

查阅数据库的报表,附录<代码>;TRACE_LEVEL_FILE=2。 它将在<代码>.trace.db文档中撰写所有发言稿。

如果你想要知道在传单上产生的图象是什么。 简单增加

<prop key="hibernate.show_sql">true</prop>    

如果是这样的话,你就能够 de。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签