cost 117 ms
Weblogic 到 Liberty w JPA 升级 - 间歇性不查询相关实体 - Weblogic to Liberty w JPA upgrade - related entities intermittently not being queried

只是一个简单的问题,以防万一有什么问题立即出现。 我们正在将 EAR/EJB 应用程序从 Weblogic 11g 迁移到最新的 WS Liberty (22.x),还将包括 JPA 在内的几个框架升级到 2.2。 这也将 JPA 实现更改为 eclipseLink。 我们来自 com.oracle ...

选择哪个 JPA 密钥生成器选项? - Which JPA key generator option to choose?

一般来说,我是 JPA 和数据库的新手。 我试图在 Eclipse 中使用 JPA 工具从表中生成实体。 有许多表,我正在尝试同时为所有表生成实体。 JPA 工具为我提供了以下密钥生成器选项。 我在谷歌上四处看了看,但找不到很多可以解决所有选项的问题。 选项是什么意思? ...

复合PK规范无效:PK类中PK字段或属性的名称与实体类的名称必须一致 - Invalid composite PK specification: the names of the PK fields or properties in the PK class and those of the entity class must correspond

我有以下简单的设计: 球员统计数据是每个球员的统计数据,它保存了球员整个比赛的状态,例如球衣号码。 它引用了一个团队成员,该成员由特定名单中的球员标识(基本上,一个球员可以是多个名单的一部分,例如一个赛季中为多个球队效力的球员)。 球员数据与比赛的得分相关,无论是主场还是客场得分。 它基本 ...

Netbeans 12.0 - 从 DB 生成实体类使用 Java Date 类而不是 LocalDate - Netbeans 12.0 - Generating Entity Classes from DB uses Java Date class instead of LocalDate

我正在使用 Netbeans 12.0,为了为我的数据库表创建实体类,我使用了Entity Classes from Database Netbeans Entity Classes from Database 。 它比实际上它默认我所有伟大的其他date列前的Java 8 Date类的,我最近发现 ...

java.lang.ClassCastException: [B 不能转换为 [Ljava.lang.Object; 使用 JPA 2.2 query.getResultStream().findFirst() - java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.Object; while using JPA 2.2 query.getResultStream().findFirst()

我的 Spring Data 存储库方法的代码如下: 如您所见,我正在尝试以字节数组的形式获取在 Postgres 架构中定义为bytea的shipmentLabel列。 运行时出现以下异常: java.lang.ClassCastException: [B 不能转换为 [Ljava.l ...

org.eclipse.persistence.indirection.IndirectMap 无法使用 EclipseLink 转换为 org.eclipse.persistence.queries.FetchGroupTracker - org.eclipse.persistence.indirection.IndirectMap cannot be cast to org.eclipse.persistence.queries.FetchGroupTracker using EclipseLink

我有以下设计: 一场体育比赛有两个得分(每队一个),每个得分有多个球员统计数据,每个 jersey 号码一个。 两种关系都映射为Map 。 这只是多级聚合。 Game实体: Score实体(PK是“主场或客场比赛”,因此PK中的Boolean home就足够了): ScoreId PK c ...

Hibernate:持久性错误。xml - 元素“持久性单元”不能包含文本内容。 内容类型被定义为仅元素 - Hibernate : Error in persistence.xml - Element 'persistence-unit' cannot contain text content. The content type is defined as element-only

我正在使用 Hibernate 和以下持久性。xml 工作正常。 但是在从 eclipse 中的表中创建新的 JPA 实体后,persistence.xml 给出错误 - 元素“persistence-unit”不能包含文本内容。 内容类型被定义为仅元素。 我已经从 persistence.xml ...

@Embeddable 是 Foo.class' PK 和 Bar.class' FK 到 Foo.class - @Embeddable is Foo.class' PK and Bar.class' FK to Foo.class

我正在尝试在无法重新设计的数据库上定义 JPA 层。 该层包含一个 OneToMany 关系,其中 Many 部分有一个外键,该外键由与 one 部分作为主键相同的 2 个字段组成。 我该如何解决这个问题? 我收到错误@Column(s) not allowed on a @ManyToOne ...

EclipseLink 在构造函数表达式中使用 SELECT ... AS 时抛出 JPQLException - EclipseLink throws JPQLException on using SELECT ... AS in a constructor expression

我有一个使用EclipseLink 2.7.5 的带有构造函数表达式的 JPQL 查询。 它失败了: 这是在 Hibernate 上工作的。 我认为这将是标准的 JPA 2.2 甚至 JPA 2.1 在SELECT ...之后放置一个AS子句,以便您可以重用ORDER BY等子句的标识符。 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM