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
1
vote
1 answer

Hibernate 5 + JPA 2 doesn't cascade delete over join table

We have this relationship: public class RuleProviderEntity implements Serializable { ... @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @OrderColumn(name = RuleEntity.RULE_SEQUENCE) private List
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
1
vote
2 answers

JPA 2 Criteria Query Projection

Using a JPA2 Criteria Query we can project the final result on a DTO (for instance) like this: query.select(builder.construct( ProductGridDTO.class, root.get(Productos_.proId), root.get(Productos_.proAlias), …
tggm
  • 973
  • 2
  • 15
  • 41
1
vote
1 answer

How to automatically free cursors with Hibernate?

I have read that hibernate 4.0 until 4.1.3 had the issue of not freeing/deallocate (I am not proficient in database management) the OracleSql cursors after closing the connection or after executing the statement. Although I have increased the…
1
vote
1 answer

Migrating from spring boot 1.3.8.RELEASE to 1.5.2.RELEASE - Neo4jDataAutoConfiguration overriding default sessionFactory

I had a working spring boot app and I am trying to migration from Spring boot 1.3.8.RELEASE to 1.5.2.RELEASE. In my working 1.3.8.RELEASE track I was using hibernate 5 already i.e. i had the the following dependency in y pom
Tito
  • 2,234
  • 6
  • 31
  • 65
1
vote
1 answer

Avoid Global Temporary Table creation in Hibernate 5.1.0

Hibernate creates global temporary tables names staring with HT_ for bulk update and delete. We are not supposed/allowed to create any table from application. How do we switch off table global temporary creation for hibernate?
Mahesh Biradar
  • 351
  • 2
  • 9
1
vote
0 answers

Spring Boot and Hibernate 5

I am very new to Spring Boot. I am trying to add Hibernate 5 to my Spring Boot project and make it to work. My config class: import org.apache.commons.dbcp.BasicDataSource; import org.hibernate.SessionFactory; ... import…
peppo
  • 21
  • 5
1
vote
0 answers

exception when integrate spring with hibernate 5

here is my dependency tree [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building web Maven Webapp 0.0.1-SNAPSHOT [INFO]…
bkit07
  • 41
  • 2
  • 9
1
vote
2 answers

Spring boot (1.3.6) + Hibernate(5.2.1) No qualifying bean of type [org.hibernate.SessionFactory] found for dependency:

While moving into micro-services from monolithic application, upon creating the micro-services using Spring boot (1.3.6) + Hibernate(5.2.1) we got an exception org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of…
pandiaraj
  • 580
  • 1
  • 6
  • 18
1
vote
1 answer

Migration from Hibernate 3 to Hibernate 5: sessionFactory (MetadataImplementor) is null

public class EntityMetaData implements SessionFactoryBuilderFactory { // private static final ThreadLocal meta = new ThreadLocal<>(); // previously used, but did not work, so used HashMap private static final…
AppHouze
  • 206
  • 3
  • 10
1
vote
2 answers

java.sql.SQLException: ORA-01017: invalid username/password; logon denied

I am designing web app with spring-boot + hibernate 5. And I am not using any xml files. I am creating data source and sessionFactory, and I am getting error: Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon denied But…
Yuriy
  • 1,370
  • 4
  • 14
  • 30
1
vote
1 answer

Spring could not create EntityManagerFactory after upgrading to Hibernate 5.x

I'm using latest springframework disto v4.2.5.RELEASE and Hibernate v5.0.7.Final when spring loads EntityManagerFactory i'm getting the below exception Caused by: org.hibernate.HibernateException: Not all named super-types (extends) were found :…
Sreekanth
  • 539
  • 1
  • 7
  • 24
1
vote
1 answer

Storing geometries as SDO_POINT_TYPE with Hibernate 5 and Oracle

I am using Hibernate 5.1.0.Final in a Java application for database persistence. That will be handy for us as we expect to hit Oracle and Postgres instances, so we can have this ORM as an abstraction layer. In a former issue when querying geometries…
krause
  • 436
  • 5
  • 24
1
vote
1 answer

Hibernate Spatial 5 and MySQL 5.7

I'm using Hibernate Spatial 5.0.7 and MySQL 5.7. I need to use MySQL ST_* precise spatial operators, in order to do that I apply MySQLSpatial56Dialect, however if I use this dialect the Geometry datatype isn't correctly retrieved from the database.…
tcrespog
  • 31
  • 5
1
vote
2 answers

JPA 2.0 @ManyToMany relationship using hibernate 5.X

I'm having some troubles trying to save on database entities using JPA with Hibernate 5.X. I have two entities already persisted on database and a method to create a relationship between them. The relationship is not created when calling the method…
1
vote
0 answers

Hibernate map Entity to function result

I need to map my Entity to function result in oracle. Prerequisites: @Entity @NamedNativeQuery(name="myFunc" query="{?=call MY_FUNC(:param1)}", resultClass=Test.class, hints={ @QueryHint(name="org.hibernate.callable", value=true)}) public…
lummycoder
  • 588
  • 1
  • 7
  • 20