使用数据库现有表创建实体类? [英] Creating entity class using database existing table?

查看:132
本文介绍了使用数据库现有表创建实体类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,我有很多DBA创建的表。而且我希望每个表有
实体类用于进一步查询。因此,任何人都会建议如何使用eclips自动创建?如果您使用JPA进行持久化,则可以使用Eclipse提供的JPA工具从表生成Java实体类。



以下是教程


Friends i am having many tables created by DBA.And i want have entity class for each table for further querying So any one suggest how to create automatically using eclips??

解决方案

If you use JPA for persistence, you can use "JPA tools" provided by Eclipse to generate java entity class from tables.

Here is the tutorial

这篇关于使用数据库现有表创建实体类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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