简体   繁体   English

重新部署后,Netbeans将数据库表类型从InnoDB更改为MyISAM。

[英]Netbeans changes DB table type from InnoDB to MyISAM after redeployment.

I set up the database tables to use the InnoDB engine and run my project from netbeans, everything runs fine until i make a change in a file and save it, after redeploying the project again my database tables change from InnoDB to MyISAM and all entries from database tables get deleted. 我设置数据库表以使用InnoDB引擎并从netbeans运行我的项目,一切运行良好,直到我对文件进行更改并保存为止,再次重新部署项目后,我的数据库表从InnoDB更改为MyISAM,所有条目都从数据库表被删除。 If someone can help it would be greatly appreciated. 如果有人可以帮助,将不胜感激。 I am running glassfish server 4. 我正在运行glassfish服务器4。

I solved the problem. 我解决了问题。 Edited the persistence.xml file from configuration files folder and changed the property value: property name="eclipselink.ddl-generation" value="drop and create tables" to property name="eclipselink.ddl-generation" value="none" 从配置文件文件夹中编辑了persistence.xml文件,并将属性值更改为:property name =“ eclipselink.ddl-generation” value =“拖放并创建表”变为property name =“ eclipselink.ddl-generation” value =“ none”

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

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