Eclipse +将现有项目转换为JPA项目 [英] Eclipse + Turn an Existing Project into a JPA Project

查看:538
本文介绍了Eclipse +将现有项目转换为JPA项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将普通的Eclipse项目转换为JPA项目?



我有一个普通的项目,其中包含实体和一个Persistence.xml文件,但它不是一个日食认可的JPA项目。我可以做什么?

解决方案

项目属性 - >项目方面。
您可以点击JPA复选框,并且您有一个JPA项目。


Is there a way to turn a normal Eclipse Project into a JPA Project?

I have a normal project with Entities in it and a Persistence.xml file, but it is not an eclipse recognized JPA project. What can I do?

解决方案

project properties --> project facets. There you can click on the JPA check-box and you have an JPA project.

这篇关于Eclipse +将现有项目转换为JPA项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆