jpa
Hibernate annotation
Should we use @org.hibernate.annotations.Entity instead of @javax.persistence.Entity in Hibernate based ap开发者_高级运维plications?[详细]
2023-04-11 23:17 分类:问答Create typed query through the session factory in JPA/Hibernate
I generally want to do something like this: CriteriaBuild开发者_如何学Cer qb = em.getCriteriaBuilder();[详细]
2023-04-11 23:17 分类:问答How to fetch length of a blob field with JPQL?
I have a JPA entity with a blob field in it. I want to write a JPQL query to fetch the l开发者_运维技巧ength of the entity\'s blob (I don\'t want to load the blob into the memory).[详细]
2023-04-11 22:47 分类:问答Spring MVC 3 Hibernate JPA Annotations onetomany and manytoone relationships cascade delete
I have the following entities and I have to delete the ServiceRegistration and ServiceChannels entries when I delete the ServiceRegistration record. But now, if I delete a record in serviceregistratio[详细]
2023-04-11 18:02 分类:问答null out all references to a removed entity
I have an entity Client and an entity Session.Client has a field currentSession which references a Session entity.At some point, I end up deleting sessions, sometimes this is the client\'s current ses[详细]
2023-04-11 17:55 分类:问答Inner transaction changes not visible to outer transaction
I\'m using Spring3+JPA+Hibernate. I\'ve tried to keep structure of the example similar to my actual code structure. Please scroll to the bottom for the actual question. Zipped maven project can be dow[详细]
2023-04-11 17:54 分类:问答How to search for words in multiple tables
I have made an web application with some tables. Now, I want to search in these tables. Currently I have successfully made a class that encapsulates queries for each table such as getAllPersonsByFirst[详细]
2023-04-11 17:49 分类:问答JPA Error : Transaction is currently active
When I run my unit tests in isolation they work fine ie. (omitted the assert开发者_运维问答s) @Test[详细]
2023-04-11 17:15 分类:问答Date literals in Hibernate
I wonder how to use date literals in Hibernate query language. I did as follows in my JPA project (as Eclipselink the provider) and it works.[详细]
2023-04-11 17:09 分类:问答What impact does the @embedded annotation mean?
How does the Embedded annotation affect the database? How will SQL queries need to change? What\'s the typical usecase for开发者_运维问答 using the annotation?[详细]
2023-04-11 12:59 分类:问答