JPA EntityManager和JavaFx [英] JPA EntityManager and JavaFx

查看:319
本文介绍了JPA EntityManager和JavaFx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在NetBeans中的JavaFx应用程序中使用EntityManager(我的解决方案连接到postgres),我按如下方式进行:

I tried to use EntityManager in a JavaFx application in NetBeans (my solution is connected to postgres), I proceeded as follows :

1)我创建了一个持久性单元。
2)然后从数据库中添加了实体类。

1) I created a Persistence Unit. 2) Then Added the Entity Classes from Database.

但我无法让它工作,我试图在另一个线程中寻求帮助< a href =https://stackoverflow.com/questions/16496448/cant-persist-using-entity-manager-in-javafx#log-in>实体经理无法在JavaFX中工作但无法获得它也工作,是否有任何干净,清晰的教程或课程,我可以清楚地找到如何在JavaFx Fxml应用程序中使用EntityManager

but I can't get it to work, I tried to ask for some help in another thread Entity Manager not working in JavaFX but can't get it work either, is there any clean and clear tutorial or lesson where I can find clearly how to use a EntityManager in a JavaFx Fxml Application

推荐答案

我解决了这个问题,我不得不添加Postgres驱动程序并修复了我在数据库中使用的一些不兼容的类型

I resolved the problem, I had to add the Postgres Driver and fix some incompatible types I was using in the database

这篇关于JPA EntityManager和JavaFx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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