eclipselink

    1热度

    1回答

    随着Permission是一个枚举,是可以选择的所有用户,而无需使用JPA标准API一定的权限: @Entity public class User { @ElementCollection @CollectionTable(joinColumns = @JoinColumn(name = "USER_ID")) private Set<Permission> p

    3热度

    1回答

    如果我设置了具有附加标准约束的父级和子级关系的父/子关系,然后使用@JoinFetch,则childs additionalCriteria将被忽略。 例如: TableA.java: @javax.persistence.Entity @Table(name = "TABLE_A") @AdditionalCriteria("this.tableAfield2=:propA") publi

    1热度

    1回答

    我想插入数据使用JPA一对一映射连同复合主键在mysql中。已经有很多问题要求在这个论坛中的同一主题,但这对我没有帮助。 但我得到的例外,如“非法参数异常不是一个已知的实体类型JPA”和“表‘callredirect.callredirect_callredirectgroup’不存在” 我的MySQL表: CREATE TABLE IF NOT EXISTS `CallRedirect` (

    0热度

    1回答

    工作,我有一个简单的实体对象和历史政策 @Entity @Customizer(MyHistoryPolicy.class) @Table(name = "employee") public class Employee { @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.ID

    0热度

    1回答

    如何读取性能在persistence.xml文件 我wanrt从属性读取数据库用户名和密码文件进行的persistence.xml

    0热度

    1回答

    我试图通过JPA获得与MySQL数据库的连接,但它现在让我疯狂。我不知道如何我已经做到了,但现在当我再说一遍,我得到这个异常: [EL Warning]: metamodel: 2017-10-06 12:04:17.461--The collection of metamodel types is empty. Model classes may not have been found duri

    0热度

    1回答

    我正在使用Vaadin和EclipseLink。有两个表,一个是邮件,第二个在客户。客户的PK是customer_id,邮件的PK是mail_id。 表邮件具有Customer_id作为外键。我如何绑定它? 我想: binder.forField(fkCustomerId) .withConverter(new StringToBigDecimalConverter(FormMessa

    0热度

    1回答

    如何将复合唯一键(地址1和地址2)作为Map键。像@MapKey(name =“address1”,name =“address2”),而不是唯一的唯一键@MapKey(name =“address1”)。 @Entity public class Person { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL

    1热度

    1回答

    我刚刚开始将一个较旧的MySQL/Spring/Eclipselink项目移植到MariaDB。我遇到与表创建一个问题,可以如下证明: MariaDB [spasm]> CREATE TABLE Configuration (ID BIGINT NOT NULL, Attribute VARCHAR(190) NOT NULL UNIQUE, Value VARCHAR(255) NOT NULL

    1热度

    2回答

    创建表下面是我的命名实体类: package az.bank.entities; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import jav