In Eclipse, in JPA Project (runs in Java SE), Properties->Javadoc location, I attached the JavaDoc at path
/usr/share/javadoc/java-1.7.0-openjdk-1.7.0.60-2.4.3.0.fc19/api/
The documentation for Java works but if I pass the mouse pointer over some JPA functions (ex. getTransaction().begin() ) I obtain the error message:
void javax.persistence.EntityTransaction.begin()
Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.
How can I fix this problem?
您应该在此处下载Java EE API http://www.oracle.com/technetwork/java/javaee/documentation/apis-139520.html JPA。
You can use the online link: https://docs.oracle.com/javaee/7/api/
Or download the zip file: http://download.oracle.com/otndocs/jcp/j2ee-1.4-fr-doc-oth-JSpec/
Or if you are using Maven, you can enable "Download Artifact JavaDoc" on its Preferences page.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.