Questions tagged [hibernate-5.x]

Hibernate-the object-relational mapping framework for the Java language released new version 5.x with enhanced features like query parser,multi-tenancy improvements,follow-on fetches,OSGi improvements etc.

Hibernate-the object-relational mapping framework for the Java language released new version 5.x with enhanced features like query parser,multi-tenancy improvements,follow-on fetches,OSGi improvements etc.

For more details on Hibernate version 5.x view Hibernate ORM Roadmap

368 questions
2
votes
0 answers

Hibernate 5 FetchType EAGER vs. LAZY

I have a Spring 4.2 web-app with Hibernate 5 with Hibernate-Annotations. The entities seem fine, and now I have a whole bunch of DAO classes, and JUnit4 tests to test these DAO's. With some of my classes, I have FK mappings to parent objects as…
tjholmes66
  • 1,850
  • 4
  • 37
  • 73
2
votes
1 answer

Maven, Can't go from Hibernate 4 to Hibernate 5 in my pom

With my Spring Boot 1.2.5 project, I can't figure out how to go from Hibernate 4 to Hibernate 5. Currently, I have this in my pom: org.hibernate
Jim Archer
  • 1,337
  • 5
  • 30
  • 43
2
votes
1 answer

AbstractMethodError after adding hibernate-seach-orm to POM

I am using Hibernate ORM together with Spring, and wanted to add Hibernate Search: An excerpt of my POM file: org.hibernate hibernate-search-orm
bwright
  • 896
  • 11
  • 29
2
votes
2 answers

Hibernate 5: org.hibernate.MappingException: Unknown entity

The following code works just fine with Hibernate 4.3, but when I try the same code using Hibernate 5.0 it results in the following error: Exception in thread "main" org.hibernate.MappingException: Unknown entity: entity.Message at…
skip
  • 12,193
  • 32
  • 113
  • 153
2
votes
0 answers

What replaces DatabaseMetaData in Hibernate 5?

In Hibernate 4, there was an org.hibernate.tool.hbm2ddl.DatabaseMetadata class that provided information about the underlying database. I have some logic based on this, namely using the DatabaseMetadata class to provide some information about a…
2
votes
1 answer

Hibernate 5 do not have FieldHandled class

I was updating the hibernate 3.x to 5.x. In order to handle the lasyloading problems we have used classes with FieldHandled. But it looks like Hibernate 5 do not have it any more. Any idea what should I be using now ?
dinesh707
  • 12,106
  • 22
  • 84
  • 134
2
votes
1 answer

Hibernate Migration from 4.3.x to 5.x for method org.hibernate.cache.spi.GeneralDataRegion.get(Object key)

In Hibernate 4.3.x, there is a method org.hibernate.cache.spi.GeneralDataRegion.get(Object key) But in Hibernate 5.x, this method signature is changed to org.hibernate.cache.spi.GeneralDataRegion.get(SessionImplementor session, Object key) Similarly…
Nirav Patel
  • 1,304
  • 2
  • 13
  • 30
2
votes
1 answer

Getting error illegal attempt to dereference collection [vu360user0_.id.lmsRoles] with element property reference [lmsRoleLmsFeature]

I searched this but unable to correct my query. Need help on this. Here is my VU360User @Entity public class VU360User extends AuditedEntity implements UserDetails, CredentialsContainer, Cloneable { ... private Learner learner; private…
Basit
  • 8,426
  • 46
  • 116
  • 196
2
votes
0 answers

Hibernate 5 sequence, switch to identity in Sql Server 2008 Dialect

I recently switched from Hibernate 3.6.4 to Hibernate 5.0.0 Final. I have an entity with an ID annotated in this way: @Id @GeneratedValue(generator="SEQ_MENUITEM") @SequenceGenerator(name="SEQ_MENUITEM",sequenceName="SEQ_MENUITEM",…
RedPelle
  • 285
  • 4
  • 17
2
votes
0 answers

Spring 4.2 and Hibernate 5.x Integration Not Work

Hi everyone you know that Hibernate 5.0.0.Final released and I want to integrate it my project,but I have some problems my project did not update tables and run project.But it works with Spring 4.2 and Hibernate 4.3.11 version very well.Please help…
caglarturkurka
  • 116
  • 1
  • 9
2
votes
0 answers

No generate database with Hibernate 5 and Glassfish4

I migrate my application to Hibernate 5 and Glassfish 4. When I deploy, it try generate database but this error appears: aused by: org.hibernate.tool.schema.spi.SchemaManagementException: Unable to execute schema management to JDBC target [create…
Dimmy Magalhães
  • 357
  • 1
  • 6
  • 21
2
votes
1 answer

Can not deploy application with Hibernate 5

I've used hibernate 4 and everything worked fine. Now I want to update Hibernate to the latest version in the application. Application builds successful, but fails on deploy to glassfish server with stacktrace: java.lang.NoSuchMethodError:…
Vololodymyr
  • 1,996
  • 5
  • 26
  • 45
1
vote
3 answers

Migration from Hibernate 5 to 6

I am trying to migrate a spring boot 2.3 application running on java 8 to spring boot 3 java 17. The issue is in a repository. It has a query method as follows: @Query(value = "SELECT ca FROM CorporateActionsV2 ca WHERE ( ca.dividendAmount,…
ahrooran
  • 931
  • 1
  • 10
  • 25
1
vote
1 answer

EntityManager in CustomRepository with CRUDRepository throwing error

I am trying to use customRepository with CRUDRepository. Getting below error: ConfigRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested…
1
vote
1 answer

Hibernate 5 migration Issue with Multilevel Joined table Inheritance with Hibernate 5.4 DiscriminatorColumn

I am working on migrating a legacy Hibernate project from version 4.1 to 5.4. The code has Multilevel Joined table inheritance using a dedicated DiscriminatorColumn. The code was working fine in Hibernate 4 but throwing errors in Hibernate…
Diablo
  • 443
  • 7
  • 21