The error will be encountered at run time at line 3 or line 4 (depending on whether the JPA provider parses a JPQL string according to JPQL grammar during query construction or execution).
在运行时,该错误将出现在第 3 或第 4 行(具体行数取决于 JPA 提供者是否在查询构造或执行期间根据 JPQL 语法解析 JPQL 字符串)。
Any attempt to perform a string comparison on an employee ID will then fail with a type error at query run time.
在查询运行时,尝试在雇员ID上执行字符串比较将遭到失败,并产生一个类型错误。
To design the later, right-click on the Employee class again, and this time add an operation called FullName with a result of type String.
为了设计后者,再次右击employee类,添加一个名为FullName的operation,其结果是String类型的。
应用推荐