jpa-2.0
translating a TypedQuery to criteriaQuery (JPA 2.0) with max, min, group by and order by
I have some struggles in translating a well working typedQuery to a pure JPA 2.0 criteriaQuery :/ Following my working typedQuery:[详细]
2023-04-10 06:23 分类:问答JavaEE 6: java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null
Yesterday when I was working on my JavaEE application, it was happily getting deployed to Glassfish 3.1 and all the [web, ejb, jpa] engines were working and I was able to interact with database withou[详细]
2023-04-10 06:20 分类:问答Jpa2/hibernate c3p0 pool configuration lead connection and thread leaks
I am trying to use c3p0 as connection pool provider in my application (jpa 2 and hibernate core 3.3.2)but c3p0 getting too much connection from database.This is same problem but answer not helped.I am[详细]
2023-04-09 11:38 分类:问答oneToMany bidirectional does not work when datasource has transactions set as serializable
i have a app that uses Spring,Struts, Hibernate and JPA. So i have two entities, Company and Location. Company is in oneToMany relation with Location, and location in ManyToOne to Company.[详细]
2023-04-09 10:01 分类:问答org.hibernate.MappingException: Unknown entity: java.lang.Long
I am trying to create a named-native-query that returns a Long. Here is my orm.xml file (simplified as much as possible)[详细]
2023-04-09 05:05 分类:问答JPA2 and hibernate - why does merge store child entities whilst persist does not?
I have the usual parent - child OneToMany relationship: @OneToMany(mappedBy = \"mapType\", cascade = CascadeType.ALL, orphanRemoval = true)[详细]
2023-04-09 04:37 分类:问答How do I control column size for enums?
This is with EclipseLink via JPA, where I let it create the tables for me.The back end data base is Derby for development mode, and I expect to use MySQL or something else for deployment.[详细]
2023-04-09 03:20 分类:问答Howto Persist a Map<Entity, Integer> with JPA?
I\'m working on migrating some code that has two entities (Progress and PerformanceRating) that are related by a many-to-many relationship.Each PerformanceRating has multiple Progress and each Progres[详细]
2023-04-09 02:48 分类:问答How to configure an Element-collection to map an existing DB table in JPA orm.xml configuration?
I have migrated an app from a full-Hibernate featured one to a JPA/Hibernate based-one and I have a problem with my JPA mapping.[详细]
2023-04-09 02:38 分类:问答jpa result-set-mapping throw NPE
I can\'t map query result to POJO. JPA executes query ok (it trace in logs) but in mapping process throws a NPE.[详细]
2023-04-09 01:30 分类:问答