legacy-knowledge-base
公開されました Jun. 30, 2025

すでにデプロイされているサービス・ビルダー・モジュールへの新しいエンティティの追加に失敗する

written-by

Kartik Singh

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • この問題は、既存のデータベースカスタムテーブルに新しいカラムを更新/追加しているとき、つまりサービスビルダーを使用して既存のモジュールに別のエンティティを追加しているときに発生します。

環境

  • Liferay Developer Studio
  • Liferay DXP 7.4

解像度

  • service.xml'ファイルを使用して既存のテーブルに新しいカラムを追加するには、以下の手順に従ってください:
    1. バックアップを取り、Service and APIモジュールの既存の"src/main/java " セクションを削除する。
    2. service.xml " 、新しいカラム名を既存のカラム名と一緒に追加する。
    3. Gradleをリフレッシュする。
    4. サービスを構築する。
    5. モジュールを再度デプロイする。
    6. 上記の手順を踏むと、必要なカラム名がすべてテーブルに表示される。

    注:

    1. 上記の活動を、まずは低い環境で試してみる。
    2. 上記の操作を行う前に、まず既存のモジュールのバックアップを取っておいてください。
did-this-article-resolve-your-issue

legacy-knowledge-base