entitygraph Questions
2
Solved
in Spring Data JPA Repository i need to specify multiple methods that do the same thing (eg. findAll) but specifying different @EntityGraph annotation (the goal is to have optimized methods to use ...
Amie asked 3/5, 2020 at 23:29
1
So I have found a few answers where one says it is possible to do so and the other says it is not. This kind of confused me because when I tried to do so - I failed.
What I want is to reference a n...
Baldhead asked 26/2, 2021 at 5:18
2
Solved
I’ve been learning about JPA and I found that we can use entity graph since JPA 2.1.
But I've not understood the merit of the entity graph yet.
I know that one of the merits to use an entity graph ...
Helpful asked 29/7, 2015 at 14:33
1
I have 2 entities in a one to one relationship (it can be many to one but for this case I don't think it matters much) like such:
@Entity
public class User {
@Id
@GeneratedValue(strategy = Genera...
Fridell asked 15/3, 2019 at 17:22
6
Solved
currently I am wrestling with being able to fetch only the data I need. The findAll() method needs to fetch data dependant on where its getting called.
I do not want to end up writing different met...
Hepta asked 11/8, 2015 at 14:3
1
Solved
I upgraded my app from spring boot 2.2.5 to 2.3.3 and I'm using spring data JPA starter with 5.4.20.Final onboard. My entites are enhanced at compile time.
Now when I'm using @EntityGraph annotatio...
Elemental asked 19/8, 2020 at 10:38
4
Solved
Given the following domain model, I want to load all Answers including their Values and their respective sub-children and put it in an AnswerDTO to then convert to JSON. I have a working solution b...
Voltz asked 16/4, 2020 at 15:27
1
Solved
Is it possible with Spring Data JPA to do smth. like this:
public interface UserDao extends CrudRepository<User, Long> {
@EntityGraph(value = :graphName, type = EntityGraph.EntityGraphType....
Graphics asked 20/6, 2018 at 13:39
0
Hello I am new in jpa + criteria API + hibernate..
I have doubt related to use of ResultTransformer in jpa criteria API.
I am having two entity Department and Employee. one to many mapping betwee...
Leporine asked 12/6, 2018 at 11:5
1
Solved
When I have below entity.
@Entity
class Article {
@OneToMany
Set<Comment> comments;
}
@Entity
class Comment {
@ManyToOne
User author;
}
And create some view specification class using ...
Worrell asked 31/7, 2017 at 7:0
0
I would like use Entity Graphs in EclipseLink and GlassFish.
@Entity
@NamedQueries({
@NamedQuery(name = "invoice.all", query = "SELECT i FROM Invoice i")})
@NamedEntityGraph(name = "graph.in...
Snitch asked 16/11, 2017 at 20:15
1
Solved
This is my entity:
public class PersonItem implements Serializable{
@Id
@Column(name="col1")
private String guid;
@Column(name="col2")
private String name;
@Column(name="col3")
private St...
Transcription asked 5/5, 2016 at 15:8
1
Solved
I'm new to JPA and I'm trying to use entity graph.
And I realized when I retrieve data, I need to specify which EntityGraphType I want to use.
I read JPA2.1 specification but I'm still not sure ho...
Premillennial asked 13/8, 2015 at 1:22
1
Solved
I'm trying to use the type safe method EntityGraph.addAttributeNodes(Attribute<T, ?> ... attribute) for constructing my entity graph. I have a type hierarchy with a @MappedSuperclass that bas...
Percale asked 7/8, 2015 at 10:5
1
© 2022 - 2024 — McMap. All rights reserved.