jpa
JPA/Hibernate OneToMany & ManyToOne annotations
I\'m writing code that looks like Google Latitude (locate a user). I\'m under tomcat 6.0.33, using jpa/hibernate, and easybeans 1.1[详细]
2023-04-11 11:27 分类:问答HSQLDB not throwing correct type of ConstraintViolationException with Spring JPA/Hibernate
I have a Spring based JPA2 app with the Hibernate provider on HSQLDB. I\'m trying to elegantly handle exceptions but am finding I am getting hibernate exceptions not JPA ones. For example:[详细]
2023-04-11 11:22 分类:问答JPA RollbackException but not in unit test
I have a java project with a collection of unit tests that perform simple updates, deletes using JPA2. The unit tests run without a problem, and I can verify the changes in the database - all good. I[详细]
2023-04-11 08:10 分类:问答manually deployed war ignores jpa annotation mapping, but it works in eclipse
I have generated a spring web project with spring roo. Whe开发者_开发百科n I run the project inside eclipse via wtp on a jetty 7.2 it works fine. but when I package it to a war file, copy it manually[详细]
2023-04-11 07:35 分类:问答JPA Hibernate left join fetch generating mutiple queries
I have a jpql query to eagerly fetch multi level associations as follows select distinct s from Singer s[详细]
2023-04-11 06:05 分类:问答Batch Process goes out of memory in Spring+Hibernate+JPA
开发者_JS百科I have a batch process which persists 1000000 records one by one. Each record has it\'s own child tables. I am using Spring 2.5.6, Hibernate and JPA to do that. But after one hour it goes[详细]
2023-04-11 05:56 分类:问答Does adding meta-information suffice for including myself as additional @author of a class?
Me and my colleague are in the process of developing domain model for a small part of our project. Recently he committed skeleton entity classes to our SVN repository without adding JPA annotations. A[详细]
2023-04-11 04:37 分类:问答CASCADETYPE in EclipseLink JPA
I have two classess. The first class is TNota. @Entity @Table(name = \"t_nota\") public class TNota implements Serializable {[详细]
2023-04-11 03:20 分类:问答How update operation works in hibernate?
As per hibernate documentation , below is the definition of update开发者_开发知识库 operation[详细]
2023-04-11 01:44 分类:问答Prevent entity from being created, but need entity for native query
I have a native query that executes a stored procedure and the results is mapped to an entity, this works fine but the t开发者_开发技巧hing is the entity is created in the database (I\'m referring to[详细]
2023-04-10 22:12 分类:问答