Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala 在Intellij中安装JPA_Scala_Jpa_Intellij Idea - Fatal编程技术网

Scala 在Intellij中安装JPA

Scala 在Intellij中安装JPA,scala,jpa,intellij-idea,Scala,Jpa,Intellij Idea,我有Intellij Idea社区版,我正在用Scala编程 我的@Entity注释突出显示,并显示消息“无法解析符号” 我看了这个问题,也有同样的问题。 答案是我应该为Intellij安装JPA插件 我看这里: 然而,当我在Intellij中搜索名为JPA或JavaEE的插件时,我找不到任何东西 你知道为什么会这样吗? 我不是在搜索正确的插件吗?要想找到解决这些符号的方法,你需要以与添加任何其他依赖项相同的方式添加。或者(更好的选择)到您的构建系统(SBT、Gradle或Maven),或者如果

我有Intellij Idea社区版,我正在用Scala编程

我的
@Entity
注释突出显示,并显示消息“无法解析符号”

我看了这个问题,也有同样的问题。 答案是我应该为Intellij安装JPA插件

我看这里: 然而,当我在Intellij中搜索名为
JPA
JavaEE
的插件时,我找不到任何东西

你知道为什么会这样吗?
我不是在搜索正确的插件吗?

要想找到解决这些符号的方法,你需要以与添加任何其他依赖项相同的方式添加。或者(更好的选择)到您的构建系统(SBT、Gradle或Maven),或者如果您不使用以下任何一种:

Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
In the left-hand pane of the dialog, select Modules.
In the pane to the right, select the module of interest.
In the right-hand part of the dialog, on the Module page, select the Dependencies tab.
On the Dependencies tab, click add and select Library.
In the Choose Libraries dialog, click New Library.
If suggested, select:
    Java to create a Java library. Select the files and folders to be included in the library in the dialog that opens.
    From Maven to download a Java library from a public Maven repository. Specify the artifact to be downloaded and the associated settings in the Download Library from Maven Repository dialog.
In the Configure Library dialog:
    Specify the library name.
    Select the library level (global, project or module).
    Configure the library contents using add, iconLibExclude and delete.
    Click OK.
In the Choose Libraries dialog, click Add Selected.
If necessary, select the Export option and change the dependency scope.
Click OK in the Project Structure dialog. 

当然,这不会给你任何特别的JPA支持。特别是,链接的问题讨论的是JPQL字符串中显示的错误,而不是注释本身。

对于IDEA解析符号,您需要以与添加任何其他依赖项相同的方式添加。或者(更好的选择)到您的构建系统(SBT、Gradle或Maven),或者如果您不使用以下任何一种:

Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
In the left-hand pane of the dialog, select Modules.
In the pane to the right, select the module of interest.
In the right-hand part of the dialog, on the Module page, select the Dependencies tab.
On the Dependencies tab, click add and select Library.
In the Choose Libraries dialog, click New Library.
If suggested, select:
    Java to create a Java library. Select the files and folders to be included in the library in the dialog that opens.
    From Maven to download a Java library from a public Maven repository. Specify the artifact to be downloaded and the associated settings in the Download Library from Maven Repository dialog.
In the Configure Library dialog:
    Specify the library name.
    Select the library level (global, project or module).
    Configure the library contents using add, iconLibExclude and delete.
    Click OK.
In the Choose Libraries dialog, click Add Selected.
If necessary, select the Export option and change the dependency scope.
Click OK in the Project Structure dialog. 

当然,这不会给你任何特别的JPA支持。特别是,链接的问题是关于JPQL字符串中显示的错误,而不是注释本身。

要激活JPA,Java EE,您需要终极版。至于为什么你不能解析符号,你用什么作为你的构建工具?为了激活JPA,JavaEE,你需要终极版。至于为什么你不能解析符号,你用什么作为你的构建工具?