从现有数据库生成JPA 2实体 [英] Generate JPA 2 Entities from existing Database

查看:181
本文介绍了从现有数据库生成JPA 2实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从现有数据库生成符合JPA2的@Entity?。

How can I generate JPA2 compliant @Entity from existing Databases?.

我发现:问题

仍然不清楚JBoss是否会生成兼容的JPA2以及我想知道是否有供应商独立的方式来做这件事。

Still its not clear if JBoss will generate compliant JPA2 and also I would like to know if there is a vendor independent way to do this.

推荐答案

你可以使用像 Eclipse Dali 为你做的伎俩。您可以参考文档,第3.11节从表格生成实体

You can use a plugin like Eclipse Dali to do the trick for you. You can refer to the documentation, section 3.11 Generating Entities from Tables.

我不知道有任何特定的供应商独立工具可以做到这一点。

I do not know of any specific vendor independent tool to do this, though.

这篇关于从现有数据库生成JPA 2实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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