我正在尝试使用 minuteproject 生成 openxava 文件。我的配置类似于http://minuteproject.wikispaces.com/OpenXava演示文件中的配置。我得到 java.net.url 异常。我检查了我的 jdbc url,找不到错误。这是我第一次试用 minuteproject。非常想学,因为找了这么久(minuteproject + openxava)这样的框架。谢谢你的时间:) 费尔达
我将在这里添加我的配置文件。我尝试只对一个文件而不是整个数据库进行逆向工程。我的数据库是 MS SQL。
<!DOCTYPE root>
<generator-config>
<configuration>
<model name="evrak" version="1.0" package-root="veritabani.xxx.org.tr">
<data-model>
<dataSource>
<driverClassName>com.microsoft.sqlserver.jdbc.SQLServerDriver</driverClassName>
<url>jdbc:sqlserver://10.1.x.x:1433;DataBaseName=xxx</url>
<username>xx</username>
<password>xx</password>
</dataSource>
<!-- for Oracle and DB2 please set the schema
<schema> </schema>
-->
<primaryKeyPolicy oneGlobal="true" oneForEachTable="false">
<primaryKeyPolicyPattern prefix="" suffix="" name="sequencePattern" sequenceName="hibernate_sequence"></primaryKeyPolicyPattern>
<!-- for autogenerated pk (mysql)
<primaryKeyPolicyPattern name="autoincrementPattern" ></primaryKeyPolicyPattern>
-->
</primaryKeyPolicy>
</data-model>
<business-model>
<generation-condition>
<condition type="exclude" startsWith="DUAL"></condition>
<condition type="exclude" startsWith="ID_GEN"></condition>
<condition type="include" startsWith="dbo.sekreterya_kisifirma" ></condition>
<condition type="exclude" startsWith="ID_GEN"></condition>
sekreterya_kisifirma
</generation-condition>
<business-package default="veritabani.losev.org.tr">
</business-package>
</business-model>
</model>
<targets catalog-entry="OpenXava"/>
</configuration>
</generator-config>