Skip to main content
1 vote
1 answer
60 views

I'm trying to connect my Spring Boot application (using spring-boot-starter-data-mongodb) to a MongoDB instance within a shared Docker network managed by docker-compose. The connection is failing, and ...
SidaliFetoumi's user avatar
1 vote
1 answer
61 views

Let's say I have a spring-boot-based project, that uses spring data jpa to define entities and map them to a postgres db. The entity has some @ManyToOne annotatated "joins" - with eager ...
Vito De Tullio's user avatar
0 votes
1 answer
52 views

I have trouble passing parameters for a native query with declare..begin..end style. This code doesn't work: @Test @Transactional void foo() { em.createNativeQuery(""" do ...
Artyom's user avatar
  • 119
0 votes
0 answers
68 views

In a Spring Boot 2.7.x application with Hibernate/JPA, there are two tables: tickets complaint_id (PK, VARCHAR(255)) attachment complaint_id (FK, VARCHAR(255)) other fields: id, file_name, ...
RaviSai1819's user avatar
0 votes
0 answers
31 views

so i am using entity graph to make a dynamic query of a table, the query is being made correctly which is corresponding to my graph and subgraph attribute nodes but when i fetch it as the entity, the ...
Nima Khajehpour's user avatar
1 vote
0 answers
65 views

I'm using Spring Data JPA with an entity that contains a Map<String, String> field. The map is stored in the database as a TEXT column (JSON string). JPA automatically stores the map as a ...
Nitesh Tiwari's user avatar
-3 votes
1 answer
85 views

I have implemented a class User that represents a User (so far either a Student or a Teacher). What they have in common is that they both have IDs, and some information about the user (this is stored ...
Alex's user avatar
  • 7
1 vote
1 answer
75 views

I have a service method that performs the following operations in sequence: Calls a read method annotated with a custom read-only transaction annotation (equivalent to @Transactional(readOnly = true))...
Rorschach's user avatar
0 votes
1 answer
84 views

I cannot get this JPA Specification to work for a simple join. I know the ""statusLookup.code" when mapping but does not work here. Does anyone know how to get it to work. Its a ...
Jay Hutton's user avatar
-3 votes
0 answers
92 views

JPA/Hibernate EntityGraph with Specification and Pagination not loading all related entities correctly I'm working on a JHipster-generated application and need to create APIs that load entities from ...
Рейн Глеб's user avatar
1 vote
1 answer
91 views

how do I resolve that error? Thank to all answers. org.springframework.orm.jpa.JpaSystemException: could not execute statement [Field 'price_id_price_id' doesn't have a default value] [insert into ...
ReMadWeb's user avatar
2 votes
3 answers
203 views

I'm working with these entities: UserEntity: @Entity @Table (name = "users", uniqueConstraints = @UniqueConstraint(columnNames={"name"})) public class UserEntity { @Id @...
Rikelo's user avatar
  • 33
1 vote
2 answers
106 views

I use Hibernate for a project. It's a ticket system. For that I created comments with childcomments. But every time I want to delete a comment, hibernate escalates and tries to load just EVERYTHING. ...
LostQuotient117's user avatar
Best practices
0 votes
7 replies
195 views

I am new to JPA and learning it. Now I have an Oracle procedure in system, which now needs to be made DB Agnostic, that can run on Postgres. For that I want to write the same functionality of ...
Surodip's user avatar
  • 503
0 votes
1 answer
50 views

I defined a Hibernate Filter to filter out the deleted records. My wishlist: The Filter should be enabled all the time as default. Only in special cases when I need the deleted records, then I would ...
deadpoint's user avatar
  • 461

15 30 50 per page
1
2 3 4 5
1557