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
0
votes
1 answer

How to run app Hibernate 5.x, Jpa 2.1, Java EE7(javaee-api 7.0) on Tomcat7 with Jax-RS(Jersey)

I have a simple application runs succesfully as a Java Application. The frameworks used in app Hibernate 5.x, Jpa 2.1, Java EE7(javaee-api 7.0). And then i wanted to add Jax-Rs support which i want to run it on Tomcat 7. I got some errors when i…
Ahmet
  • 314
  • 5
  • 15
0
votes
1 answer

Hibernate not working with postgres database

I'm trying to write a simple program that searches postgres database for specific books. I'm using Hibernate version 5 but getting few errors while running the program. I've attached the screenshots of the error.
Aiguo
  • 3,416
  • 7
  • 27
  • 52
0
votes
1 answer

Using USYNCHRONIZED persistence context with Hibernate 5.x and Wildlfy

I'm trying to migrate application which uses unsynchronized persistence context with JTA transaction, from hibernate 4.3.7 to Hibernate 5.0.7, and I found a couple the of issues I can't get my head around. Our entity manager injected as…
Mikhail Chibel
  • 1,865
  • 1
  • 22
  • 34
0
votes
1 answer

Error seen during upgrade from Hibernate3 to Hibernate5

I am upgrading from Hibernate3 to Hibernate5. As a first step in the process I replaced the hibernate3.jar with hibernate-core-5.2.1.Final.jar. Also, updated the code that resulted in compile issues because of the jars change. However, when starting…
user811433
  • 3,999
  • 13
  • 53
  • 76
0
votes
0 answers

hibernate and java 8 date time returns null

I am using hibernate 5.2 and java 8 i have a situation where i am using hql to do the following, where from and to are LocalDateTime objects passed in the method: Query buyQuery = session .createQuery("SELECT sum(price * quantity) FROM…
user1383163
  • 577
  • 1
  • 7
  • 24
0
votes
1 answer

Why I'm getting a "No Persistence provider for EntityManager" when updated to version 5.0?

I have a Maven project using the "4.3.11.Final" version Hibernate core and entity-manager, everything works nice. Today, I changed the version of this dependencies on my pom.xml to the latest (5.2.1.Final) and my project suddenly fails: Exception…
Renan Gomes
  • 771
  • 1
  • 15
  • 34
0
votes
2 answers

java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String;I)V Exception while migrating from 12.1.3 to 12.2

I am doing migration from JDev 12.1.3 to 12.2.0. Now there was some problem durnng compilation but it has been resolved by modifiying class path. Now when I go for deployment then it showing me one exception. That is…
keepmoving
  • 1,813
  • 8
  • 34
  • 74
0
votes
1 answer

Why is this Hibernate bootstrap code failing to start up, when Envers is turned on?

I am using Hibernate 5.2.0. This code works (Envers is turned off): public static SessionFactory buildSessionFactory() { StandardServiceRegistryBuilder standardServiceRegistryBuilder = new StandardServiceRegistryBuilder(); …
Marcelo Glasberg
  • 29,013
  • 23
  • 109
  • 133
0
votes
1 answer

I put the correct import but the error still happen org.hibernate.MappingException in Hibernate 5

Hibernate 5.1 is used package br.com.condominio.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Apartamento { @Id @GeneratedValue private Integer id; private int…
Denys Wylliam
  • 129
  • 2
  • 12
0
votes
1 answer

Grails 3.1.5, Hibernate 5, on JBoss throw NoSuchMethodError org.jboss.logging.Logger.debugf

In Grails 3.1.5 with Hibernate5 plugin I cannot deploy to JBoss EAP 6.4.0.GA. I get: NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String;I)V I believe the issue is because Hibernate 5 has a dependency on jboss-logging 3 and even…
DAC
  • 707
  • 1
  • 6
  • 20
0
votes
1 answer

Tried retrieving OracleConnection but received null

I have a Java application using Hibernate 5.1.0, with spatial capabilities (geolatte) running on Weblogic 12.1.1.0 and Oracle database. I have some data sources configured with driver oracle.jdbc.xa.client.OracleXADataSource. This works ok in one…
krause
  • 436
  • 5
  • 24
0
votes
2 answers

Does Hibernate 5 still support Hibernate Spatial?

According to the following link: http://docs.jboss.org/hibernate/orm/5.1/quickstart/html_single/#_release_bundle_downloads There should be a folder "lib/spatial" that contains the hibernate spatial jars, however it seems to be the one folder missing…
Nathan Williams
  • 429
  • 6
  • 14
0
votes
1 answer

Hibernate 5 id uniqueness

In Hibernate 5 is it a problem if I use the same id value in different tables? I have two entities with this annotation: @Id @Column(name = "ID") public String getId() { return id; } If I call session.get(MyClass.class, "theId") I can get the…
xc93hil
  • 105
  • 1
  • 9
0
votes
3 answers

Auto generate data schema from JPA 2.1 annotated entity classes without a database connection

Two years ago I was working on a project using: spring 4.0.3.RELEASE jpa 2.0 hibernate 4.2.7.Final java 1.6.X This project has a maven task hibernate3-maven-plugin which allow us to generate a database schema without any connection to a database…
0
votes
1 answer

hibernate 5 configuration for oracle11g in eclipse

I am trying to configure hibernate 5 to access oracle 11 g in eclipse. hibernate.cfg.xml is as follows: In following xml i have specified database credentials(url, username and password),dilect, mapping class, show_sql . I want to ask if I missed…
Ashish Parab
  • 174
  • 2
  • 19