我已经在 Liferay 6 中定义了一个数据表和关联对象,但是当我运行代码时,它说该表不存在,这是真的。当我手动创建表(只需从模型实现中复制粘贴创建表)时,代码运行良好,但我希望在部署时创建表。
用户拥有创建它所需的所有权限。
我缺少什么?
最佳答案
我也面临着同样的问题。 @urvish 是正确的,您必须更改 中的内部版本号
服务属性文件。
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/