Hibernate
Using CascadeType in Hibernate
I m working with Hibernate + Spring and JSF I have a problem when I use a relationshiplike @OneTomany in Hibernate. For example:[详细]
2023-04-11 12:30 分类:问答Hibernate reverse engineering - mapping a table to Java enum
I\'m working on a project where I am using JBoss 开发者_Python百科Tools to reverse engineer an MS SqlServer database into Hibernate objects. I am wondering if there is a way to map some of the tables[详细]
2023-04-11 12:18 分类:问答Which Dynamic methods are not included in Grails Unit Tests?
Reading the documentation on Grails Unit testing I came across the following: In Grails you need to be particularly aware of the difference between[详细]
2023-04-11 12:04 分类:问答Hibernate 3 On delete cascade
I have a many-to-on开发者_如何学Goe mapping on bookings. A booking must belong to a room. And a room can have several bookings.[详细]
2023-04-11 11:32 分类:问答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 分类:问答How to make this short in Grails or Hibernate
I\'ve got query that looks something like this: SomeDomain.executeQuery(\"\"\" from SomeDomain x where x.linkToSomeA = coalesce(:a, x.linkToSomeA) and[详细]
2023-04-11 10:23 分类:问答How to disable ehcache in persistence.xml file
All, is it possible to disable secondary cache in my persistence xml file? I have a Spring+Hibernate+JPA configuration that uses ehcache. In my persistence.xml file I have this entry:[详细]
2023-04-11 10:07 分类:问答Efficient way of Retrieving data for multiple rows simultaneously
When we tried to retrieve data for a arraylist, we are iterating each row and开发者_开发百科 then we are using fetch query.is there any other iteration row in hibernate template or sql[详细]
2023-04-11 09:31 分类:问答Java HQL tree display
I have a class named Rule, which contains a Set of childRules(each of the components of the Set are other classes). I am doing a HQL query which is marked as lazy=\"false\".[详细]
2023-04-11 09:21 分类:问答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 分类:问答