Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/395.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
是否有将mysql表转换为Java类的方法_Java_Mysql_Class - Fatal编程技术网

是否有将mysql表转换为Java类的方法

是否有将mysql表转换为Java类的方法,java,mysql,class,Java,Mysql,Class,我在mysql中创建了许多表,有没有办法将表中的字段转换为java类 有了setter、getter和constructor?是的,它被称为JPA。您可以在线搜索如何使用Hibernate为JPA项目创建基本设置或许多其他JPA的可用实现。我不清楚这个问题。是否希望能够从表中创建实体?使用setter、getter和constructor将表中的字段转换为java类是什么意思

我在mysql中创建了许多表,有没有办法将表中的字段转换为java类
有了setter、getter和constructor?

是的,它被称为
JPA
。您可以在线搜索如何使用
Hibernate
JPA
项目创建基本设置或许多其他
JPA
的可用实现。我不清楚这个问题。是否希望能够从表中创建
实体
?使用setter、getter和constructor将表中的字段转换为java类是什么意思