jpa-2.0
JPA/Hibernate preUpdate doesn't update parent object
In my application I defined following classes: @Entity @Table(name = \"forums\") public class Forum { @Id[详细]
2023-04-12 14:20 分类:问答JPA deleting inverse relationship
I have been trying to delete the inverse relationship on a JPA entity, however this have not been working well. What I\'m trying right now is to set the ManyToOne property to null and then saving it u[详细]
2023-04-12 08:49 分类:问答JPA - Multiple columns discriminator
I have 3 tables like this in MySQL 5: PERSON| |id|fullName| isEmp|isParent| EMPLOYEE| |personId|code| PARENT|[详细]
2023-04-12 03:05 分类:问答why i got “null point error” in the second method when use Junit to test Class?
My develop environment is: netbeas7.01 + mysql5 + spring3 + struts2 + jpa2(hibernate3.6; When I Refactoring a old project,I got some trouble:there is a random“null point”error when I run the p[详细]
2023-04-11 23:52 分类:问答How to create constant numeric value expression in QueryDSL?
I\'d like to create query like this with QueryDSL update WorkMessage w set w.totalPrice = 0.12 - w.totalCost;[详细]
2023-04-11 11:48 分类:问答Mock JOINED inheritance strategy without actual inheritance
I want to use mixed @Inheritance strategy, but Hibernate doesn\'t support it. Is there any way to implement JOINED inheritance without actual class inheritance.[详细]
2023-04-11 05:19 分类:问答JPA - One to One relationship with shared primary key among multiple tables
Consider the below example: I have 3 tables: Fruit, Orange and Apple id is generated in fruit table and is the primary key here[详细]
2023-04-10 15:16 分类:问答For lazy relationship how to specify a fetch join that can force a eager loading in JPA?
@Entity public EntityA implements Serializable { ... @OneToOne(fetch=FetchType.LAZY) private Entity开发者_高级运维B b;[详细]
2023-04-10 14:25 分类:问答How does the UserTransaction and the EntityManager interact?
This is an academic question; I have no broken code in relation to this.I just want to expand my understanding of what is happening under the hood.[详细]
2023-04-10 11:30 分类:问答Better Exception Handling in JPA
I used EJB3/JPA when persisting my entities and I am happy on how it is able to manage my DB related task.[详细]
2023-04-10 09:38 分类:问答