Represents the 4.x release of the Hibernate Object/Relational Mapping project
Questions tagged [hibernate-4.x]
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)…