Modify the Eclipse project to support JPA tools

Modify the Eclipse project to support JPA tools 

http://blog.sina.com.cn/s/blog_484d87770100u4nm.html

I created a web project with Eclipse, and I want to generate database entity beans for the project through JPA Tools of eclipse, but I can't see the JPA Tools option in the right-click menu.

So recruit a similar project (you can right-click to see JPA Tools), check the .setting/org.eclipse.wst.common.project.facet.core.xml file under its project path,

It is found that there is such a sentence "<installed facet="jpt.jpa" version="1.0"/>" in the <faceted-prject> tag, so copy this sentence to the corresponding file of the new project. refresh the project,

After right-clicking again, I saw the JPA Tools I wanted to see.

http://my.oschina.net/hcliu/blog/401262//Use jpa tool

Or directly to the right side of the project, select properties--" project facets --> check jpa, if not, install the jpa plugin and then do so

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326451022&siteId=291194637