hibernate Questions
8
Solved
I have a 3rd party jar that holds all the entities and mapping. I am currently using this jar successfully in a classic Spring-MVC application, but now I am trying to use it in a Spring-Boot applic...
Grounder asked 7/10, 2017 at 23:13
4
Solved
I have one doubt about "Lazy-loading".
What's the difference between use of @LazyCollection(LazyCollectionOption.FALSE) and @OneToMany(fetch = FetchType.EAGER)?
In my application I use two lists, ...
Caridadcarie asked 23/9, 2014 at 13:44
32
Solved
I essentially have some objects in this configuration (the real data model is a bit more complex):
A has a many-to-many relationship with B. (B has inverse="true")
B has a many-to-one relationshi...
2
Solved
All code in this post can be found here:
https://github.com/cuipengfei/gs-accessing-data-jpa/tree/master/complete
You can run this test to reproduce the problem:
https://github.com/cuipengfei/gs-a...
Agincourt asked 20/3, 2017 at 9:58
46
Solved
I get following hibernate error. I am able to identify the function which causes the issue. Unfortunately there are several DB calls in the function. I am unable to find the line which causes the i...
5
Solved
i have a hibernate query that is dynamically put together using the criteria api.
it generates queries that are unbearably slow, if executed as-is.
but i have noted they are about 1000% faster if ...
35
Solved
I receive following error when I save the object using Hibernate
object references an unsaved transient instance - save the transient instance before flushing
4
Upon upgrading to Hibernate 5.6.0.Final, I found that org.hibernate.annotations.Type is now deprecated. I use this annotation in many of my entities, including places where I leverage Hibernate's o...
9
Hi I am doing JPA and Hibernate configuration using Java configuration in spring boot and I am stuck it at this error for hours.
Even though I have declared the UserRepository as bean still it is n...
Beniamino asked 30/8, 2018 at 16:42
14
This is my District Controller, when I try to fetch data after saving I get the error, even when I try get object form getDistrict(Long id) the same strikes please suggest some way, am very new at ...
Incommutable asked 7/12, 2017 at 10:37
9
Solved
I am doing spring + hibernate application. When I run the application on tomcat server I am getting some exceptions.
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'ap...
Heidyheifer asked 17/5, 2014 at 18:5
1
Solved
I have one Postgres SQL query that will perform search operation inside array of values of the defined key inside jsonb type column.
SELECT o.id
FROM customer c INNER JOIN order o
on c.id = o.c_id ...
Tyeshatyg asked 10/2 at 6:54
6
Solved
I'm having this error:
Exception in thread "main" org.hibernate.InstantiationException: No default constructor for entity: : principal.Cliente
at org.hibernate.tuple.PojoInstantiator.ins...
4
Solved
How can I change the Hibernate logging level programmatically?
4
This is my entity class that is mapped to a table in postgres (9.4)
I am trying to store metadata as jsonb type in the database
@Entity
@Table(name = “room_categories”)
@TypeDef(name = “jsonb”, ty...
Rhetic asked 19/12, 2018 at 9:13
5
Solved
I have a spring boot project that has a CrudRepository, an Entity and a Controller. I am basically trying to persist an entity based on the data passed to the Controller.
To do this, I am using sp...
Goy asked 5/11, 2014 at 18:34
2
Solved
I'm trying to display an uploaded picture (which is now a byte array) on a jsp page. Now, the byte[] column exists in the database and has to be converted to an image.
This is what I've been tryin...
Snowclad asked 1/1, 2016 at 21:27
8
Solved
I am new to Hibernate, reading this book "Java persistence with Hibernate" and I am trying to implement the example from there. So far my Ant build is successful, but when I try to execute the clas...
18
Solved
When i try to navigate to an endpoint i get the following error
Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]; nested exception is com.fasterxm...
Betti asked 4/10, 2018 at 23:49
3
Solved
I'm getting the good, old and dreaded TransientObjectException, and, as often happens in such case, I'm having problems locating what kind of subtle bug in the code is causing the problem.
My ques...
15
Solved
In Hibernate 3, is there a way to do the equivalent of the following MySQL limit in HQL?
select * from a_table order by a_table_column desc limit 0, 20;
I don't want to use setMaxResults if poss...
Anatase asked 6/8, 2009 at 15:33
13
I'm working with a table in a database and that table don't have a primary key or a proper column whith a unique value who can act as a primary key, I don't have permissions to alter that table.
W...
Laniferous asked 15/9, 2014 at 14:59
3
Solved
I'm using Spring + Spring Data JPA with Hibernate and I need to perform some large and expensive database operations.
How I can use a StatelessSession to perform these kind of operations?
Fluorescein asked 17/3, 2013 at 12:15
7
I have strange issue when I try to get entities property:
Hibernate:
select
tarifklsk0_.ID as ID1_12_0_,
tarifklsk0_.FK_TARIF as FK_TARIF2_12_0_,
tarifservp1_.FK_TARIF as FK_TARIF2_11_1_,
ta...
9
Solved
I have a Java Spring Boot application with the following entities related to the below exception
SProduct
@Entity
@Table(
name = "product",
indexes = @Index(
name = "idx_asin"...
Elusion asked 29/11, 2018 at 13:23
© 2022 - 2024 — McMap. All rights reserved.