hibernate-5.x Questions
2
Solved
Aftre migrate my application from hibernate 4 to hibernate 5 .my sequence dose not work and hibernate use our default sequence instead of my sequence .my mapping config in hbm like this my database...
Acclamation asked 12/2, 2017 at 18:3
2
Solved
i have an issue with hql queries which contain a null in the select, for example:
"select firstname, lastname, null from Employer"
The Nullpointer comes from:
Caused by: java.lang.NullPointerExce...
Flurry asked 3/3, 2020 at 13:54
16
I have a problem when I deploy a webapp with hibernate 5
Caused by: java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String;I)V
at org.hibernate.internal.NamedQueryRepositor...
Archangel asked 21/7, 2015 at 18:35
3
Solved
According to hibernate 4 doc, the discriminator approach for multi-tenancy data was planned to be implemented on hibernate 5. However hibernate 5 doc is not up to date, it is still telling the same...
Jabber asked 10/12, 2015 at 16:43
8
Solved
I have simple spring-jpa configuration where I have configured Hibernate's ImprovedNamingStrategy. This means if my entity class has a variable userName, then Hibernate should convert it to user_na...
Mientao asked 7/9, 2015 at 11:8
8
Solved
This code:
@Override
public List<FactCodeDto> getAllFactsWithoutParentsAsFactDto() {
String completeQuery = FactCodeQueries.SELECT_DTO_FROM_FACT_WITH_NO_PARENTS;
Query query = createHibern...
Purveyance asked 30/10, 2015 at 10:5
3
I am migrating to hibernate 5 from 3. I am seeing the sequence generator not working properly in Hibernate 5. I have sequence defined with minimum value 1000 and increment by 1. But when I am tryin...
Luff asked 2/12, 2015 at 14:13
3
I am trying to run a Spring webapp using hibernate 5.2.16 with struts2-core-2.3.35 on Tomcat8.5 with JDK8.
I am getting the below exception :
Caused by: org.hibernate.DuplicateMappingException: ...
Gingivitis asked 20/8, 2019 at 6:4
1
after upgrading hibernate to from version 4.3.7.Final to 5.3.18.Final I got the error below
@Entity
@Audited
@AuditPermission(Permission.VIEW_INDIVIDUAL)
public class Individual implements ITempora...
Handpick asked 4/11, 2020 at 21:55
1
In the following example (from Vlad Mihalcea's post on "The best way to map a @OneToOne relationship with JPA and Hibernate"):
@Entity(name = "PostDetails")
@Table(name = "post_details")
public cl...
Ascites asked 22/2, 2018 at 12:31
3
While migrating from Hibernate 4 to 5 I came across the deprecation and eventual removal of the SchemaExport(Configuration) constructor. What is a good alternative in Hibernate 5?
Use case
During...
Afrit asked 22/11, 2017 at 10:20
3
Solved
Is there any way how to support persistent mapping of java.time.ZoneId to string in Hibernate 5.1.1. It saves the ZoneId in binary form right now.
I've just upgraded to Grails 3.2.1 which has Hibe...
Smokechaser asked 24/10, 2016 at 8:47
6
Solved
I am developing Spring MVC Hibernate Integration example. In this example I'm using Spring 4.1.9.RELEASE and Hibernate 5.1.0.Final. If I downgrade Hibernate version to 4.3.5.Final then it works. No...
Mccown asked 17/2, 2016 at 18:9
5
Solved
In Hibernate 4.x, I used to generate and export the schema as defined in annotated entities as follows (using Spring to find annotated entities on the class path):
Connection connection =
Driver...
Frith asked 24/8, 2015 at 8:48
2
Solved
Problem: Native queries with Spring Data returning dates return java.sql.Date not java.time.LocalDate, despite the setup.
Context: A new project with Spring Boot 2.0.0.M5 (the latest), Hibernate ...
Elman asked 24/10, 2017 at 21:11
2
The NamingStrategy was already being marked as deprecated in Hibernate 4.2/4.3 (HHH-7079). Starting with Hibernate 5, now it will shipped with two replacements(?) interfaces ImplictNamingStrategy a...
Tradition asked 11/7, 2015 at 14:46
6
I am writing application using postgresql database and spring + hibernate frameworks.
I upgraded spring framework from 4.1.5.RELEASE to 4.2.0.RELEASE version and upgraded hibernate framework from ...
Toulon asked 23/8, 2015 at 10:32
1
I need to generate a query dynamically based on parameter passed and need to join three tables, getting below exception while building query with EntityManager CriteriaBuilder, same code structure ...
Hardan asked 14/8, 2019 at 6:7
2
When saving a LocalDate field (e.g. '2017-09-27') to a mySQL Date column using JPA CriteriaBuilder API, the result is different (e.g. '2017-09-26').
I have validated that my database's timezone is...
Swain asked 27/9, 2017 at 11:20
1
I have old project where I use Date from Java API, and I want change this to new Java 8 Date API to LocalDateTime. I read that Hibernate version before 5 does not support the new Java 8 Date API, a...
Horary asked 21/9, 2015 at 17:20
1
I am going through the hibernate 5.2.11.Final Documentation.
the link http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#basic-lob. I noticed that the example o...
Aphrodisia asked 15/3, 2018 at 18:57
1
Solved
I'm migrating several code bases to use Hibernate 5.4.x instead of Hibernate 5.2.x.
For an abstract base class I use
@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
pu...
Copulation asked 14/3, 2019 at 10:36
1
Solved
In our project, which uses Spring Boot 2.1.3, Spring Data Rest 3.1.5, Spring Data JPA 2.1.5 and Hibernate 5.3.7, we are using some of the new possibilities provided by the changes in Spring Framewo...
Manicurist asked 11/3, 2019 at 15:25
1
I am looking at hibernate documentation here: https://docs.jboss.org/hibernate/orm/5.0/javadocs/org/hibernate/dialect/package-summary.html to try to find which hibernate.dialect to use inside...
Cessation asked 18/10, 2018 at 8:21
3
The database table is NOT auto-created by the <property name="hbm2ddl.auto">update</property> settings in hibernate-cfg.xml, with the following combination:
Java 8 + Tomcat 8 + MySQL +...
Coenocyte asked 31/10, 2015 at 8:20
1 Next >
© 2022 - 2024 — McMap. All rights reserved.