EclipseLink和JPA列的列表不显示 [英] EclipseLink and JPA columns of table not showing up

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

问题描述

在Eclipse中,我尝试根据现有的数据库模式创建实体类。
向导工作直到结束并创建适当的类。



除了一件事。某些类不被代码找到,因为它们没有生成。



在自定义单个实体对话框中,所有表都显示。其中一些在此对话框中没有显示任何列。



有用的功能:




  • 我可以创建关系,即使是这些丢失列

  • 我在EclipsesData Source Explorer中看到这些表



完全相同的列不会出现在JPA转换对话框中。该表没有箭头来进一步扩展GUI中的项目。



我已经创建了一个新的工作区 - 没有我正在寻找的成功。 >

为什么?



我正在使用Microsoft SQL Server与原来的 sqljdbc4.jar

解决方案

虽然我不知道为什么会这样,我终于知道如何解决它:



数据源资源管理器中,只需展开树中的节点,直到看到所有表及其各自的列。 / p>

不知何故,他们没有在向导中加载。但是,他们似乎在数据源浏览器中打开时就会这样做。



之后,它们也会显示在向导中。


In Eclipse, I try to create entity classes based on an existing database schema. The wizard works until the end and creates the appropriate classes.

Except for one thing. Some classes are not being found by code as they're not generated.

In the "Customize individual entities" dialog, all the tables show up. Some of them don't have any columns being displayed in this dialog.

What works:

  • I can create relationships, even to these "missing" columns
  • I see these tables in Eclipses "Data Source Explorer"

The exact same columns don't appear in the JPA conversion dialog. The table has no arrow to further expand the item in the GUI.

I've already created a new workspace - without the success I'm looking for.

Why?

I'm using Microsoft SQL Server with the original sqljdbc4.jar

解决方案

Although I have no idea why it happens, I finally know how to fix it:

In the Data Source Explorer, just expand the nodes in the tree until you see all the tables and their respective columns.

Somehow, they don't get loaded in the wizard. But they seem to do when opened in the data source explorer.

Afterwards, they also show up in the wizard.

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

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