openjpa

    1热度

    1回答

    我建立了一个Spring ROO应用程序,将持久性设置为OpenJPA并创建了一些实体。 然后我用Apache Wicket替换了Spring MVC。东西似乎工作正常,我已经成功显示客户实体列表。 接下来是客户的编辑视图。现在我已经制作了一个Wicket表单,它直接使用OpenJPA实体作为表单模型,因此我必须使实体类实现Serializable。 现在,我不知道如何正确地实施OpenJPA持久

    4热度

    3回答

    我在尝试执行简单的JPA 1.0代码时遇到以下异常。 可能是什么原因? 5453 DevPQRWDPBSSPersist WARN [P=351601:O=0:CT] openjpa.Enhance - This configuration disallows runtime optimization, but the following listed types were not enhance

    0热度

    1回答

    据说使用org.apache.openjpa.jdbc.ant.MappingToolTask​​可以将域模型类与db模式同步。因此,通过将脚本作为Ant任务,我可以将新列添加到persistance.xml上的给定数据库。 <target> <taskdef name="mappingtool" classpathref="maven.compile.classpath" classn

    4热度

    1回答

    我正在使用JPA(OpenJPA)。我在persistence.xml以下条目: <property name="openjpa.RuntimeUnenhancedClasses" value="supported"/> 我也有Serviceoffering类persistence.xml上市。 当我尝试运行与JPA相关的代码时,出现以下异常。可能是什么问题? No metadata was

    2热度

    2回答

    我想设置一个列的类型在OpenJPA的二进制(5)所以我使用了如下声明: @Column(name="MY_FIELD", columnDefinition="BINARY(5)") public byte[] getMyField() { return myField; } 然而,始终创建列作为一个blob: | MY_FIELD | blob | YES | | NUL

    4热度

    1回答

    我已将应用程序部署到WebSphere Application Server 7,它使用应用程序服务器中的默认OpenJPA 1.2.2库,但是,我无法获取它登录,我在我的persistence.xml中 <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" xmlns="http://java.sun.co

    2热度

    1回答

    我尝试OpenJPA的2.0.1的第一次,我越来越: 79 WARN [main] openjpa.Runtime - The configuration property named "openjpa.Id" was not recognized and will be ignored, although the name closely matches a valid property cal

    5热度

    3回答

    我们需要将查询号添加到应用程序执行的每个查询中。 EX:SELECT * FROM ... WHERE ... QUERYNO 123456; OpenJPA支持查询提示,但仅限于特定实现的特定提示。 ... Query q = em.createQuery("select m from Magazine m where ... "); q.setHint("openjpa.hint.Opti

    3热度

    1回答

    问候。 我刚开始探讨Maven,我使用m2eclipse作为在Eclipse中使用Maven。 我发现有一个Hibernate基于原型与 组ID:com.rfc.maven.archetypes和 工件ID:JPA-Maven的原型 有谁知道,如果有对OpenJPA-原型基于包含测试框架的预测? 非常感谢。

    0热度

    1回答

    我有一个用于我的对象的组合主键。如何使用jpa更新我的对象? 通常我们用下面的代码 EntityManagerFactory emf = Persistence.createEntityManagerFactory("jpa"); EntityManager em = emf.createEntityManager(); Student stud1 = em.find(Student.clas