Questions tagged [hibernate-4.x]

Represents the 4.x release of the Hibernate Object/Relational Mapping project

302 questions
0
votes
0 answers

Spring boot data JPA getting NullPointerException related to transaction manager

At the outset, I have tried the options mentioned in various forums for the same stack trace I get. A few of them did not work while with others (like removing javax.persistence.transactiontype) I did not understand how and where to try it. I am…
Paddy
  • 3,472
  • 5
  • 29
  • 48
0
votes
1 answer

Mapping Table Rows to Enum Values in Hibernate 4

I have a table roles which has values such as admin, user, and others. I do not want to make it an ENUM type because I think the list might grow, shrink or change in the near future. I can't figure out a way to get Hibernate to Map directly to their…
Mr. Adobo
  • 815
  • 1
  • 12
  • 24
0
votes
1 answer

issue while deploying on weblogic 12c with autowiring SessionFactory

doing some POC work using hibernate4, Spring4, weblogic12c. its looking for javax.persistence.Table.indexes while deploying and its fails everytime. I have cross checked that hibernate-jpa-2.1-api-1.0.0.Final.jar is there in lib folder under…
DIY
  • 21
  • 1
  • 6
0
votes
2 answers

Hibernate 4.3.6 + Glassfish 4.1 + JPA 2.1

I'm trying to migrate from EclipseLink to Hibernate in my Java EE 7 application and running into some issues I'm not able to figure out. Here my environment: Glassfish 4.1 Hibernate 4.3.6 Java 1.8.0_20 I'm also using: EE 7 CDI JPA 2.1 Ultimately…
Jim
  • 668
  • 8
  • 22
0
votes
2 answers

How to solve 'error creating bean' with LightAdmin?

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'excursionDynamicJpaRepository': Invocation of init method failed; nested exception is java.lang.TypeNotPresentException: Type int not present at…
Dracontis
  • 4,184
  • 8
  • 35
  • 50
0
votes
1 answer

could not get a field value by reflection hibernate JPA + GF 4

I am using JPA 2.1 with Hibernate 4.3.x on Glassfish 4, also tried the suggestion listed at https://coderwall.com/p/e5fxrw still get the below error. Could some one let me know what might be the issue ? javax.persistence.PersistenceException:…
Ayub
  • 599
  • 3
  • 10
  • 24
0
votes
0 answers

"SELECT *" into a hibernate entity, without populating any relationships / join table data

I'm looking to load data into a hibernate entity by running something like select * from where id = ?. I'm only interested in the data sitting in
-- no joins whatsoever. I can achieve this by using the following: T result = (T)…
jlb
  • 19,090
  • 8
  • 34
  • 65
0
votes
4 answers

How to copy the record in hibernate with new primary key?

I want to copy the record of a table into that same table (nothing but saving the new record with previous record values and here the primary key will auto increment) so how to do it in hibernate(is there any direct method like session.save(Obj))…
Jagadeesh
  • 87
  • 1
  • 13
0
votes
0 answers

What's the de facto approach to implement Hibernate 4 database write operation?

I get the following exception when I upgrade my app from Hibernate 3.0.5 with Spring 1.0 to Hibernate 4.3.5.Final with Spring 4.0.6. Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only…
Max
  • 1,064
  • 9
  • 23
0
votes
1 answer

Grails 2.4.2 java.sql.Connection object

I have upgraded my project from Grails 2.2.3 to 2.4.2 using hibernate 4. (4.3.5.4) There is a service in this project that uses Oracle spatial queries and processes to generate results. Converting an Oracle JGeometry object to an Oracle STRUCT…
Graham H
  • 125
  • 12
0
votes
1 answer

show this error about hibernate when I run the program

18:02:32,359 INFO SettingsFactory:213 - Query cache: disabled 18:02:32,359 INFO SettingsFactory:321 - Cache provider: org.hibernate.cache.EhCacheProvider 18:02:32,359 INFO SettingsFactory:228 - Optimize cache for minimal puts:…
0
votes
1 answer

org.springframework.orm.hibernate4.HibernateSystemException: Unknown entity: java.util.ArrayList;

I've recently upgraded hibernate version from 3.0 to 4.0 and most of the things were working fine except when I tried to save list of entities. If I save each entity separately I'm not getting any exception but when I try to save the entire list,…
user1879835
  • 71
  • 4
  • 7
0
votes
0 answers

Migrating Java Application From Jboss 5.1 to 7.1

I am trying to upgrade my application from JBoss 5.1 to Jboss 7.1 which in turn forces my application to upgrade to Hibernate 4.x. I have resolved almost all the errors in this process except the one related to hibernate. I am getting the below…
0
votes
1 answer

setting src of image tag dynamically using jquery

I am using Struts in my project. I want that whenever my page loads one ajax call should be there which will populate ArrayList with objects in my Action class which contains image link.I am using this arraylist in my jsp page to populate image…
0
votes
1 answer

Issue with Multiple Hibernate Transaction Manager

I am working with Spring 3.2.5.Release and Hibernate 4.2.7.Final. I am deploying my ear on Websphere 7 server. I have two application context files and each has its own sessionFactory of type