简体   繁体   English

从XML生成SQL模式

[英]Generating SQL Schema from XML

We are using an Oracle 11 database and a java development environment (using Eclipse) and would like to migrate several xml schemas to SQL schemas. 我们正在使用Oracle 11数据库和Java开发环境(使用Eclipse),并且希望将多个xml模式迁移到SQL模式。

Have looked ax xsd but really need something that we can run from ant/ Eclipse without SQL Server installed. 已经看过xsd了,但是确实需要一些可以在不安装SQL Server的情况下从ant / Eclipse运行的功能。

Regards, 问候,

Andy 安迪

What is the XML schema definition? 什么是XML模式定义? Is it proprietary or open? 是专有的还是开放的? An XSLT transform can be easily scripted to do the conversion. XSLT转换可以很容易地编写脚本以进行转换。

Another option would be to use JAXB to generate Java objects, and use Hibernate to create a schema based on the class hierarchy. 另一个选择是使用JAXB生成Java对象,并使用Hibernate创建基于类层次结构的架构。

That being said, it depends on what you are trying to do, and I think such solutions are probably going to be brittle and hard to maintain. 话虽如此,这取决于您要尝试做的事情,我认为这样的解决方案可能会变得脆弱且难以维护。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM