java - Liferay 6 中不存在表

标签 java liferay-6

我已经在 Liferay 6 中定义了一个数据表和关联对象,但是当我运行代码时,它说该表不存在,这是真的。当我手动创建表(只需从模型实现中复制粘贴创建表)时,代码运行良好,但我希望在部署时创建表。

用户拥有创建它所需的所有权限。

我缺少什么?

最佳答案

我也面临着同样的问题。 @urvish 是正确的,您必须更改 enter image description here 中的内部版本号

服务属性文件。

problem

When multiple developers working on portlet that uses servicebuilder will give below exception “Build namespace has build number which is newer than “. When developer commits service.properties file and that deployed on other developer machine then it will throw below exception

Best Practice: To avoid these kind of errors, follow these:

create service-ext.properties file at the same locaiton of service.properties

add build.number={higher-value or same value in exception)

Deploy portlet again .

关于java - Liferay 6 中不存在表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44407520/

相关文章:

java - java中增强for循环的最后一次迭代

java - 在 JFrame 中重新加载 GUI 出现问题

java - 尝试持久化到 SQL Server 时 Spring Boot 应用程序挂起

java - 有人试过在 HP-UX 上安装 Liferay Portal CE 吗?

java - Liferay 6.1 绝对路径

当 a 不具有特定角色时,Liferay 更改默认重定向页面

java - 如何使用 Liferay MVC Portlet 准备 View jsp

java - 应用程序/pdf 不是 liferay 6.0.6 支持的 mime 类型

java - 如何在 Swift 中编写 Java 字节数组

java - 意外地重新定义迭代器中的变量以读取所有列表元素