jpa
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 分类:问答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 分类:问答Hibernate relation OneToMany with non unique key
I am not able to describe my problem, I try it again with example: I have two entities (tables): Department and Person. Both tables have a field CODE which is not unique.[详细]
2023-04-09 00:48 分类:问答DbUnit testing a PostgreSQL database using JPA without Hibernate or Spring
I\'m trying to write a Java EE 6 application using JPA but without using Hibernate or Spring. I used Netbeans to generate the JPA classes, and I created the tables in Postgres, but I am not able to ru[详细]
2023-04-08 21:39 分类:问答Hibernate Proxy Inheritance Issue
I am using the inheritance strategy table per concrete class and today I faced something very strange. I still don\'t know the reason for that problem but let me explain what it is...[详细]
2023-04-08 20:58 分类:问答Persisting two entities at the same time
I have been struggling with this for sometime and can\'t seem to get past the problem. I have a persisted entity called SiteVisit which is many-to-many related to Staff via an intermediate table calle[详细]
2023-04-08 20:45 分类:问答org.postgresql.util.PSQLException: Large Objects may not be used in auto-commit mode
I am using Spring , JPA, Hibernate, Postgresql. I can upload/insert a file to the database. But I got the error when tried to access the file.[详细]
2023-04-08 20:36 分类:问答OpenEJB cannot use javax.persistence.jtaDataSource
The following configuration is ok for WebLogic, but in OpenEJB it raises a error \"javax.naming.NameNotFoundException: Name \"AppDB\" not found.\"[详细]
2023-04-08 18:10 分类:问答JPA Equivalent of Oracle TopLink's addBatchReadAttribute
We\'re using JPA, and when a collection of objects returns from a query, a separate query is executed for each \"child\" object related through a foreign key.[详细]
2023-04-08 16:01 分类:问答Using REST as Business Logic Layer ,Con and Pro [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-08 14:46 分类:问答