今天终于搞定了Hibernate A Developers Notebook第三章的hsqldb的数据库建模问题,虽然没有正面去解决问题,但是目的已经达到。
都是数据库嘛,没有什么特殊的,呵呵。
1.首先我按照向导
java -cp /lib/hsqldb.jar org.hsqldb.Server -database.0 mydb -dbname.0 xdb
启动hsqldb,正常启动后发现 mydb数据库相关文件建立在当前目录下,于是我进入项目的data目录下运行
java -cp ../lib/hsqldb.jar org.hsqldb.Server -database.0 music -dbname.0 music
哈哈,成功创建music数据库,并且数据库数据文件就存放在data目录下
2。更改hibernate.properties,build.xml中hsqldb的数据库连接URL。
jdbc:hsqldb:hsql://localhost/music
3.ant schema
创建schema成功
4.ant db
连接到server观察到已经成功在music中创建TRACK表,至此困扰多日的问题解决。
分享到:
相关推荐
Hibernate: A Developer's Notebook shows you how to use Hibernate to automate persistence: you write natural Java objects and some simple configuration files, and Hibernate automates all the ...
Spring:a developers notebook,这是一本关于Spring的英文书,书中带有开发者的英文笔记。
Maven 中文文档 Oreily - Maven A Developers Notebook-2005.1(中文版) 详细 使用 推荐下载
Oreilly.Visual.C.Sharp.2005.A.Developers.Notebook.Apr.2005.eBook-LiB.chm
介绍hibernate,可以的话就支持一下
Hibernate A J2EE Developer's Guide
ebook about Hibernate.mabey it useful
Manning出版 Java Persistence With Hibernate 第二版 清晰pdf Hibernate, an open source project that is almost 15 years old. In a recent poll, Hibernate was among the top five tools used by many Java ...
hibernate-a-developers-notebook hibernate-a-j2ee-developers-guide hibernate-in-action hibernate-quickly hibernate-search-in-action Java-Persistence-with-Hibernate pro-hibernate-3-experts-voice ...
Introducing Visual Basic 2005 for Developers 这本书关注于微软的新一代的开发工具、开发语言,Visual Basic 2005.通过阅读这本书,您可以深入了解微软Visual Basic 2005,Visual Studio 2005和.NET Framework 2.0...
Product Description Hibernate continues to be the most popular out-...This book is for experienced Java developers looking to use Hibernate, but is also appropriate for Java developers new to Hibernate.
Get started with the Hibernate 5 persistence layer and gain a clear introduction to the current standard for object-relational persistence in Java. This updated edition includes the new Hibernate 5.0 ...
Beginning Hibernate, Third Edition is ideal if you’re experienced in Java with databases (the traditional, or «connected,» approach), but new to open-source, lightweight Hibernate, a leading object...
win95-a-developers-guide.rar
Deploying to OpenShift A Guide for Busy Developers 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Get started with the Hibernate 5 persistence layer and gain a clear introduction to the current standard for object-relational persistence in Java. This updated edition includes the new Hibernate 5.0 ...
Learn how to use the core Hibernate APIs and tools as part of the Spring Framework. This book illustrates how these two frameworks can be best utilized. Other persistence solutions available in Spring...
Learn Scala is split into four parts: a tour of Scala, a comparison between Java and Scala, Scala-specific features and functional programming idioms, and finally a discussion about adopting Scala in...
A Developers Guide to SQL Server 2005........