database - 使用 Liferay 向多对多表添加列

标签 database liferay liferay-service-builder

我想在 liferay 上使用服务构建器向关联表添加一列!

<entity name="entity1" local-service="true" remote-service="false">

    <column name="entity1Id" type="long" primary="true" id-type="sequence"

        id-param="id_entity1_sequence"></column>

    <column name="name" type="String"></column>

    <column name="entity2s" type="Collection" mapping-table="entity1_entity2"
        entity="entity2"></column>

        <finder name="Name" return-type="entity1" unique="true">
        <finder-column name="name"></finder-column>

    </finder>

</entity>

<entity name="entity2" local-service="true" remote-service="false">

    <column name="entity2Id" type="long" primary="true" id-type="sequence"

        id-param="id_entity2_sequence"></column>

    <column name="header" type="String"></column>

    <column name="value" type="String"></column>

    <column name="entity1s" type="Collection" mapping-table="entity1_entity2"
        entity="entity1"></column>


</entity>

我的意思是我需要在 entity1_entity2 表中添加一列

你有什么建议吗?

最佳答案

关于database - 使用 Liferay 向多对多表添加列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27542987/

相关文章:

c# - 如何将 Microsoft Access 数据库连接到 Visual C#?

database - Oracle 特定的时间戳格式 'DD-MON-RR HH.MI.SSXFF AM'

database - 什么是数据库索引?

Liferay 服务生成器 : Not able to run dynamic query

java - 新的 Liferay 项目 - 没有这样的选项

database - Flutter - 将 SQL 数据发送到 ListView

java - Tomcat Liferay 小文件上传(< 1kb)

Liferay 服务包和修复包

java - 如何更改 Liferay Portal 5.2+ 中的默认时区

jakarta-ee - CustomSQLUtil 在使用 Liferay 7 进行查询检索期间获取空值